dev, virtio: properly set PCI address space to use IOREG

VirtIO spec < 1.0 demands IOREG to be used on PCI and not memory mapped.
Set the correct bit on the PCI address accordingly.

Committed by Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
Bjoern A. Zeeb 2016-05-19 15:19:34 -05:00
parent 7dad4377ec
commit ce610dcab1

View file

@ -65,7 +65,7 @@ class PciVirtIO(PciDevice):
ClassCode = 0xff # Misc device ClassCode = 0xff # Misc device
BAR0 = 0x00000000 # Anywhere in 32-bit space BAR0 = 0x00000001 # Anywhere in 32-bit space; IOREG
BAR0Size = '0B' # Overridden by the device model BAR0Size = '0B' # Overridden by the device model
InterruptPin = 0x01 # Use #INTA InterruptPin = 0x01 # Use #INTA