]> xenbits.xensource.com Git - qemu-xen-traditional.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:13:11 +0000 (16:13 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 9 Jun 2015 15:13:11 +0000 (16:13 +0100)
commit5104c5170bddbf00686462245a9e7dbb0dff213a
tree45f2e06174a34b86abb93b75d942864d48b48ce5
parent4d3e28955f88c52b27bc1d9819795868930bdff4
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