PCI: hv: Add support for protocol 1.3 and support PCI_BUS_RELATIONS2
authorLong Li <longli@microsoft.com>
Wed, 26 Feb 2020 05:06:08 +0000 (21:06 -0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 6 Mar 2020 10:18:10 +0000 (10:18 +0000)
commit999dd956d8389f3a512808f36fac97e1c8e87c7f
tree0c7b69b12e494499af24889b0c51148f7e075c5d
parentf9ad0f361cf3b58fd26d409c6150126547259772
PCI: hv: Add support for protocol 1.3 and support PCI_BUS_RELATIONS2

Starting with Hyper-V PCI protocol version 1.3, the host VSP can send
PCI_BUS_RELATIONS2 and pass the vNUMA node information for devices on the
bus. The vNUMA node tells which guest NUMA node this device is on based
on guest VM configuration topology and physical device information.

Add code to negotiate v1.3 and process PCI_BUS_RELATIONS2.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
drivers/pci/controller/pci-hyperv.c