From: Tianyu Lan Subject: [RFC Patch 0/3] KVM/x86/hyper-V: Introduce PV guest address space mapping flush support Date: Mon, 4 Jun 2018 09:08:09 +0000 Message-ID: <20180604090749.489-1-Tianyu.Lan@microsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Tianyu Lan , "devel@linuxdriverproject.org" , Haiyang Zhang , "hpa@zytor.com" , "kvm@vger.kernel.org" , KY Srinivasan , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "pbonzini@redhat.com" , "rkrcmar@redhat.com" , Stephen Hemminger , "tglx@linutronix.de" , "x86@kernel.org" , "vkuznets@redhat.com" To: unlisted-recipients:; (no To-header on input) Return-path: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Hyper-V provides a para-virtualization hypercall HvFlushGuestPhysicalAddres= sSpace to flush nested VM address space mapping in l1 hypervisor and it's to reduc= e overhead of flushing ept tlb among vcpus. The tradition way is to send IPIs to all a= ffected vcpus and executes INVEPT on each vcpus. It will trigger several vmexits fo= r IPI and INVEPT emulation. The pv hypercall can help to flush specified ept table on= all vcpus via one single hypercall. Lan Tianyu (3): X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support KVM: Add tlb remote flush callback in kvm_x86_ops. KVM/x86: Add tlb_remote_flush callback support for vmcs arch/x86/hyperv/Makefile | 2 +- arch/x86/hyperv/nested.c | 64 ++++++++++++++++++++++++++++++++++= ++++ arch/x86/include/asm/hyperv-tlfs.h | 8 +++++ arch/x86/include/asm/kvm_host.h | 1 + arch/x86/include/asm/mshyperv.h | 2 ++ arch/x86/kvm/vmx.c | 15 +++++++++ virt/kvm/kvm_main.c | 12 ++++++- 7 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 arch/x86/hyperv/nested.c --=20 2.14.3