]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: hyper-v: Direct Virtual Flush support
authorVineeth Pillai <viremana@linux.microsoft.com>
Thu, 3 Jun 2021 15:14:40 +0000 (15:14 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:38 +0000 (13:09 -0400)
commitb5a7cf7d287921067f3b0b7a7f752f06ac8bc1f5
tree37241d8656eb3d9ea00d327acbfb111659f0d4fb
parent0c3cf176bc224727f2f9f27dca167242e20e9377
KVM: SVM: hyper-v: Direct Virtual Flush support

From Hyper-V TLFS:
 "The hypervisor exposes hypercalls (HvFlushVirtualAddressSpace,
  HvFlushVirtualAddressSpaceEx, HvFlushVirtualAddressList, and
  HvFlushVirtualAddressListEx) that allow operating systems to more
  efficiently manage the virtual TLB. The L1 hypervisor can choose to
  allow its guest to use those hypercalls and delegate the responsibility
  to handle them to the L0 hypervisor. This requires the use of a
  partition assist page."

Add the Direct Virtual Flush support for SVM.

Related VMX changes:
commit 01c8cb65e2ea ("KVM/Hyper-V/VMX: Add direct tlb flush support")

Signed-off-by: Vineeth Pillai <viremana@linux.microsoft.com>
Message-Id: <fc8d24d8eb7017266bb961e39a171b0caf298d7f.1622730232.git.viremana@linux.microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Makefile
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm_onhyperv.c [new file with mode: 0644]
arch/x86/kvm/svm/svm_onhyperv.h