Re: [PATCH 02/22] iommu/amd: Introduce vIOMMU-specific events and event info

Nicolin Chen
2026-03-30T09:35:15Z

On Mon, Mar 30, 2026 at 08:41:46AM +0000, Suravee Suthikulpanit wrote:
> @@ -927,29 +927,42 @@ static void iommu_print_event(struct amd_iommu *iommu, void *__evt)
> }
>
> if (type == EVENT_TYPE_IO_FAULT) {
> - amd_iommu_report_page_fault(iommu, devid, pasid, address, flags);
> + u8 vflags = (event[0] >> 27) & 0x1F;

Hmm, I don't see this vflags field in the AMD vIOMMU spec
(48882-PUB—Rev 3.10—Feb 2025).

Anyway, perhaps define a pair of SHIFT/MASK macros like other
fields?

Nicolin