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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
> ---
>  src/qemu/qemu_domain.c | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)

Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux