[Libvir] [PATCH] Fix value of XEN_V2_OP_SETMAXMEM

Masayuki Sunou fj1826dm at aa.jp.fujitsu.com
Mon Mar 26 00:24:27 UTC 2007


Hi

Because the value of XEN_V2_OP_SETMAXMEM in xen_internal.c is wrong, virsh
setmaxmem outputs error message.
--> Both XEN_V2_OP_SETMAXMEM and XEN_V2_OP_GETVCPUINFO are set to 14, but
    XEN_V2_OP_SETMAXMEM should be set to 11.

--------------------------------------------------------------------------------
# virsh setmaxmem 0 921600
libvir: Xen error : failed Xen syscall  ioctl  8518692
--------------------------------------------------------------------------------

This patch sets the right value to XEN_V2_OP_SETMAXMEM.

Signed-off-by: Masayuki Sunou <fj1826dm at aa.jp.fujitsu.com>

Thanks,
Masayuki Sunou.

--------------------------------------------------------------------------------
Index: libvirt/src/xen_internal.c
===================================================================
RCS file: /data/cvs/libvirt/src/xen_internal.c,v
retrieving revision 1.67
diff -u -p -r1.67 xen_internal.c
--- libvirt/src/xen_internal.c	23 Mar 2007 09:18:24 -0000	1.67
+++ libvirt/src/xen_internal.c	26 Mar 2007 00:09:35 -0000
@@ -280,7 +280,7 @@ typedef struct xen_v0_domainop xen_v0_do
  */
 #define XEN_V0_OP_SETMAXMEM	28
 #define XEN_V1_OP_SETMAXMEM	28
-#define XEN_V2_OP_SETMAXMEM	14
+#define XEN_V2_OP_SETMAXMEM	11
 
 struct xen_v0_setmaxmem {
     domid_t	domain;
--------------------------------------------------------------------------------




More information about the libvir-list mailing list