]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
passthrough: Fix pci bar remapping when guest probes width with all-1 BAR
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 21 Jul 2009 14:33:30 +0000 (15:33 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 21 Jul 2009 14:33:30 +0000 (15:33 +0100)
commitcdfe6bd8f1643706272b46c3a8c5e48179f504c8
treeb9d4e3c665b0ca53fd1beb37e82272b3c81d6c4b
parent4f947e17894a2e58a02fa6c1c712e7691a179212
passthrough: Fix pci bar remapping when guest probes width with all-1 BAR

When guest code tries to get the block size of mmio, it will write all "1"s
into pci bar register and then qemu will return all "0"s to the don't care
bits in the emulated bar register to indicate the block size to guest code.
In this case, we should not create p2m mapping in  pt_bar_reg_write() and
pt_exp_rom_bar_reg_write(). Attached patch fixes this issue, additional
comment can be found in the patch.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
hw/pass-through.c