From: Keir Fraser Date: Fri, 9 Jul 2010 16:16:41 +0000 (+0100) Subject: x86 hvm: Add a hypercall to allow HVM PV drivers to insert xentrace records X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11809 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c415ceb08e33411ec4f7bf472982116b4170489e;p=xen.git x86 hvm: Add a hypercall to allow HVM PV drivers to insert xentrace records Signed-off-by: Tim Deegan --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 2ff8cefede..ee27359bb0 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -3197,6 +3197,23 @@ long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE(void) arg) break; } + case HVMOP_xentrace: { + xen_hvm_xentrace_t tr; + + if ( copy_from_guest(&tr, arg, 1 ) ) + return -EFAULT; + + if ( tr.extra_bytes > sizeof(tr.extra) + || (tr.event & ~((1u<