ad489e9346
qtest: fix qpci_config_writel
...
Found by Paolo.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-06-02 16:28:59 +02:00
a879125b47
tests/libqos/pci-pc: Avoid shifting left into sign bit
...
Add U suffix when doing "1 << 31" to avoid undefined behaviour.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2014-03-27 19:22:49 +04:00
26491a388c
libqos: Generalize I/O-mapped fw_cfg
...
Provide a constructor that takes the base address in addition to the
PC-specific one.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-id: 1372254743-15808-12-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-18 13:27:47 -05:00
7a10016509
libqos: Add support for memory-mapped fw_cfg
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-id: 1372254743-15808-5-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-18 13:27:46 -05:00
9f0332b8cf
libqos/pci: Enable bus mastering
...
Signed-off-by: Kevin Wolf <kwolf@redhat.com >
2013-05-08 15:28:49 +02:00
cc9936a32f
libqos: Relocate I2C files
...
Commit c4efe1cada
(qtest: add libqos
including PCI support) created a libqos/ subdirectory but left the
existing I2C libqos files libi2c*.[hc] in tests/. Clean this up.
Signed-off-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Andreas Färber <afaerber@suse.de >
Message-id: 1367502986-15104-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-05-03 12:03:14 -05:00
1a63e059de
libqos: Convert fw_cfg values to host endianness
...
The fw_cfg ABI is Little Endian, so byte-swap the generically read
byte array to host endianness.
This unbreaks the fw_cfg tests on ppc.
Signed-off-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Andreas Färber <afaerber@suse.de >
Message-id: 1367167547-19931-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-29 08:28:15 -05:00
8a0743cf74
libqos: add malloc support
...
This is a very simple allocator for the PC platform. It should
be possible to add backends for other platforms.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
Message-id: 1366123521-4330-5-git-send-email-aliguori@us.ibm.com
2013-04-17 10:26:05 -05:00
234c69c5f9
libqos: add fw_cfg support
...
fw_cfg is needed to get the top of memory which is necessary for
doing PCI allocation and allocating RAM for DMA.
Add a PC version of fw_cfg and enough abstraction to support other
platforms.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
Message-id: 1366123521-4330-4-git-send-email-aliguori@us.ibm.com
2013-04-17 10:26:05 -05:00
c4efe1cada
qtest: add libqos including PCI support
...
This includes basic PCI support for the PC platform. Enough
abstraction should be present to support non-PC platforms too.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
Message-id: 1366123521-4330-3-git-send-email-aliguori@us.ibm.com
2013-04-17 10:26:05 -05:00