Re: [PATCH v2 01/12] hw/i386/amd_iommu: Do not use SysBus API to map local MMIO region

2023-10-19 Thread Zhao Liu
On Thu, Oct 19, 2023 at 09:15:59AM +0200, Philippe Mathieu-Daudé wrote: > Date: Thu, 19 Oct 2023 09:15:59 +0200 > From: Philippe Mathieu-Daudé > Subject: [PATCH v2 01/12] hw/i386/amd_iommu: Do not use SysBus API to map > local MMIO region > X-Mailer: git-send-email 2.41.0 > &

[PATCH v2 01/12] hw/i386/amd_iommu: Do not use SysBus API to map local MMIO region

2023-10-19 Thread Philippe Mathieu-Daudé
There is no point in exposing an internal MMIO region via SysBus and directly mapping it in the very same device. Just map it without using the SysBus API. Transformation done using the following coccinelle script: @@ expression sbdev; expression index; expression addr; expression