[Libguestfs] [Qemu-devel] Cubietruck: cannot create KVM guests: "kvm_init_vcpu failed: Invalid argument"
Kashyap Chamarthy
kchamart at redhat.com
Tue Dec 9 17:20:51 UTC 2014
On Tue, Dec 09, 2014 at 06:05:48PM +0100, Kashyap Chamarthy wrote:
> On Tue, Dec 09, 2014 at 04:59:33PM +0000, Richard W.M. Jones wrote:
[. . .]
> > Kashyap, how about the following patch as discussed on IRC ...
Thanks for pushing this.
>
> Yeah, was about to send exactly that to the list. I tested it too, looks
> good.
>
> > From 6468b9d60172bcef76b36c14b72f9a1913d94954 Mon Sep 17 00:00:00 2001
> > From: Kashyap Chamarthy <kchamart at redhat.com>
> > Date: Tue, 9 Dec 2014 16:58:11 +0000
> > Subject: [PATCH] arm: Use -cpu host on KVM.
> >
> > ---
> > 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. */
> > --
> > 2.1.0
> >
>
>
> --
> /kashyap
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs at redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs
--
/kashyap
More information about the Libguestfs
mailing list