virtio-mem: Fix definition of VirtIOMEMClass
PATCH 1/1 virtio-mem: Fix definition of VirtIOMEMClass
Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice.
--- include/hw/virtio/virtio-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/virtio/virtio-mem.h +1 -1
@@ -134,7 +134,7 @@ struct VirtioMemSystemReset {struct VirtIOMEMClass {/* private */ -VirtIODevice parent; +VirtioDeviceClass parent;/* public */ void (*fill_device_info)(const VirtIOMEM *vmen,VirtioMEMDeviceInfo *vi);
Signature · 1 line
2.34.1
Quoted 13 lines · Zhenzhong Duan
Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice.
Fixes 910b25766b33 ("virtio-mem: Paravirtualized memory hot(un)plug")Signed-off-by Zhenzhong Duan <[email protected]>--- include/hw/virtio/virtio-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/hw/virtio/virtio-mem.h +0
-0
include/hw/virtio/virtio-mem.h struct VirtioMemSystemReset { · line 137
Quoted 5 lines
include/hw/virtio/virtio-mem.h +1
-1@@ -134,7 +134,7 @@ struct VirtioMemSystemReset {struct VirtIOMEMClass {/* private */ -VirtIODevice parent; +VirtioDeviceClass parent;
I assume it's not currently a real problem because VirtIODevice is bigger than VirtioDeviceClass?
Or are you aware of any existing problems with that?
Signature · 3 lines
Cheers, David / dhildenb
Quoted 28 lines
-----Original Message-----
From: David Hildenbrand <[email protected]>
Subject: Re: [PATCH] virtio-mem: Fix definition of VirtIOMEMClassQuoted 13 lines · Zhenzhong Duan
Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice.
Fixes 910b25766b33 ("virtio-mem: Paravirtualized memory hot(un)plug")Signed-off-by Zhenzhong Duan <[email protected]>--- include/hw/virtio/virtio-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/hw/virtio/virtio-mem.h +0
-0include/hw/virtio/virtio-mem.h struct VirtioMemSystemReset { · line 137
Quoted 5 lines
include/hw/virtio/virtio-mem.h +1
-1@@ -134,7 +134,7 @@ struct VirtioMemSystemReset {struct VirtIOMEMClass {/* private */ -VirtIODevice parent; +VirtioDeviceClass parent;Reviewed-by David Hildenbrand <[email protected]>
Quoted 2 lines
I assume it's not currently a real problem because VirtIODevice is bigger than VirtioDeviceClass?
Yes, that's why we missed it.
Quoted 2 lines
Or are you aware of any existing problems with that?
No.
Zhenzhong
Quoted 13 lines · Zhenzhong Duan
Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice.
Fixes 910b25766b33 ("virtio-mem: Paravirtualized memory hot(un)plug")Signed-off-by Zhenzhong Duan <[email protected]>--- include/hw/virtio/virtio-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/hw/virtio/virtio-mem.h +0
-0
include/hw/virtio/virtio-mem.h struct VirtioMemSystemReset { · line 137
Quoted 5 lines
include/hw/virtio/virtio-mem.h +1
-1@@ -134,7 +134,7 @@ struct VirtioMemSystemReset {struct VirtIOMEMClass {/* private */ -VirtIODevice parent; +VirtioDeviceClass parent;
We seem to have the same problem for VirtIOPMEMClass. Can you check the other devices and send fixes? Thanks!
Signature · 3 lines
Cheers, David / dhildenb
Quoted 21 lines
-----Original Message-----
From: David Hildenbrand <[email protected]>
Subject: Re: [PATCH] virtio-mem: Fix definition of VirtIOMEMClassQuoted 14 lines · Zhenzhong Duan
Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice.
Fixes 910b25766b33 ("virtio-mem: Paravirtualized memory hot(un)plug")Signed-off-by Zhenzhong Duan <[email protected]>--- include/hw/virtio/virtio-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/hw/virtio/virtio-mem.h +0
-0@@ -134,7 +134,7 @@ struct VirtioMemSystemReset {
Quoted 7 lines
include/hw/virtio/virtio-mem.h struct VirtioMemSystemReset { · line 137
Quoted 4 lines
include/hw/virtio/virtio-mem.h +1
-1struct VirtIOMEMClass {/* private */ -VirtIODevice parent; +VirtioDeviceClass parent;We seem to have the same problem for VirtIOPMEMClass. Can you check the other devices and send fixes? Thanks!
Will do.
Thanks
Zhenzhong
Quoted 13 lines · Zhenzhong Duan
Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice.
Fixes 910b25766b33 ("virtio-mem: Paravirtualized memory hot(un)plug")Signed-off-by Zhenzhong Duan <[email protected]>--- include/hw/virtio/virtio-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/hw/virtio/virtio-mem.h +0
-0
include/hw/virtio/virtio-mem.h struct VirtioMemSystemReset { · line 137
Quoted 5 lines
include/hw/virtio/virtio-mem.h +1
-1@@ -134,7 +134,7 @@ struct VirtioMemSystemReset {struct VirtIOMEMClass {/* private */ -VirtIODevice parent; +VirtioDeviceClass parent;
Ouch, nice catch.