Skip to content

Commit 0861f28

Browse files
committed
handle fixed DM ICR writes in the kernel
1 parent 04eda68 commit 0861f28

File tree

2 files changed

+224
-142
lines changed

2 files changed

+224
-142
lines changed

arch/x86/include/asm/svm.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#include <uapi/asm/svm.h>
66
#include <uapi/asm/kvm.h>
77

8-
#include <asm/hyperv-tlfs.h>
8+
/* TODO: including into mshv_vtl_main.c breaks the build. */
9+
// #include <asm/hyperv-tlfs.h>
910

1011
/*
1112
* 32-bit intercept words in the VMCB Control Area, starting
@@ -164,7 +165,8 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
164165
* for use by hypervisor/software.
165166
*/
166167
union {
167-
struct hv_vmcb_enlightenments hv_enlightenments;
168+
/* TODO: including into mshv_vtl_main.c breaks the build. */
169+
// struct hv_vmcb_enlightenments hv_enlightenments;
168170
u8 reserved_sw[32];
169171
};
170172
};
@@ -195,6 +197,9 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
195197
#define V_IGN_TPR_SHIFT 20
196198
#define V_IGN_TPR_MASK (1 << V_IGN_TPR_SHIFT)
197199

200+
#define V_GUEST_BUSY_SHIFT 63
201+
#define V_GUEST_BUSY_MASK (1ULL << V_GUEST_BUSY_SHIFT)
202+
198203
#define V_IRQ_INJECTION_BITS_MASK (V_IRQ_MASK | V_INTR_PRIO_MASK | V_IGN_TPR_MASK)
199204

200205
#define V_INTR_MASKING_SHIFT 24

0 commit comments

Comments
 (0)