qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sairaj Kodilkar <sarunkod@amd.com>
To: <qemu-devel@nongnu.org>
Cc: <mst@redhat.com>, <marcel.apfelbaum@gmail.com>,
	<pbonzini@redhat.com>, <eduardo@habkost.net>,
	<richard.henderson@linaro.org>, <alejandro.j.jimenez@oracle.com>,
	<vasant.hegde@amd.com>, <philmd@linaro.org>,
	<Suravee.Suthikulpanit@amd.com>,
	Sairaj Kodilkar <sarunkod@amd.com>
Subject: [PATCH v3 5/6] hw/i386/amd_iommu: Support MMIO writes to the status register
Date: Fri, 1 Aug 2025 11:35:06 +0530	[thread overview]
Message-ID: <20250801060507.3382-6-sarunkod@amd.com> (raw)
In-Reply-To: <20250801060507.3382-1-sarunkod@amd.com>

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 <sarunkod@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
---
 hw/i386/amd_iommu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
index ea0cb0e21fae..681a46c3ceb8 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;
     }
 }
 
-- 
2.34.1



  parent reply	other threads:[~2025-08-01  6:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-01  6:05 [PATCH v3 0/6] hw/i386/amd_iommu: Cleanups and fixes Sairaj Kodilkar
2025-08-01  6:05 ` [PATCH v3 1/6] hw/i386/amd_iommu: Fix MMIO register write tracing Sairaj Kodilkar
2025-09-30  9:36   ` vsntk18
2025-09-30  9:38     ` Sairaj Kodilkar
2025-08-01  6:05 ` [PATCH v3 2/6] hw/i386/amd_iommu: Remove unused and wrongly set ats_enabled field Sairaj Kodilkar
2025-08-01 14:08   ` Philippe Mathieu-Daudé
2025-08-01  6:05 ` [PATCH v3 3/6] hw/i386/amd_iommu: Move IOAPIC memory region initialization to the end Sairaj Kodilkar
2025-08-01  6:05 ` [PATCH v3 4/6] hw/i386/amd_iommu: Fix amdvi_write*() Sairaj Kodilkar
2025-08-01  6:05 ` Sairaj Kodilkar [this message]
2025-08-01  6:05 ` [PATCH v3 6/6] hw/i386/amd_iommu: Fix event log generation Sairaj Kodilkar
2025-08-02  5:41 ` [PATCH v3 0/6] hw/i386/amd_iommu: Cleanups and fixes Michael Tokarev
2025-08-04 11:06   ` Sairaj Kodilkar
2025-08-06  6:58     ` Michael Tokarev
2025-08-07  6:40       ` Sairaj Kodilkar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250801060507.3382-6-sarunkod@amd.com \
    --to=sarunkod@amd.com \
    --cc=Suravee.Suthikulpanit@amd.com \
    --cc=alejandro.j.jimenez@oracle.com \
    --cc=eduardo@habkost.net \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=vasant.hegde@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).