x86/hvm: allow guest_request vm_events coming from userspace
authorAlexandru Isaila <aisaila@bitdefender.com>
Wed, 30 Aug 2017 09:04:13 +0000 (11:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 Aug 2017 09:04:13 +0000 (11:04 +0200)
commit7c4dc5dbdfd383cd58bcac522f746409e9c0c267
treec502bcc8a9e761fc3ea2bcf4bf6f05cd88fe607c
parent69d99d1b223fc5082400374698ddd7486e5ea953
x86/hvm: allow guest_request vm_events coming from userspace

In some introspection usecases, an in-guest agent needs to communicate
with the external introspection agent.  An existing mechanism is
HVMOP_guest_request_vm_event, but this is restricted to kernel usecases
like all other hypercalls.

Introduce a mechanism whereby the introspection agent can whitelist the
use of HVMOP_guest_request_vm_event directly from userspace.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_monitor.c
xen/arch/x86/hvm/hypercall.c
xen/common/monitor.c
xen/include/asm-arm/monitor.h
xen/include/asm-x86/domain.h
xen/include/asm-x86/monitor.h
xen/include/public/domctl.h