From: Keir Fraser Date: Fri, 28 Mar 2008 17:58:36 +0000 (+0000) Subject: hvm: Allow HVM guests to execute GNTTABOP_setup_table. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14234^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a828fa1544b0ae5b3941e5f8181603964bcec530;p=xen.git hvm: Allow HVM guests to execute GNTTABOP_setup_table. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 1f66fcb105..961bfbf354 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1706,7 +1706,7 @@ enum hvm_intblk hvm_interrupt_blocked(struct vcpu *v, struct hvm_intack intack) static long hvm_grant_table_op( unsigned int cmd, XEN_GUEST_HANDLE(void) uop, unsigned int count) { - if ( cmd != GNTTABOP_query_size ) + if ( (cmd != GNTTABOP_query_size) && (cmd != GNTTABOP_setup_table) ) return -ENOSYS; /* all other commands need auditing */ return do_grant_table_op(cmd, uop, count); }