OSDN Git Service

pci-testdev: add optional memory bar
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 28 Sep 2018 06:44:19 +0000 (08:44 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 5 Nov 2018 18:24:02 +0000 (13:24 -0500)
commit417463341e3e35c9be80f54b0d6ae8cfdb4b0d84
treeafeac5ed5ba1bdb1b2a2cbf313dbae04e8ff19cb
parent7115dcf4f19e1d590aec7afe315095af9491dad6
pci-testdev: add optional memory bar

Add memory bar to pci-testdev.  Size is configurable using the membar
property.  Setting the size to zero (default) turns it off.  Can be used
to check whether guests handle large pci bars correctly.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/specs/pci-testdev.txt
hw/misc/pci-testdev.c