summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorVineeth Pillai <viremana@linux.microsoft.com>2021-06-03 18:14:36 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-17 20:09:36 +0300
commit3c86c0d3dbb98865a60a0c9d5c3a229af15a8a96 (patch)
treeb8fa9fed44dbb3ce435ccc00eebe4fa943cca050 /arch/x86/include
parent32431fb2538df56693a5852a50013549c827f57c (diff)
downloadlinux-3c86c0d3dbb98865a60a0c9d5c3a229af15a8a96.tar.xz
KVM: x86: hyper-v: Move the remote TLB flush logic out of vmx
Currently the remote TLB flush logic is specific to VMX. Move it to a common place so that SVM can use it as well. Signed-off-by: Vineeth Pillai <viremana@linux.microsoft.com> Message-Id: <4f4e4ca19778437dae502f44363a38e99e3ef5d1.1622730232.git.viremana@linux.microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index bea7290ef173..1fdb212127c4 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -852,6 +852,10 @@ struct kvm_vcpu_arch {
/* Protected Guests */
bool guest_state_protected;
+
+#if IS_ENABLED(CONFIG_HYPERV)
+ hpa_t hv_root_tdp;
+#endif
};
struct kvm_lpage_info {
@@ -1131,6 +1135,11 @@ struct kvm_arch {
* allocated for any newly created or modified memslots.
*/
bool memslots_have_rmaps;
+
+#if IS_ENABLED(CONFIG_HYPERV)
+ hpa_t hv_root_tdp;
+ spinlock_t hv_root_tdp_lock;
+#endif
};
struct kvm_vm_stat {