Re: [Qemu-devel] [PATCH 04/28] memory: Fix type of IOMMUMemoryRegionClass member @parent_class

2019-07-26 Thread Philippe Mathieu-Daudé
On 7/26/19 2:05 PM, Markus Armbruster wrote: > TYPE_IOMMU_MEMORY_REGION is a direct subtype of TYPE_MEMORY_REGION. > Its instance struct is IOMMUMemoryRegion, and its first member is a > MemoryRegion. Correct. Its class struct is IOMMUMemoryRegionClass, > and its first member is a DeviceClass. W

[Qemu-devel] [PATCH 04/28] memory: Fix type of IOMMUMemoryRegionClass member @parent_class

2019-07-26 Thread Markus Armbruster
TYPE_IOMMU_MEMORY_REGION is a direct subtype of TYPE_MEMORY_REGION. Its instance struct is IOMMUMemoryRegion, and its first member is a MemoryRegion. Correct. Its class struct is IOMMUMemoryRegionClass, and its first member is a DeviceClass. Wrong. Messed up when commit 1221a474676 introduced t