qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] xics/kvm: Fix issues with older KVMs on POWER9 hosts
@ 2019-06-13 16:44 Greg Kurz
  2019-06-13 16:44 ` [Qemu-devel] [PATCH 1/3] xics/spapr: Prevent RTAS/hypercalls emulation to be used by in-kernel XICS Greg Kurz
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Greg Kurz @ 2019-06-13 16:44 UTC (permalink / raw)
  To: David Gibson; +Cc: qemu-devel, qemu-ppc, Cédric Le Goater, Greg Kurz

This series fixes various issues that can happen when running a spapr
machine on a POWER9 host and KVM doesn't have proper support to destroy
XICS-on-XIVE devices (ie, without the changes at [1]).

Patch 1 and 2 fix a QEMU crash that happens with the default settings, ie.
ic-mode=dual and kernel-irqchip is unspecified (ie, emulated fallback is
allowed).

Patch 3 allows to detect the same KVM limitation when passing
kernel-irqchip=on, and to error out early instead of exiting at
the next guest reboot.

--
Greg

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5422e95103cf9663bc86cf1056a3ea44c2e2f09e

---

Greg Kurz (3):
      xics/spapr: Prevent RTAS/hypercalls emulation to be used by in-kernel XICS
      xics/spapr: Register RTAS/hypercalls once at machine init
      xics/spapr: Detect old KVM XICS on POWER9 hosts


 docs/specs/ppc-spapr-xive.rst |    4 ++-
 hw/intc/xics_kvm.c            |   49 +++++++++++++++++++++++--------------
 hw/intc/xics_spapr.c          |   54 +++++++++++++++++++++++++++++++++++------
 hw/ppc/spapr_irq.c            |   16 +++++++++++-
 include/hw/ppc/spapr.h        |    4 ---
 include/hw/ppc/xics.h         |    1 -
 include/hw/ppc/xics_spapr.h   |    2 ++
 7 files changed, 95 insertions(+), 35 deletions(-)



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-06-14  5:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-13 16:44 [Qemu-devel] [PATCH 0/3] xics/kvm: Fix issues with older KVMs on POWER9 hosts Greg Kurz
2019-06-13 16:44 ` [Qemu-devel] [PATCH 1/3] xics/spapr: Prevent RTAS/hypercalls emulation to be used by in-kernel XICS Greg Kurz
2019-06-14  1:34   ` David Gibson
2019-06-14  5:37     ` Greg Kurz
2019-06-13 16:44 ` [Qemu-devel] [PATCH 2/3] xics/spapr: Register RTAS/hypercalls once at machine init Greg Kurz
2019-06-14  1:38   ` David Gibson
2019-06-13 16:45 ` [Qemu-devel] [PATCH 3/3] xics/spapr: Detect old KVM XICS on POWER9 hosts Greg Kurz
2019-06-14  1:40   ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).