KVM: SVM: Add a proper field for Hyper-V VMCB enlightenments
[platform/kernel/linux-starfive.git] / arch / x86 / include / asm / svm.h
index 236fda7..98724e7 100644 (file)
@@ -5,6 +5,8 @@
 #include <uapi/asm/svm.h>
 #include <uapi/asm/kvm.h>
 
+#include <asm/hyperv-tlfs.h>
+
 /*
  * 32-bit intercept words in the VMCB Control Area, starting
  * at Byte offset 000h.
@@ -161,7 +163,10 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
         * Offset 0x3e0, 32 bytes reserved
         * for use by hypervisor/software.
         */
-       u8 reserved_sw[32];
+       union {
+               struct hv_enlightenments hv_enlightenments;
+               u8 reserved_sw[32];
+       };
 };