Re: [PATCH] lsilogic: Use PCIDevice::exit instead of DeviceState::unrealize

2021-03-02 Thread Paolo Bonzini
On 02/03/21 14:30, Peng Liang wrote: PCI_DEVICE has overwritten DeviceState::unrealize (pci_qdev_unrealize). However, LSI53C895A, which is a subclass of PCI_DEVICE, overwrites it again and doesn't save the parent's implementation so the PCI_DEVICE's implementation of DeviceState::unrealize will n

[PATCH] lsilogic: Use PCIDevice::exit instead of DeviceState::unrealize

2021-03-02 Thread Peng Liang
PCI_DEVICE has overwritten DeviceState::unrealize (pci_qdev_unrealize). However, LSI53C895A, which is a subclass of PCI_DEVICE, overwrites it again and doesn't save the parent's implementation so the PCI_DEVICE's implementation of DeviceState::unrealize will never be called when unrealize a LSI53C8