Hi Philippe,
On 16/01/2018 2:54, Philippe Mathieu-Daudé wrote:
CC'ing PCI maintainers.
Hi Mark,
On 01/15/2018 05:58 PM, Mark Cave-Ayland wrote:
This inbuilt device contains a single 4-byte register, of which bit
24 is used
to power down the machine on a real Ultra 5.
The power device exists at offset 0x724000 on a real machine, but due
to the
current configuration of the BARs in QEMU it must be located lower in
PCI IO
space.
Is is some issue in pci_bar_address()?
The QEMU IO layout:
/*
* QEMU I/O address space usage:
* 0000 - 0fff legacy isa, pci config, pci root bus, ...
* 1000 - 9fff free
* a000 - afff hotplug (cpu, pci via acpi, i440fx/piix only)
* b000 - bfff power management (PORT_ACPI_PM_BASE)
* [ qemu 1.4+ implements pci config registers
* properly so guests can place the registers
* where they want, on older versions its fixed ]
* c000 - ffff free, traditionally used for pci io
*/
As you can see we don't have IO address space over ffff.