]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commit
xen/pt: consolidate PM capability emu_mask
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Jun 2015 13:17:54 +0000 (14:17 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 10 Jun 2015 13:17:54 +0000 (14:17 +0100)
commit8c245fa40cd01527dac57292e5497e0fc1515e25
treeac0aa27923999b0d21ad00238eca6386ad4710aa
parent7307e1523ae7deb9ea206a75a23ecc8e60524575
xen/pt: consolidate PM capability emu_mask

There's no point in xen_pt_pmcsr_reg_{read,write}() each ORing
PCI_PM_CTRL_STATE_MASK and PCI_PM_CTRL_NO_SOFT_RESET into a local
emu_mask variable - we can have the same effect by setting the field
descriptor's emu_mask member suitably right away. Note that
xen_pt_pmcsr_reg_write() is being retained in order to allow later
patches to be less intrusive.

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>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
hw/pass-through.c