]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commit
xen/pt: split out calculation of throughable mask in PCI config space handling
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Jun 2015 13:17:55 +0000 (14:17 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 10 Jun 2015 13:17:55 +0000 (14:17 +0100)
commitb9f70510a5731a8ed7527fcbf0c92df0054e5386
treea3175b6ea0372f10d4cfa14291b53e98c7abf635
parent5c6e4c043793bee997cd396de544bc9bcf5e74d2
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/pass-through.c