[libvirt PATCH] qemu: Do not set default CPU for archs without CPU driver

Daniel P. Berrangé berrange at redhat.com
Tue Feb 25 15:50:42 UTC 2020


On Tue, Feb 25, 2020 at 04:45:50PM +0100, Jiri Denemark wrote:
> Whenever there is a guest CPU configured in domain XML, we will call
> some CPU driver APIs to validate the CPU definition and check its
> compatibility with the hypervisor. Thus domains with guest CPU
> specification can only be started if the guest architecture is supported
> by the CPU driver. But we would add a default CPU to any domain as long
> as QEMU reports it causing failures to start any domain on affected
> architectures.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1805755
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/cpu/cpu.c            | 24 ++++++++++++++++++++++++
>  src/cpu/cpu.h            |  3 +++
>  src/libvirt_private.syms |  1 +
>  src/qemu/qemu_domain.c   |  3 +++
>  4 files changed, 31 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list