Skip to content

Commit

Permalink
arm: launch: libvirt: Force <emulator>.
Browse files Browse the repository at this point in the history
This is a temporary hack, because otherwise libvirt tries to use
/usr/bin/qemu-kvm even though this is ARM.
  • Loading branch information
rwmjones committed Sep 8, 2013
1 parent 06e43a3 commit 37e1e0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/launch-libvirt.c
Expand Up @@ -1001,6 +1001,16 @@ construct_libvirt_xml_devices (guestfs_h *g,
XMLERROR (-1, xmlTextWriterWriteString (xo, BAD_CAST g->hv)); XMLERROR (-1, xmlTextWriterWriteString (xo, BAD_CAST g->hv));
XMLERROR (-1, xmlTextWriterEndElement (xo)); XMLERROR (-1, xmlTextWriterEndElement (xo));
} }
#ifdef __arm__
/* Hopefully temporary hack to make ARM work (otherwise libvirt
* chooses to run /usr/bin/qemu-kvm).
*/
else {
XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "emulator"));
XMLERROR (-1, xmlTextWriterWriteString (xo, BAD_CAST QEMU));
XMLERROR (-1, xmlTextWriterEndElement (xo));
}
#endif


/* virtio-scsi controller. */ /* virtio-scsi controller. */
XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "controller")); XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "controller"));
Expand Down

0 comments on commit 37e1e0d

Please sign in to comment.