From: Zhenzhong Duan Date: Fri, 6 Jun 2025 09:24:02 +0000 (+0800) Subject: hw/virtio/virtio-mem: Fix definition of VirtIOMEMClass X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61c4c2558df16262db34397cf50a16ad7b725731;p=thirdparty%2Fqemu.git hw/virtio/virtio-mem: Fix definition of VirtIOMEMClass Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice. This isn't catastrophic only because sizeof(VirtIODevice) > sizeof(VirtioDeviceClass). Fixes: 910b25766b33 ("virtio-mem: Paravirtualized memory hot(un)plug") Signed-off-by: Zhenzhong Duan Reviewed-by: David Hildenbrand Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250606092406.229833-2-zhenzhong.duan@intel.com> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/include/hw/virtio/virtio-mem.h b/include/hw/virtio/virtio-mem.h index bc4f787772..e0ab31b45a 100644 --- a/include/hw/virtio/virtio-mem.h +++ b/include/hw/virtio/virtio-mem.h @@ -134,7 +134,7 @@ struct VirtioMemSystemReset { struct VirtIOMEMClass { /* private */ - VirtIODevice parent; + VirtioDeviceClass parent_class; /* public */ void (*fill_device_info)(const VirtIOMEM *vmen, VirtioMEMDeviceInfo *vi);