vm_event: allow subscribing to write events for specific MSR-s
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Tue, 21 Jun 2016 09:59:37 +0000 (11:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Jun 2016 09:59:37 +0000 (11:59 +0200)
commit490a39a1dbc7406776344f36e1b27c33c2ada63d
tree2db2f0efa1259e25127f93c2f4addd9881ff2afe
parent0630892fafe87ff5e3b65422d38158de46db3ed0
vm_event: allow subscribing to write events for specific MSR-s

Previously, subscribing to MSR write events was an all-or-none
approach, with special cases for introspection MSR-s. This patch
allows the vm_event consumer to specify exactly what MSR-s it is
interested in, and as a side-effect gets rid of the
vmx_introspection_force_enabled_msrs[] special case.
The patch also introduces arch_monitor_init_domain() and
arch_monitor_cleanup_domain(), to do monitor-specific work
(as opposed to the previous way of doing all the setup in
vm_event_init_domain() / vm_event_cleanup_domain()).
This replaces the previously posted "xen: Filter out MSR write
events" patch.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
15 files changed:
tools/libxc/include/xenctrl.h
tools/libxc/xc_monitor.c
xen/arch/x86/hvm/event.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/monitor.c
xen/arch/x86/vm_event.c
xen/common/vm_event.c
xen/include/asm-arm/monitor.h
xen/include/asm-x86/domain.h
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/monitor.h
xen/include/public/domctl.h