]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
xen/pass-through: ROM BAR handling adjustments
authorJan Beulich <JBeulich@suse.com>
Mon, 8 Jun 2015 13:11:51 +0000 (14:11 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 24 Jun 2015 13:32:10 +0000 (13:32 +0000)
commit3d57892188f8c003b754688740015d3e02872e21
tree9a412438dbc3817fb2525a275fc6461afd6ab29c
parentec82a546d2e22729aa3dfa3f1707490dba2ef3a7
xen/pass-through: ROM BAR handling adjustments

Expecting the ROM BAR to be written with an all ones value when sizing
the region is wrong - the low bit has another meaning (enable/disable)
and bits 1..10 are reserved. The PCI spec also mandates writing all
ones to just the address portion of the register.

Use suitable constants also for initializing the ROM BAR register field
description.

upstream-commit-id: 69976894c1d91c4b0c985fa05936cb6b8d01382b

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
hw/xen/xen_pt.c
hw/xen/xen_pt_config_init.c