[Pkg-libvirt-commits] [libguestfs] 11/165: launch: direct: Supply -M option when testing qemu for devices.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Aug 30 08:24:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit c4a91a1866ddba3a52a2b9f2be7d66f519d958ba
Author: Hilko Bengen <bengen at hilluzination.de>
Date: Tue Apr 29 23:18:01 2014 +0200
launch: direct: Supply -M option when testing qemu for devices.
qemu-system-arm 2.0 as currently available through Debian/unstable
doesn't want to tell us anything about available devices unless we
specify a machine type.
---
src/launch-direct.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/launch-direct.c b/src/launch-direct.c
index bb06c9e..90dc646 100644
--- a/src/launch-direct.c
+++ b/src/launch-direct.c
@@ -1022,6 +1022,10 @@ test_qemu (guestfs_h *g, struct backend_direct_data *data)
guestfs___cmd_add_arg (cmd3, g->hv);
guestfs___cmd_add_arg (cmd3, "-display");
guestfs___cmd_add_arg (cmd3, "none");
+#ifdef MACHINE_TYPE
+ guestfs___cmd_add_arg (cmd3, "-M");
+ guestfs___cmd_add_arg (cmd3, MACHINE_TYPE);
+#endif
guestfs___cmd_add_arg (cmd3, "-machine");
guestfs___cmd_add_arg (cmd3, "accel=kvm:tcg");
guestfs___cmd_add_arg (cmd3, "-device");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list