Re: [Xen-devel] [PATCH v2] pci: apply workaround for Intel errata HSE43 and BDF2

2018-12-04 Thread Roger Pau Monné
On Tue, Dec 04, 2018 at 04:30:51AM -0700, Jan Beulich wrote: > >>> On 04.12.18 at 11:42, wrote: > > @@ -298,6 +299,45 @@ static void check_pdev(const struct pci_dev *pdev) > > #undef PCI_STATUS_CHECK > > } > > > > +static void apply_quirks(struct pci_dev *pdev) > > +{ > > +uint16_t vendor

Re: [Xen-devel] [PATCH v2] pci: apply workaround for Intel errata HSE43 and BDF2

2018-12-04 Thread Jan Beulich
>>> On 04.12.18 at 11:42, wrote: > @@ -298,6 +299,45 @@ static void check_pdev(const struct pci_dev *pdev) > #undef PCI_STATUS_CHECK > } > > +static void apply_quirks(struct pci_dev *pdev) > +{ > +uint16_t vendor = pci_conf_read16(pdev->seg, pdev->bus, > +

[Xen-devel] [PATCH v2] pci: apply workaround for Intel errata HSE43 and BDF2

2018-12-04 Thread Roger Pau Monne
This errata affect the values read from the BAR registers, and could render vPCI (and by extension PVH Dom0 unusable). HSE43 is a Haswell erratum where a non-BAR register is implemented at the position where the first BAR of the device should be found in a Power Control Unit device. Note that ther