~qemu/qemu/git

Viewing all changes in revision 7784.

  • Committer: Anthony Liguori
  • Author(s): Mark McLoughlin
  • Date: 2009-07-09 21:58:07 UTC
  • Revision ID: git-v1:ae50b2747f77944faa79eb914272b54eb30b63b3
Don't leak VLANClientState on PCI hot remove

destroy_nic() requires that NICInfo::private by a PCIDevice pointer,
but then goes on to require that the same pointer matches
VLANClientState::opaque.

That is no longer the case for virtio-net since qdev and wasn't
previously the case for rtl8139, ne2k_pci or eepro100.

Make the situation a lot more clear by maintaining a VLANClientState
pointer in NICInfo.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: