]> xenbits.xensource.com Git - qemu-xen-4.5-testing.git/commit
There's no point in xen_pt_pmcsr_reg_{read,write}() each ORing
authorJan Beulich <jbeulich@suse.com>
Tue, 9 Jun 2015 15:32:24 +0000 (16:32 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 9 Jun 2015 15:32:24 +0000 (16:32 +0100)
commit2e19270f544b57c76b063746fbf2469fafd5f012
treea35d4566718e6a86f5ac0d934ec68cd24cf54daa
parent751d20d7b12a31a435a3354e9d1cee9f2f0d8404
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