xen/pt: consolidate PM capability emu_mask
commitd61bb2482dc0c7426f451f23ba7e2748ae2cc06d
authorJan Beulich <jbeulich@suse.com>
Tue, 2 Jun 2015 15:07:01 +0000 (2 15:07 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 2 Jun 2015 15:07:01 +0000 (2 15:07 +0000)
tree6d1c5b871804c0dd3d92d764ef4acb0cea0dfe20
parentd1d35cf4ffb6a60a356193397919e83306d0bb74
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/xen_pt_config_init.c