|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-unstable] libxc: Fix	IOCTL_PRIVCMD_MMAPBATCH_V2 fal
 
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263478240 0
# Node ID 4b8843ecd553b983da3427687faa38ead7e330ae
# Parent  4a54c794bfd4901eaafcadaae194152472e9d889
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@xxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 tools/libxc/xc_linux.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 4a54c794bfd4 -r 4b8843ecd553 tools/libxc/xc_linux.c
--- a/tools/libxc/xc_linux.c    Thu Jan 14 11:46:53 2010 +0000
+++ b/tools/libxc/xc_linux.c    Thu Jan 14 14:10:40 2010 +0000
@@ -180,7 +180,7 @@ void *xc_map_foreign_bulk(int xc_handle,
         }
     }
 
-    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
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] [xen-unstable] libxc: Fix	IOCTL_PRIVCMD_MMAPBATCH_V2 fallback check,
Xen patchbot-unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |