To avoid delivering it to an inconsistent configuration. Theoretically,
we could lose an IR fault event during that window, but that's
negligible.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
vtd_update_gcmd_reg(reg_base, VTD_GCMD_IRE, 1);
+ /* Mask events */
+ mmio_write32_field(reg_base + VTD_FECTL_REG, VTD_FECTL_IM, 1);
+
+ /* Restore, unmasking with the last write. */
for (n = ARRAY_SIZE(unit->fault_event_regs) - 1; n >= 0; n--)
mmio_write32(reg_base + VTD_FECTL_REG + n * 4,
unit->fault_event_regs[n]);