]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
vm_event: make sure the domain is paused in key domctls
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Mon, 1 Feb 2016 12:51:14 +0000 (13:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 1 Feb 2016 12:51:14 +0000 (13:51 +0100)
commit24fdd3da8aae0fb386d781f98b5abe4b7dd03d88
treef87e2c53e2e7781365d454caeea5ac96a4732ccd
parentbea86645bb38e88621af204148e4c017acd0a066
vm_event: make sure the domain is paused in key domctls

This patch pauses the domain for all writes through the 'ad'
pointer in monitor_domctl(), defers a domain_unpause() call until
after the CRs are updated for the MONITOR_EVENT_WRITE_CTRLREG
case, and makes sure that the domain is paused for both vm_event
enable and disable cases in vm_event_domctl().
Thanks go to Andrew Cooper for his review and suggestions.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/monitor.c
xen/common/domctl.c
xen/common/vm_event.c