You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// X64MsrExit bit position, missing from rust bindings for some reason. See https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/265f685159dfd3b2fae8d1dcf1b7d206c31ee880/virtualization/api/hypervisor-platform/headers/WinHvPlatformDefs.h#L1495
// MSR access (read or write) - we configured all MSR writes to cause exits
426
+
WHvRunVpExitReasonX64MsrAccess => {
427
+
let msr_access = unsafe{ exit_context.Anonymous.MsrAccess};
428
+
let eax = msr_access.Rax;
429
+
let edx = msr_access.Rdx;
430
+
let written_value = (edx << 32) | eax;
431
+
let access = unsafe{ msr_access.AccessInfo.AsUINT32}asu32;
432
+
// Missing from rust bindings for some reason, see https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/265f685159dfd3b2fae8d1dcf1b7d206c31ee880/virtualization/api/hypervisor-platform/headers/WinHvPlatformDefs.h#L3020
0 commit comments