]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/virtio/virtio-pmem: Fix definition of VirtIOPMEMClass
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Fri, 6 Jun 2025 09:24:03 +0000 (17:24 +0800)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 10 Jun 2025 10:59:09 +0000 (12:59 +0200)
commit747a7ee3741fa9876583cbbbc8dd8b8b351a199c
tree94f79a2c07cb20f295c058d8918c397aeced59a4
parent61c4c2558df16262db34397cf50a16ad7b725731
hw/virtio/virtio-pmem: Fix definition of VirtIOPMEMClass

VirtIOPMEMClass's parent is VirtioDeviceClass rather than VirtIODevice.
This isn't catastrophic only because sizeof(VirtIODevice) >
sizeof(VirtioDeviceClass).

Fixes: 5f503cd9f388 ("virtio-pmem: add virtio device")
Closes: https://lists.gnu.org/archive/html/qemu-devel/2025-06/msg00586.html
Reported-by: David Hildenbrand <david@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Message-ID: <20250606092406.229833-3-zhenzhong.duan@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
include/hw/virtio/virtio-pmem.h