ia64/xen-unstable

changeset 17350:6736c28a0d35

hvm: Allow HVM guests to execute GNTTABOP_setup_table.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 28 17:58:36 2008 +0000 (2008-03-28)
parents 4e2e98c2098e
children d8fc3b73fb76
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Fri Mar 28 17:50:10 2008 +0000
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Fri Mar 28 17:58:36 2008 +0000
     1.3 @@ -1706,7 +1706,7 @@ enum hvm_intblk hvm_interrupt_blocked(st
     1.4  static long hvm_grant_table_op(
     1.5      unsigned int cmd, XEN_GUEST_HANDLE(void) uop, unsigned int count)
     1.6  {
     1.7 -    if ( cmd != GNTTABOP_query_size )
     1.8 +    if ( (cmd != GNTTABOP_query_size) && (cmd != GNTTABOP_setup_table) )
     1.9          return -ENOSYS; /* all other commands need auditing */
    1.10      return do_grant_table_op(cmd, uop, count);
    1.11  }