]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci-testdev.c: Add membar-backed option for backing membar
authorStephen Bates <sbates@raithlin.com>
Tue, 15 Apr 2025 16:29:56 +0000 (10:29 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 14 May 2025 09:39:14 +0000 (05:39 -0400)
commit8717987fb528ff704e275a1a99f59a20e0b272f5
tree5d3e4431ad84ac9cc2a1438ed9dc4f19472135fa
parentd0c280d3fac644c26a86d2fb70c5920b3d5bef85
pci-testdev.c: Add membar-backed option for backing membar

The pci-testdev device allows for an optional BAR. We have
historically used this without backing to test that systems and OSes
can accomodate large PCI BARs. However to help test p2pdma operations
it is helpful to add an option to back this BAR with host memory.

We add a membar-backed boolean parameter and when set to true or on we
do a host RAM backing. The default is false which ensures backward
compatability.

Signed-off-by: Stephen Bates <sbates@raithlin.com>
Message-Id: <Z_6JhDtn5PlaDgB_@MKMSTEBATES01.amd.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/misc/pci-testdev.c