All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/i386/amd_iommu.c: fix amdvi_unhandled_command logging cmd ID
@ 2026-02-20 18:14 David Hoppenbrouwers
  2026-02-23  7:32 ` Igor Mammedov
  2026-02-23  8:15 ` Sairaj Kodilkar
  0 siblings, 2 replies; 7+ messages in thread
From: David Hoppenbrouwers @ 2026-02-20 18:14 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Marcel Apfelbaum, Alejandro Jimenez,
	Sairaj Kodilkar, Paolo Bonzini, Richard Henderson,
	Michael S. Tsirkin, David Hoppenbrouwers

The command ID is in cmd[0], not cmd[1].

Signed-off-by: David Hoppenbrouwers <qemu@demindiro.com>
---
 hw/i386/amd_iommu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
index 789e09d6f2..2570a4701c 100644
--- a/hw/i386/amd_iommu.c
+++ b/hw/i386/amd_iommu.c
@@ -1456,9 +1456,9 @@ static void amdvi_cmdbuf_exec(AMDVIState *s)
         amdvi_inval_all(s, cmd);
         break;
     default:
-        trace_amdvi_unhandled_command(extract64(cmd[1], 60, 4));
+        trace_amdvi_unhandled_command(extract64(cmd[0], 60, 4));
         /* log illegal command */
-        amdvi_log_illegalcom_error(s, extract64(cmd[1], 60, 4),
+        amdvi_log_illegalcom_error(s, extract64(cmd[0], 60, 4),
                                    s->cmdbuf + s->cmdbuf_head);
     }
 }
-- 
2.52.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-24 17:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 18:14 [PATCH] hw/i386/amd_iommu.c: fix amdvi_unhandled_command logging cmd ID David Hoppenbrouwers
2026-02-23  7:32 ` Igor Mammedov
2026-02-23 13:06   ` David Hoppenbrouwers
2026-02-23 18:49     ` Alejandro Jimenez
2026-02-24 11:46       ` Igor Mammedov
2026-02-24 17:28       ` David Hoppenbrouwers
2026-02-23  8:15 ` Sairaj Kodilkar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.