Permalink
Browse files

arm: launch: libvirt: Set kernel_irqchip=off for KVM to work around b…

…uggy qemu/kernel.
  • Loading branch information...
1 parent 37e1e0d commit f8d89bc42fbd930c61e4f6a81d9a9dc3465f2924 @rwmjones rwmjones committed Sep 9, 2013
Showing with 19 additions and 0 deletions.
  1. +19 −0 src/launch-libvirt.c
View
@@ -1504,6 +1504,25 @@ construct_libvirt_xml_qemu_cmdline (guestfs_h *g,
XMLERROR (-1, xmlTextWriterEndElement (xo));
}
+#ifdef __arm__
+ /* Set kernel_irqchip=off. Unclear why this is needed. Is qemu or
+ * the kernel broken? See:
+ * http://www.mail-archive.com/arm@lists.fedoraproject.org/msg05546.html
+ */
+ if (params->is_kvm) {
+ XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "qemu:arg"));
+ XMLERROR (-1,
+ xmlTextWriterWriteAttribute (xo, BAD_CAST "value",
+ BAD_CAST "-machine"));
+ XMLERROR (-1, xmlTextWriterEndElement (xo));
+ XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "qemu:arg"));
+ XMLERROR (-1,
+ xmlTextWriterWriteAttribute (xo, BAD_CAST "value",
+ BAD_CAST "kernel_irqchip=off"));
+ XMLERROR (-1, xmlTextWriterEndElement (xo));
+ }
+#endif
+
/* The qemu command line arguments requested by the caller. */
for (hp = g->hv_params; hp; hp = hp->next) {
XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "qemu:arg"));

0 comments on commit f8d89bc

Please sign in to comment.