mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tests/xen-access: disable CR4 write events on application exit
On exit, xen-access did not unsubscribe from CR4 write vm_events, potentially leaving the guest stuck. Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
This commit is contained in:
1 parent
309e0509b7
commit
d87cfb59b4
1 file changed
+2
@@ -654,6 +654,8 @@ int main(int argc, char *argv[])
|
||||
rc = xc_monitor_cpuid(xch, domain_id, 0);
|
||||
if ( desc_access )
|
||||
rc = xc_monitor_descriptor_access(xch, domain_id, 0);
|
||||
if ( write_ctrlreg_cr4 )
|
||||
rc = xc_monitor_write_ctrlreg(xch, domain_id, VM_EVENT_X86_CR4, 0, 0, 0, 0);
|
||||
|
||||
if ( privcall )
|
||||
rc = xc_monitor_privileged_call(xch, domain_id, 0);
|
||||
|
||||