]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commit
xen_pt: Fix passthrough of device with ROM.
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 10 Jan 2014 15:56:33 +0000 (15:56 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 31 Jan 2014 12:38:23 +0000 (12:38 +0000)
commit90d35066387e1d9c9deeda042c5a907cd57c11cf
tree127f02a9477e5576267045462fa78f92ea7f270d
parent11f6a1cedb8d759fd64d7dd5db95b747591f2ca7
xen_pt: Fix passthrough of device with ROM.

QEMU does not need and should not allocate memory for the ROM of a
passthrough PCI device. So this patch initialize the particular region
like any other PCI BAR of a passthrough device.

When a guest will access the ROM, Xen will take care of the IO, QEMU
will not be involved in it.

Xen set a limit of memory available for each guest, allocating memory
for a ROM can hit this limit.

upstream-commit-id: 794798e36eda77802ce7cc7d7d6b1c65751e8a76

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reported-and-Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
hw/xen/xen_pt.c