xen/pass-through: ROM BAR handling adjustments
commit69976894c1d91c4b0c985fa05936cb6b8d01382b
authorJan Beulich <JBeulich@suse.com>
Mon, 8 Jun 2015 13:11:51 +0000 (8 14:11 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 23 Jun 2015 16:18:29 +0000 (23 16:18 +0000)
treee53283fc6eac9b0746a819e3867228681d90a535
parent950fe0aa3f55ad6bb135fc9cde9ebf4df05f62fc
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.

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