1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Common Hyper-V on KVM and KVM on Hyper-V definitions (SVM).
6 #ifndef __ARCH_X86_KVM_SVM_HYPERV_H__
7 #define __ARCH_X86_KVM_SVM_HYPERV_H__
9 #include <asm/mshyperv.h>
11 #include "../hyperv.h"
14 * Hyper-V uses the software reserved 32 bytes in VMCB
15 * control area to expose SVM enlightenments to guests.
17 struct hv_enlightenments {
18 struct __packed hv_enlightenments_control {
19 u32 nested_flush_hypercall:1;
21 u32 enlightened_npt_tlb: 1;
23 } __packed hv_enlightenments_control;
26 u64 partition_assist_page;
31 * Hyper-V uses the software reserved clean bit in VMCB
33 #define VMCB_HV_NESTED_ENLIGHTENMENTS VMCB_SW
35 #endif /* __ARCH_X86_KVM_SVM_HYPERV_H__ */