aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_linux.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-01-14 14:10:40 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-01-14 14:10:40 +0000
commit2d8eb0f62d39abc9d1a49a808f1e69169ea23212 (patch)
treedf0104b4e10fefc2861c1085aede3545aafbe1ab /tools/libxc/xc_linux.c
parent58a1c3859419969259a6a928310c313f6116e0b4 (diff)
downloadxen-2d8eb0f62d39abc9d1a49a808f1e69169ea23212.tar.gz
xen-2d8eb0f62d39abc9d1a49a808f1e69169ea23212.tar.bz2
xen-2d8eb0f62d39abc9d1a49a808f1e69169ea23212.zip
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>
Diffstat (limited to 'tools/libxc/xc_linux.c')
-rw-r--r--tools/libxc/xc_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c
index e0e807f2cc..3f3bc10d95 100644
--- a/tools/libxc/xc_linux.c
+++ b/tools/libxc/xc_linux.c
@@ -180,7 +180,7 @@ void *xc_map_foreign_bulk(int xc_handle, uint32_t dom, int prot,
}
}
- if ( rc < 0 && errno == ENOTTY && (int)num > 0 )
+ if ( rc < 0 && errno == EINVAL && (int)num > 0 )
{
/*
* IOCTL_PRIVCMD_MMAPBATCH_V2 is not supported - fall back to