]> xenbits.xensource.com Git - qemu-xen-4.4-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:12:16 +0000 (14:12 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 10 Jun 2015 13:12:16 +0000 (14:12 +0100)
commitdd37ad776c7ea026b7b9f34b240f5714aee6819d
treec9c5fe68c08cdc443cbbd6df37eebb97729743c6
parent903ee0042f24cde0c2079aafa1b31e0b4dd2ad34
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