]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hyperv/pcib: use the device serial number as PCI domain
authorDexuan Cui <dexuan@FreeBSD.org>
Thu, 8 Jun 2017 12:11:30 +0000 (12:11 +0000)
committerDexuan Cui <dexuan@FreeBSD.org>
Thu, 8 Jun 2017 12:11:30 +0000 (12:11 +0000)
commit6944b2e68b9c4e9e773261db6d5b12310a370355
treebc32a0bdd8e64578173882b9c76e768d0650e172
parent114aeee03b46e0eaabd878baaa000f0ce70b850d
hyperv/pcib: use the device serial number as PCI domain

Currently the PCI domain is initialized with the instance GUID in
vmbus_pcib_attach(). It turns out the GUID can change across VM reboot,
while some users want a persistent value for PCI domain. The solution is
that we can change to use the device serial number, which starts with 1
and is unique within a VM.

Obtained from: Haiyang Zhang
MFC after: 1 day
Sponsored by: Microsoft
sys/dev/hyperv/pcib/vmbus_pcib.c