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:
Razvan Cojocaru authored and Wei Liu committed 2018-02-06 16:45:40 +00:00
1 parent 309e0509b7
commit d87cfb59b4
1 file changed
+2
+2
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.