[PATCH v2 2/4] qemu: avoid launching non-x86 guests with 'pvspinlock' setting

Andrea Bolognani abologna at redhat.com
Wed Mar 25 13:40:15 UTC 2020


On Tue, 2020-03-24 at 14:33 -0300, Daniel Henrique Barboza wrote:
> The 'pvspinlock' feature is x86 only. The "<pvspinlock/>" declaration
> will always have a value 'on' or 'off', and both will break QEMU when
> launching non-x86 guests. This is the error message for
> "<pvspinlock state='on'/>" when running a ppc64 guest:
> 
> qemu-kvm: Expected key=value format, found +kvm_pv_unhalt
> 
> A similar error message is thrown for "<pvspinlock state='off'/>".
> 
> This patch prevents non-x86 guests from launching with any
> pvspinlock setting with a more informative error message:
> 
> error: unsupported configuration: The 'pvspinlock' feature is not
> supported for architecture 'ppc64' or machine type 'pseries'
> 
> Suggested-by: Andrea Bolognani <abologna at redhat.com>
> Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
> ---
>  src/qemu/qemu_domain.c | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)

Reviewed-by: Andrea Bolognani <abologna at redhat.com>

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list