]> xenbits.xensource.com Git - qemu-upstream-4.3-testing.git/commit
xen/pt: consolidate PM capability emu_mask
authorJan Beulich <jbeulich@suse.com>
Tue, 2 Jun 2015 16:08:07 +0000 (16:08 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 2 Jun 2015 16:08:07 +0000 (16:08 +0000)
commit631af7b283b56a330758395a57bd8a11126537ef
tree4bc204b7a8d521130b70e329dbd3fac2d25282f0
parent92794390f4952f7f3dcc22b9ad792af491c144c3
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/xen_pt_config_init.c