]> Git Repo - qemu.git/commitdiff
ppc/xive: Provide silent escalation support
authorCédric Le Goater <[email protected]>
Thu, 18 Jul 2019 11:54:10 +0000 (13:54 +0200)
committerDavid Gibson <[email protected]>
Wed, 21 Aug 2019 07:17:39 +0000 (17:17 +1000)
When the 's' bit is set the escalation is said to be 'silent' or
'silent/gather'. In such configuration, the notification sequence is
skipped and only the escalation sequence is performed. This is used to
configure all the EQs of a vCPU to escalate on a single EQ which will
then target the hypervisor.

Signed-off-by: Cédric Le Goater <[email protected]>
Message-Id: <20190718115420[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/intc/xive.c
include/hw/ppc/xive_regs.h

index 3fe84f3e76ab1f03bb5b0064074ca29a63313b1e..dd7d02dfdfadb08dbb1a608895e81c5011833d61 100644 (file)
@@ -1485,6 +1485,13 @@ static void xive_router_end_notify(XiveRouter *xrtr, uint8_t end_blk,
         xive_router_write_end(xrtr, end_blk, end_idx, &end, 1);
     }
 
+    /*
+     * When the END is silent, we skip the notification part.
+     */
+    if (xive_end_is_silent_escalation(&end)) {
+        goto do_escalation;
+    }
+
     /*
      * The W7 format depends on the F bit in W6. It defines the type
      * of the notification :
@@ -1564,6 +1571,7 @@ static void xive_router_end_notify(XiveRouter *xrtr, uint8_t end_blk,
          */
     }
 
+do_escalation:
     /*
      * If activated, escalate notification using the ESe PQ bits and
      * the EAS in w4-5
index 4378d7259c77416d00b1236b8394673ef47ff2a7..fed019516f3ff114ade70b5757cb02cedc745107 100644 (file)
@@ -212,6 +212,8 @@ typedef struct XiveEND {
 #define xive_end_is_escalate(end) (be32_to_cpu((end)->w0) & END_W0_ESCALATE_CTL)
 #define xive_end_is_uncond_escalation(end)              \
     (be32_to_cpu((end)->w0) & END_W0_UNCOND_ESCALATE)
+#define xive_end_is_silent_escalation(end)              \
+    (be32_to_cpu((end)->w0) & END_W0_SILENT_ESCALATE)
 
 static inline uint64_t xive_end_qaddr(XiveEND *end)
 {
This page took 0.029819 seconds and 4 git commands to generate.