QOM: device_del core dumps qemu
Luiz Capitulino
Reviewed-by Anthony Liguori
# qemu [..] -netdev type=tap,vhost=on,id=guest0,script=qemu-ifup-switch \
-device virtio-net-pci,netdev=guest0,id=fooThe on the monitor:
(qemu) device_del foo
(qemu)
Bisect says it's caused by commit:
commit dd0ba250ca83ed915ea192ab7539cdbb4e868c14
Author: Paolo Bonzini <[email protected]> Date: Thu Feb 2 13:08:48 2012 +0100
qdev: let QOM free properties
Drop the special free callback. Instead, register a "regular" release method in the non-legacy property.
Quoted 8 lines · Luiz Capitulino
# qemu [..] -netdev type=tap,vhost=on,id=guest0,script=qemu-ifup-switch \ -device virtio-net-pci,netdev=guest0,id=fooThe on the monitor:
(qemu)
device_delfoo
(qemu)
Pretty sure this is fixed by:
commit e5ab1404d014cefe22e9a10fca00d0acf4fe412b
Author: Anthony Liguori <[email protected]> Date: Thu Mar 15 11:29:56 2012 -0500
pci: fix double free of romfile property
Which I just pushed earlier today.
Could you confirm that?
Regards,
Anthony Liguori
Quoted 15 lines
Bisect says it's caused by commit:
commit
dd0ba250ca83ed915ea192ab7539cdbb4e868c14Author: Paolo Bonzini<[email protected]> Date: Thu Feb 2 13:08:48 2012 +0100qdev: let QOM free properties
Drop the special free callback. Instead, register a "regular" release method in the non-legacy property.
Reviewed-by Anthony Liguori<[email protected]>Signed-off-by Paolo Bonzini<[email protected]>
Quoted 13 lines · On Mon, 19 Mar 2012 15:22:34 -0500 Anthony Liguori <[email protected]>…
Quoted 8 lines · Luiz Capitulino
# qemu [..] -netdev type=tap,vhost=on,id=guest0,script=qemu-ifup-switch \ -device virtio-net-pci,netdev=guest0,id=fooThe on the monitor:
(qemu)
device_delfoo
(qemu)Pretty sure this is fixed by:
commit
e5ab1404d014cefe22e9a10fca00d0acf4fe412b
Quoted 8 lines
Author: Anthony Liguori <[email protected]> Date: Thu Mar 15 11:29:56 2012 -0500pci: fix double free of romfile property
Which I just pushed earlier today.
Could you confirm that?
Confirmed, it fixes the bug to me, thanks.