[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/7] tests: Add virtio device initialization
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 2/7] tests: Add virtio device initialization |
Date: |
Mon, 28 Jul 2014 10:21:51 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Fri, Jul 25, 2014 at 07:01:47PM +0200, Marc Marí wrote:
> > > @@ -73,3 +97,11 @@ QVirtioPCIDevice
> > > *qvirtio_pci_device_find(QPCIBus *bus, uint16_t device_type)
> > > return dev;
> > > }
> > > +
> > > +void qvirtio_pci_enable_device(QVirtioPCIDevice *d)
> > > +{
> > > + qpci_device_enable(d->pdev);
> > > + d->addr = qpci_iomap(d->pdev, 0);
> > > + g_assert(d->addr != NULL);
> > > +}
> >
> > Where is qpci_iounmap() called to clean up?
>
> Missed. Also, it is unimplemented.
It would be much harder to add in the appropriate guest_free() calls
later so users should still call it. Just like we should call
guest_free() even if it is currently unimplemented.
Stefan
pgp_VXr41kofD.pgp
Description: PGP signature
- [Qemu-devel] [PATCH 0/7] Virtio PCI libqos driver, Marc Marí, 2014/07/24
- [Qemu-devel] [PATCH 3/7] libqtest: add QTEST_LOG for debugging qtest testcases, Marc Marí, 2014/07/24
- [Qemu-devel] [PATCH 5/7] libqos: Change free function called in malloc, Marc Marí, 2014/07/24
- [Qemu-devel] [PATCH 1/7] tests: Functions bus_foreach and device_find from libqos virtio API, Marc Marí, 2014/07/24
- [Qemu-devel] [PATCH 4/7] libqos: Correct mask to align size to PAGE_SIZE in malloc-pc, Marc Marí, 2014/07/24