[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Device ID for PCI platform


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Tue, 9 Mar 2021 14:28:38 +0000
  • Delivery-date: Tue, 09 Mar 2021 14:28:43 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 08/03/2021 16:47, Connor Davis wrote:
Hi all,

AIS is working on getting modified winpv drivers signed. To this point we've been using device ID 0001 for the platform device, but I think it is best to use a different one so no unwanted collisions occur on windows update. What is the process for new device ID assignment?

Hi Connor,

You need to send a patch to docs/man/xen-pci-device-reservations.7.pod in xen.git, so git send-email to xen-devel. In that file you'll see there are PCI device id ranges reserved for various purposes. I suspect you'll want to grab c300 - c3ff for AIS.

BTW, in case you don't know, the correct thing to do to expose a device with your reserved id to the guest is to add a 'xen-pvdevice' to your guest:

root@debian:~# /usr/local/lib/xen/bin/qemu-system-i386 -device xen-pvdevice,help
xen-pvdevice options:
addr=<int32> - Slot and optional function number, example: 06.0 or 06 (default: -1)
  device-id=<uint16>     -  (default: 65535)

  Paul



BTW, the code was recently open sourced for our Windows dom0 research. The drivers are located here[0] in case you want to peek at it.

Thanks,
Connor

[0] https://github.com/Bareflank/MicroV/tree/mono/drivers/winpv <https://github.com/Bareflank/MicroV/tree/mono/drivers/winpv>






 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.