From: Sairaj Kodilkar Date: Fri, 1 Aug 2025 06:05:06 +0000 (+0530) Subject: hw/i386/amd_iommu: Support MMIO writes to the status register X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10690920b0efb3ed8b166443bae8077104bb129d;p=thirdparty%2Fqemu.git hw/i386/amd_iommu: Support MMIO writes to the status register Support the writes to the status register so that guest can reset the EventOverflow, EventLogInt, ComWaitIntr, etc bits after servicing the respective interrupt. Signed-off-by: Sairaj Kodilkar Reviewed-by: Vasant Hegde Message-Id: <20250801060507.3382-6-sarunkod@amd.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index c9c32cf7b0..6925085d29 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -862,6 +862,9 @@ static void amdvi_mmio_write(void *opaque, hwaddr addr, uint64_t val, amdvi_mmio_reg_write(s, size, val, addr); amdvi_handle_pprtail_write(s); break; + case AMDVI_MMIO_STATUS: + amdvi_mmio_reg_write(s, size, val, addr); + break; } }