Displaying 4 results from an estimated 4 matches for "guestfs___get_cpu_model".
2014 Dec 09
2
Re: [Qemu-devel] Cubietruck: cannot create KVM guests: "kvm_init_vcpu failed: Invalid argument"
...rks with it :-)
>
> With the below diff in `libguestfs`:
>
> $ git diff src/launch.c
> diff --git a/src/launch.c b/src/launch.c
> index 9fadce8..ce71a8e 100644
> --- a/src/launch.c
> +++ b/src/launch.c
> @@ -400,7 +400,7 @@ const char *
> guestfs___get_cpu_model (int kvm)
> {
> #if defined(__arm__) /* 32 bit ARM. */
> - return NULL;
> + return "host";
>
> #elif defined(__aarch64__)
> /* With -M virt, the default -cpu is cortex-a15. Stupid. */
>
>
> I can boot a KVM...
2014 Dec 09
0
Re: [Qemu-devel] Cubietruck: cannot create KVM guests: "kvm_init_vcpu failed: Invalid argument"
...w diff in `libguestfs`:
> >
> > $ git diff src/launch.c
> > diff --git a/src/launch.c b/src/launch.c
> > index 9fadce8..ce71a8e 100644
> > --- a/src/launch.c
> > +++ b/src/launch.c
> > @@ -400,7 +400,7 @@ const char *
> > guestfs___get_cpu_model (int kvm)
> > {
> > #if defined(__arm__) /* 32 bit ARM. */
> > - return NULL;
> > + return "host";
> >
> > #elif defined(__aarch64__)
> > /* With -M virt, the default -cpu is cortex-a15. Stupid. */...
2015 Jan 21
0
[PATCH] aarch64: launch: libvirt: As a workaround, pass -cpu parameter to qemu.
...}
} end_element ();
}
@@ -1728,6 +1732,21 @@ construct_libvirt_xml_qemu_cmdline (guestfs_h *g,
}
}
+#ifdef __aarch64__
+ /* This is a temporary hack until RHBZ#1184411 is resolved.
+ * See comments above about cpu model and aarch64.
+ */
+ const char *cpu_model = guestfs___get_cpu_model (params->data->is_kvm);
+ if (STRNEQ (cpu_model, "host")) {
+ start_element ("qemu:arg") {
+ attribute ("value", "-cpu");
+ } end_element ();
+ start_element ("qemu:arg") {
+ attribute ("value", cpu_mo...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.