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>
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);