]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
hvm: Allow HVM guests to execute GNTTABOP_setup_table.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Mar 2008 18:00:02 +0000 (18:00 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Mar 2008 18:00:02 +0000 (18:00 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17320:6736c28a0d35cf4d25e2e93a98c1443e809f2c50
xen-unstable date:        Fri Mar 28 17:58:36 2008 +0000

xen/arch/x86/hvm/hvm.c

index 52a19aed455be993bafcbcc903a7f8ad60b7f066..335c895b5eae7e0d34d747cb954df46975b526ab 100644 (file)
@@ -708,7 +708,7 @@ void hvm_cpuid(unsigned int input, unsigned int *eax, unsigned int *ebx,
 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);
 }