From 4f311a70893800f33b57852ca4453823271c022b Mon Sep 17 00:00:00 2001 From: Cédric Le Goater Date: Wed, 19 Aug 2020 15:08:36 +0200 Subject: spapr/xive: Add a 'hv-prio' property to represent the KVM escalation priority On POWER9, the KVM XIVE device uses priority 7 for the escalation interrupts. On POWER10, the host can use a reduced set of priorities and KVM will configure the escalation priority to a lower number. In any case, the guest is allowed to use priorities in a single range : [ 0 .. (maxprio - 1) ]. Introduce a 'hv-prio' property to represent the escalation priority number and use it to compute the "ibm,plat-res-int-priorities" property defining the priority ranges reserved by the hypervisor. Signed-off-by: Cédric Le Goater Message-Id: <20200819130843.2230799-2-clg@kaod.org> Signed-off-by: David Gibson --- include/hw/ppc/spapr_xive.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hw/ppc/spapr_xive.h') diff --git a/include/hw/ppc/spapr_xive.h b/include/hw/ppc/spapr_xive.h index a1c8540ab4..26c8d90d71 100644 --- a/include/hw/ppc/spapr_xive.h +++ b/include/hw/ppc/spapr_xive.h @@ -49,6 +49,8 @@ typedef struct SpaprXive { void *tm_mmap; MemoryRegion tm_mmio_kvm; VMChangeStateEntry *change; + + uint8_t hv_prio; } SpaprXive; typedef struct SpaprXiveClass { -- cgit v1.2.3-55-g7522