Re: [Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-04-09 Thread Kevin Wolf
Am 29.03.2013 um 03:26 hat Anthony Liguori geschrieben: Kevin Wolf kw...@redhat.com writes: Am 13.03.2013 um 15:03 hat Anthony Liguori geschrieben: You are correct, it should look something like: if (addr PCI_BASE_ADDRESS_SPACE_IO) { size = (1ULL ctzl(addr

Re: [Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-03-28 Thread Kevin Wolf
Am 13.03.2013 um 15:03 hat Anthony Liguori geschrieben: You are correct, it should look something like: if (addr PCI_BASE_ADDRESS_SPACE_IO) { size = (1ULL ctzl(addr PCI_BASE_ADDRESS_IO_MASK)); } else { size = (1ULL ctzl(addr PCI_BASE_ADDRESS_MEM_MASK)); } This doesn't deal

Re: [Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-03-28 Thread Anthony Liguori
Kevin Wolf kw...@redhat.com writes: Am 13.03.2013 um 15:03 hat Anthony Liguori geschrieben: You are correct, it should look something like: if (addr PCI_BASE_ADDRESS_SPACE_IO) { size = (1ULL ctzl(addr PCI_BASE_ADDRESS_IO_MASK)); } else { size = (1ULL ctzl(addr

Re: [Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-03-13 Thread Kevin Wolf
Am 05.03.2013 um 14:53 hat Anthony Liguori geschrieben: This includes basic PCI support. Signed-off-by: Anthony Liguori aligu...@us.ibm.com +static void *qpci_pc_iomap(QPCIBus *bus, QPCIDevice *dev, int barno) +{ +QPCIBusPC *s = container_of(bus, QPCIBusPC, bus); +static const int

Re: [Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-03-13 Thread Andreas Färber
Am 05.03.2013 14:53, schrieb Anthony Liguori: This includes basic PCI support. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- configure | 2 +- tests/Makefile| 2 +- tests/libqos/pci-pc.c | 219 ++

Re: [Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-03-13 Thread Anthony Liguori
Kevin Wolf kw...@redhat.com writes: Am 05.03.2013 um 14:53 hat Anthony Liguori geschrieben: This includes basic PCI support. Signed-off-by: Anthony Liguori aligu...@us.ibm.com +static void *qpci_pc_iomap(QPCIBus *bus, QPCIDevice *dev, int barno) +{ +QPCIBusPC *s = container_of(bus,

[Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-03-05 Thread Anthony Liguori
This includes basic PCI support. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- configure | 2 +- tests/Makefile| 2 +- tests/libqos/pci-pc.c | 219 ++ tests/libqos/pci-pc.h | 8 ++ tests/libqos/pci.c| 108