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 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_

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

2013-03-28 Thread Anthony Liguori
Kevin Wolf 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 & PCI_BASE_ADD

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)); > } > > Thi

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

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

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 > --- > configure | 2 +- > tests/Makefile| 2 +- > tests/libqos/pci-pc.c | 219 > ++ > tests/libqos/pci-pc

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 > +static void *qpci_pc_iomap(QPCIBus *bus, QPCIDevice *dev, int barno) > +{ > +QPCIBusPC *s = container_of(bus, QPCIBusPC, bus); > +static const int bar_reg_map[

[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 --- configure | 2 +- tests/Makefile| 2 +- tests/libqos/pci-pc.c | 219 ++ tests/libqos/pci-pc.h | 8 ++ tests/libqos/pci.c| 108