[Pkg-libvirt-commits] [libguestfs] 63/146: arm: Use -cpu host on KVM.
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 17:00:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit 8312ea2ad2619264c306511180e0198ebcadf9a0
Author: Kashyap Chamarthy <kchamart at redhat.com>
Date: Tue Dec 9 16:58:11 2014 +0000
arm: Use -cpu host on KVM.
(cherry picked from commit 6468b9d60172bcef76b36c14b72f9a1913d94954)
---
src/launch.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/launch.c b/src/launch.c
index 9fadce8..78d26fe 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -400,7 +400,10 @@ const char *
guestfs___get_cpu_model (int kvm)
{
#if defined(__arm__) /* 32 bit ARM. */
- return NULL;
+ if (kvm)
+ return "host";
+ else
+ return NULL;
#elif defined(__aarch64__)
/* With -M virt, the default -cpu is cortex-a15. Stupid. */
--
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