Skip to contentSkip to conversation

Xen 4.0 is broken on 32bit

PATCH Huang2, Wei 2 participants 3 messages Jul 7, 2010 – Jul 8, 2010

lore
Share & tools
lore
#0 lore raw

The changset 21229 breaks Xen 4.0.1 tree on 32bit environment. Starting a guest VM will throw out an error as "Error: (38, 'Function not implemented')". Apparently, the hypercall to mem_sharing_op is missing for 32bit environment due to 21229. The following small patch can fix this issue.

Thanks,
-Wei

xen/arch/x86/domctl.c Wed Jul 07 11:51:26 2010 -0500 renamed from xen/arch/x86/domctl.c Fri Jul 02 22:04:32 2010 +0100 +5 -0
diff -r afe5a6a8b8df xen/arch/x86/domctl.c
@@ -1449,6 +1449,11 @@
         }
     }
     break;
+#else
+    case XEN_DOMCTL_mem_event_op:
+    case XEN_DOMCTL_mem_sharing_op:
+        ret = 0;
+        break;
 #endif /* __x86_64__ */
 
     default:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 4 lines · Wei

The changset 21229 breaks Xen 4.0.1 tree on 32bit environment. Starting a guest VM will throw out an error as ³Error: (38, ŒFunction not implemented¹)². Apparently, the hypercall to mem_sharing_op is missing for 32bit environment due to 21229. The following small patch can fix this issue.

This will be the unconditional xc.dom_set_memshr() call in xend's image.py. Should be wrapped in try-except.

-- Keir

Quoted 21 lines

Thanks,
-Wei

diff -r afe5a6a8b8df xen/arch/x86/domctl.c

xen/arch/x86/domctl.c Wed Jul 07 11:51:26 2010 -0500 renamed from xen/arch/x86/domctl.c Fri Jul 02 22:04:32 2010 +0100 +5 -0
@@ -1449,6 +1449,11 @@
         } 
     }
     break;
+#else
+    case XEN_DOMCTL_mem_event_op:
+    case XEN_DOMCTL_mem_sharing_op:
+        ret = 0;
+        break;
 #endif /* __x86_64__ */
 
     default:
#2 lore raw
In reply to Huang2, Wei

Should be fixed by xen-unstable:21751 and xen-4.0-testing:21258.

-- Keir

Quoted 26 lines · Wei

The changset 21229 breaks Xen 4.0.1 tree on 32bit environment. Starting a guest VM will throw out an error as ³Error: (38, ŒFunction not implemented¹)². Apparently, the hypercall to mem_sharing_op is missing for 32bit environment due to 21229. The following small patch can fix this issue.

Thanks,
-Wei

diff -r afe5a6a8b8df xen/arch/x86/domctl.c

xen/arch/x86/domctl.c Wed Jul 07 11:51:26 2010 -0500 renamed from xen/arch/x86/domctl.c Fri Jul 02 22:04:32 2010 +0100 +5 -0
@@ -1449,6 +1449,11 @@
         } 
     }
     break;
+#else
+    case XEN_DOMCTL_mem_event_op:
+    case XEN_DOMCTL_mem_sharing_op:
+        ret = 0;
+        break;
 #endif /* __x86_64__ */
 
     default: