On 13/10/26 10:39, Peter Maydell wrote:
The IRS_VMAP_L2_VISTR allows the guest to make an L2 entry in the
VM's VLPI or VSPI IST valid; it is the equivalent of what
IRS_MAP_L2_ISTR does for the physical LPI IST.

Signed-off-by: Peter Maydell <[email protected]>
---
  hw/intc/arm_gicv5.c                | 76 ++++++++++++++++++++++++++++++
  hw/intc/arm_gicv5_common.c         |  1 +
  include/hw/intc/arm_gicv5_common.h |  1 +
  3 files changed, 78 insertions(+)


@@ -2128,6 +2184,15 @@ static bool config_writel(GICv5 *s, GICv5Domain domain, 
hwaddr offset,
                               deposit64(cs->irs_vmap_vistr[domain],
                                         32, 32, data));
          return true;
+    case A_IRS_VMAP_L2_VISTR:
+        irs_vmap_l2_vistr_write(s, domain,
+                                deposit64(cs->irs_vmap_vistr[domain], 0, 32, 
data));

irs_vmap_l2_vistr[] typo?

+        return true;
+    case A_IRS_VMAP_L2_VISTR + 4:
+        irs_vmap_l2_vistr_write(s, domain,
+                                deposit64(cs->irs_vmap_vistr[domain],
+                                          32, 32, data));

(ditto?)

+        return true;
      case A_IRS_SPI_SELR:
          cs->irs_spi_selr[domain] = data;
          return true;


Reply via email to