[libvirt] [PATCH] cpu_ppc64: Add support for host-model on POWER9

Andrea Bolognani abologna at redhat.com
Wed Jun 7 13:05:53 UTC 2017


On Thu, 2017-05-18 at 14:40 +0200, Jiri Denemark wrote:
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/cpu/cpu_ppc64.c                                |  8 ++++----
>  .../qemuxml2argv-pseries-cpu-compat-power9.args    | 24 ++++++++++++++++++++++
>  .../qemuxml2argv-pseries-cpu-compat-power9.xml     | 21 +++++++++++++++++++
>  tests/qemuxml2argvtest.c                           |  7 +++++++
>  tests/testutilsqemu.c                              | 13 +++++++++++-
>  tests/testutilsqemu.h                              |  1 +
>  6 files changed, 69 insertions(+), 5 deletions(-)
>  create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-compat-power9.args
>  create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-compat-power9.xml

Finally had a chance to test this. The patch itself looks okay;
however, on an actual POWER9 host, I get

  qemu-kvm: can't apply global
  host-powerpc64-cpu.compat=power9: Invalid compatibility
  mode "power9"

and

  qemu-kvm: Compatibility PVR 0x0f000004 not valid for CPU

when trying power9 and power8 compat modes respectively.

David, are these known issues in QEMU? Are they being tracked?

I don't see much point in updating libvirt to cope with these
new compat modes when QEMU itself doesn't.

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list