summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/svm.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-01-08 14:10:01 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-01-08 14:10:01 +0100
commit0afdfd85e33afdbda4cdd219c22ee5bf95b005f4 (patch)
tree1f1bbae0e13a80cad8cd87595cbf3c67b966259a /arch/x86/kvm/svm/svm.h
parentMerge tag 'kvm-x86-generic-6.8' of https://github.com/kvm-x86/linux into HEAD (diff)
parentKVM: nSVM: Hide more stuff under CONFIG_KVM_HYPERV/CONFIG_HYPERV (diff)
downloadlinux-0afdfd85e33afdbda4cdd219c22ee5bf95b005f4.tar.xz
linux-0afdfd85e33afdbda4cdd219c22ee5bf95b005f4.zip
Merge tag 'kvm-x86-hyperv-6.8' of https://github.com/kvm-x86/linux into HEAD
KVM x86 Hyper-V changes for 6.8: - Guard KVM-on-HyperV's range-based TLB flush hooks with an #ifdef on CONFIG_HYPERV as a minor optimization, and to self-document the code. - Add CONFIG_KVM_HYPERV to allow disabling KVM support for HyperV "emulation" at build time.
Diffstat (limited to 'arch/x86/kvm/svm/svm.h')
-rw-r--r--arch/x86/kvm/svm/svm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h
index c409f934c377..8ef95139cd24 100644
--- a/arch/x86/kvm/svm/svm.h
+++ b/arch/x86/kvm/svm/svm.h
@@ -148,7 +148,9 @@ struct vmcb_ctrl_area_cached {
u64 virt_ext;
u32 clean;
union {
+#if IS_ENABLED(CONFIG_HYPERV) || IS_ENABLED(CONFIG_KVM_HYPERV)
struct hv_vmcb_enlightenments hv_enlightenments;
+#endif
u8 reserved_sw[32];
};
};