Re: [Qemu-devel] [PATCH v5 2/7] tests: Add virtio device initialization

2014-08-18 Thread Marc Marí
>El Mon, 18 Aug 2014 14:46:07 +0200 >Marc Marí escribió: > +void qvirtio_pci_device_enable(QVirtioPCIDevice *d) > +{ > +qpci_device_enable(d->pdev); > +d->addr = qpci_iomap(d->pdev, 0); > +g_assert(d->addr != NULL); > +} > + qpci_iomap changed its prototype in one of the lastest pull

[Qemu-devel] [PATCH v5 2/7] tests: Add virtio device initialization

2014-08-18 Thread Marc Marí
Add functions to read and write virtio header fields. Add status bit setting in virtio-blk-device. Signed-off-by: Marc Marí --- tests/Makefile|2 +- tests/libqos/virtio-pci.c | 67 + tests/libqos/virtio-pci.h | 18 test