]> xenbits.xensource.com Git - qemu-upstream-unstable.git/commit
xen/pt: split out calculation of throughable mask in PCI config space handling
authorJan Beulich <jbeulich@suse.com>
Tue, 2 Jun 2015 15:43:08 +0000 (15:43 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 9 Jun 2015 10:28:48 +0000 (10:28 +0000)
commitcb1e0cea8e5fdd1f8677c1733eec6175600ea69e
treea5c4583f7cfa94a83d3e7823cc733557ae4f0fd4
parent60abfa7e7750945c4d222e8089fe6d06479d3367
xen/pt: split out calculation of throughable mask in PCI config space handling

This is just to avoid having to adjust that calculation later in
multiple places.

Note that including ->ro_mask in get_throughable_mask()'s calculation
is only an apparent (i.e. benign) behavioral change: For r/o fields it
doesn't matter > whether they get passed through - either the same flag
is also set in emu_mask (then there's no change at all) or the field is
r/o in hardware (and hence a write won't change it anyway).

This is a preparatory patch for XSA-131.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
hw/xen/xen_pt_config_init.c