debuggers.hg

changeset 20853:4b8843ecd553

libxc: Fix IOCTL_PRIVCMD_MMAPBATCH_V2 fallback check

privcmd_ioctl returns EINVAL if the type is not supported.
This fixes the guest booting issue caused by C/S 20791.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 14 14:10:40 2010 +0000 (2010-01-14)
parents 4a54c794bfd4
children db8a882f5515
files tools/libxc/xc_linux.c
line diff
     1.1 --- a/tools/libxc/xc_linux.c	Thu Jan 14 11:46:53 2010 +0000
     1.2 +++ b/tools/libxc/xc_linux.c	Thu Jan 14 14:10:40 2010 +0000
     1.3 @@ -180,7 +180,7 @@ void *xc_map_foreign_bulk(int xc_handle,
     1.4          }
     1.5      }
     1.6  
     1.7 -    if ( rc < 0 && errno == ENOTTY && (int)num > 0 )
     1.8 +    if ( rc < 0 && errno == EINVAL && (int)num > 0 )
     1.9      {
    1.10          /*
    1.11           * IOCTL_PRIVCMD_MMAPBATCH_V2 is not supported - fall back to