hw/pci, hw/arm/virt: fixed PCI BAR placement
PATCH v3 2/5 hw/pci: add validation for fixed BAR configuration
In reply to Tushar DaveValidate the fixed BAR configuration specified through the fixed-bar-N properties on PCI endpoint devices.
Configuring any fixed-bar-N property on an endpoint device requires every memory BAR on that device to have a fixed address. Validate that each assigned address:
- is aligned to its BAR size;
- is within the appropriate PCIe MMIO aperture; and
- does not overlap any other fixed BAR.
A 32-bit BAR must lie in the 32-bit aperture. A prefetchable 64-bit BAR must lie in the 64-bit aperture so that all prefetchable BARs can be accommodated in a single 64-bit prefetchable bridge window. A non-prefetchable 64-bit BAR may lie in either aperture when attached directly to the host bridge, but must lie below 4GiB when placed behind a PCI bridge.
Under a PCIe topology with a root port, fixed BAR placement is all-or-nothing within that root port's subtree. If any one endpoint device below the root port has a fixed BAR, every other endpoint device below that same root port with a memory BAR must have all of its memory BARs fixed too.
Endpoint devices with no root port in their ancestry, such as those attached directly to the host bridge, are not required to match their sibling devices. One such device may use fixed-bar-N for all of its memory BARs while another sibling device on the same host bridge uses none at all. Per-device completeness still applies regardless of ancestry. Once any fixed-bar-N property is set on a device, every memory BAR on that device must be fixed.
Report a validation failure through the Error ** argument and leave it to the caller to decide how to handle it.
--- hw/pci/meson.build | 1 + hw/pci/pci-fixed-bar-validate.c | 376 ++++++++++++++++++++++++++++++++ hw/pci/pci-fixed-bar-validate.h | 22 ++ 3 files changed, 399 insertions(+) create mode 100644 hw/pci/pci-fixed-bar-validate.c create mode 100644 hw/pci/pci-fixed-bar-validate.h
hw/pci/meson.build +1 -0
@@ -19,6 +19,7 @@ endif pci_ss.add(files('pcie.c', 'pcie_aer.c')) pci_ss.add(files('pcie_doe.c')) system_ss.add(when: 'CONFIG_PCI_EXPRESS', if_true: files('pcie_port.c', 'pcie_host.c')) +system_ss.add(when: 'CONFIG_PCI_EXPRESS', if_true: files('pci-fixed-bar-validate.c')) system_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss) stub_ss.add(files('pci-stub.c'))
hw/pci/pci-fixed-bar-validate.c new file +376 -0
376 lines not on this page · raw message
hw/pci/pci-fixed-bar-validate.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved +* +* Written by Tushar Dave +* +* SPDX-License-Identifier: GPL-2.0-or-later +*/ +#ifndef HW_PCI_FIXED_BAR_VALIDATE_H +#define HW_PCI_FIXED_BAR_VALIDATE_H + +typedef struct { +bool any_fixed; +uint64_t mmio32_base; +uint64_t mmio32_limit; +uint64_t mmio64_base; +uint64_t mmio64_limit; +GArray *claims; +}FixedBarsInfo ; + +bool fixed_bars_validate (FixedBarsInfo *info,Error **errp); + +#endif /* HW_PCI_FIXED_BAR_VALIDATE_H */
Signature · 1 line
2.34.1
PATCH v3 3/5 hw/pci: describe fixed BARs with an Enhanced Allocation capability
In reply to Tushar DaveGive a device that has fixed-bar-N properties an Enhanced Allocation (EA) capability with one entry for each fixed memory BAR. The entry holds the guest address and the size of the BAR. Firmware and the guest read the address from the entry instead of assigning one, the BAR register of such a BAR is hardwired to zero, and the BAR decodes at its EA base, so the guest cannot move it.
vfio-pci adds the capability itself, after it has built the capability chain of the host device, since the capability has to fit into it. vfio gives each host capability all of the space up to the next one, so the last capability owns the rest of the standard configuration space. If it is a vendor-specific capability, its length is known and the unused tail is given back for the EA capability.
Add fixed_bars_check(), which validates the fixed-bar-N configuration of all devices against the PCIe MMIO apertures of a machine, for the machine to call once its devices are realized.
--- hw/pci/pci-fixed-bar-validate.c | 29 ++++++ hw/pci/pci.c | 150 +++++++++++++++++++++++++++++++- hw/vfio/pci.c | 58 +++++++++++- include/hw/pci/pci-fixed-bar.h | 28 ++++++ include/hw/pci/pci.h | 2 + 5 files changed, 263 insertions(+), 4 deletions(-) create mode 100644 include/hw/pci/pci-fixed-bar.h
hw/pci/pci-fixed-bar-validate.c +29 -0
@@ -17,6 +17,7 @@#include "qemu/units.h" #include "pci-internal.h" #include "pci-fixed-bar-validate.h" +#include "hw/pci/pci-fixed-bar.h" /* * Claimed BAR ranges — detect inter-device and inter-hierarchy overlaps
@@ -374,3 +375,31 @@ bool fixed_bars_validate(FixedBarsInfo *info, Error **errp)scan_all_host_bridges (info, errp);return !*errp; } + +bool fixed_bars_check (uint64_t mmio32_base,uint64_t mmio32_size, +uint64_t mmio64_base,uint64_t mmio64_size, +Error **errp) +{ +FixedBarsInfo info; + +if (!mmio32_size) { +error_setg (errp,"fixed-bar: zero-size 32-bit PCIe MMIO aperture" ); +return false; + } +if (mmio32_size -1 >UINT64_MAX - mmio32_base || + (mmio64_size && mmio64_size -1 >UINT64_MAX - mmio64_base)) { +error_setg (errp,"fixed-bar: PCIe MMIO aperture base+size overflows " +"(32-bit base=0x%" PRIx64" size=0x%" PRIx64", " +"64-bit base=0x%" PRIx64" size=0x%" PRIx64")" , + mmio32_base, mmio32_size, mmio64_base, mmio64_size); +return false; + } + + info.mmio32_base = mmio32_base; + info.mmio32_limit = mmio32_base + mmio32_size -1 ; +/* An absent 64-bit aperture is an empty window, no BAR fits in it. */ + info.mmio64_base = mmio64_size ? mmio64_base :1 ; + info.mmio64_limit = mmio64_size ? mmio64_base + mmio64_size -1 :0 ; + +return fixed_bars_validate (&info, errp) && info.any_fixed; +}
hw/pci/pci.c +147 -3
189 lines not on this page · raw message
hw/vfio/pci.c +57 -1
76 lines not on this page · raw message
include/hw/pci/pci-fixed-bar.h new file +28 -0
@@ -0,0 +1,28 @@ +/* +* Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved +* Check the fixed BAR configuration of a machine. +* +* Written by Tushar Dave +* +* SPDX-License-Identifier: GPL-2.0-or-later +*/ + +#ifndef HW_PCI_FIXED_BAR_H +#define HW_PCI_FIXED_BAR_H + +#include "qapi/error.h" + +/** +* fixed_bars_check: validate the fixed-bar-N configuration of all devices +* @mmio32_base, @mmio32_size: the 32-bit PCIe MMIO aperture +* @mmio64_base, @mmio64_size: the 64-bit PCIe MMIO aperture, size 0 if absent +* @errp: set on a validation failure +* +* Returns true if at least one device has a fixed BAR and the configuration +* is valid, false if no device has one or on failure (@errp is set). +*/ +bool fixed_bars_check (uint64_t mmio32_base,uint64_t mmio32_size, +uint64_t mmio64_base,uint64_t mmio64_size, +Error **errp); + +#endif /* HW_PCI_FIXED_BAR_H */
include/hw/pci/pci.h +2 -0
@@ -259,6 +259,8 @@ void pci_register_vga(PCIDevice *pci_dev, MemoryRegion *mem,void pci_unregister_vga (PCIDevice *pci_dev);pcibus_t pci_get_bar_addr (PCIDevice *pci_dev,int region_num); +bool pci_dev_has_fixed_bar (PCIDevice *pci_dev); +int pci_add_fixed_bar_ea_cap (PCIDevice *d,uint8_t *cap_size,Error **errp);int pci_add_capability (PCIDevice *pdev,uint8_t cap_id,uint8_t offset,uint8_t size,Error **errp);
Signature · 1 line
2.34.1
PATCH v3 4/5 hw/arm/virt: validate fixed BARs and preserve the PCI configuration
In reply to Tushar DaveValidate the fixed BAR configuration with fixed_bars_check() and set pci_fixed_bar_supported to allow the fixed-bar-N properties on the virt machine.
Fixed BAR placement requires the guest to preserve the PCI resource configuration established by firmware, preventing the fixed BAR addresses from being reassigned during guest boot. ACPI provides this through the PCI boot configuration preservation mechanism (_DSM function 5).
Reject fixed BAR configuration if firmware is not loaded or ACPI is disabled, since PCI boot configuration preservation cannot otherwise be guaranteed.
--- hw/arm/virt.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
hw/arm/virt.c +18 -0
@@ -94,6 +94,7 @@#include "hw/cxl/cxl_host.h" #include "qemu/guest-random.h" #include "hw/watchdog/sbsa_gwdt.h" +#include "hw/pci/pci-fixed-bar.h" static GlobalProperty arm_virt_compat_defaults[] = { {TYPE_VIRTIO_IOMMU_PCI ,"aw-bits" ,"48" },
@@ -2451,6 +2452,22 @@ void virt_machine_done(Notifier *notifier, void *data) vms->memmap[VIRT_PLATFORM_BUS ].size, vms->irqmap[VIRT_PLATFORM_BUS]); } +if (fixed_bars_check (vms->memmap[VIRT_PCIE_MMIO ].base, + vms->memmap[VIRT_PCIE_MMIO ].size, + vms->memmap[VIRT_HIGH_PCIE_MMIO ].base, + vms->highmem_mmio ? + vms->memmap[VIRT_HIGH_PCIE_MMIO ].size :0 , + &error_fatal)) { +if (!(vms->bootinfo.firmware_loaded &&virt_is_acpi_enabled (vms))) { +error_report ("fixed-bar: fixed BAR placement requires firmware " +"and ACPI to preserve the PCI boot configuration, " +"otherwise these BAR assignments could be " +"reassigned later with no protection" ); +exit (1 ); + } + vms->pci_preserve_config = true; + } +if (arm_load_dtb (info->dtb_start, info, info->dtb_limit, as, ms, cpu) <0 ) {exit (1 ); }
@@ -4203,6 +4220,7 @@ static void virt_machine_class_init(ObjectClass *oc, const void *data) hc->unplug_request = virt_machine_device_unplug_request_cb; hc->unplug = virt_machine_device_unplug_cb; mc->nvdimm_supported = true; + mc->pci_fixed_bar_supported = true; mc->smp_props.clusters_supported = true;/* Supported caches */
Signature · 1 line
2.34.1
PATCH v3 1/5 hw/pci: introduce PCI fixed BAR properties
In reply to Tushar DaveAdd fixed-bar-N properties to PCIDevice to allow the guest address of an individual PCI BAR to be explicitly specified. The properties are available for PCI BARs 0 through 5 and accept QEMU size values, for example fixed-bar-0=0x40000000 or fixed-bar-0=64G.
e.g.
-device some-device,fixed-bar-0=<addr>[,fixed-bar-1=<addr>]...
During realize, validate that each specified BAR exists and is a memory BAR, and reject fixed BAR configuration for hot-plugged devices.
The fixed BAR properties are only supported on machine types that implement fixed BAR placement. Add the pci_fixed_bar_supported MachineClass flag to advertise this support, and reject fixed BAR properties on machine types that do not set it.
--- hw/pci/pci.c | 71 +++++++++++++++++++++++++++++++++++++ include/hw/core/boards.h | 3 ++ include/hw/pci/pci_device.h | 7 ++++ 3 files changed, 81 insertions(+)
hw/pci/pci.c +71 -0
@@ -91,6 +91,18 @@ static const Property pci_props[] = {DEFINE_PROP_STRING ("romfile" , PCIDevice, romfile),DEFINE_PROP_UINT32 ("romsize" , PCIDevice, romsize,UINT32_MAX ),DEFINE_PROP_INT32 ("rombar" , PCIDevice, rom_bar,-1 ), +DEFINE_PROP_SIZE ("fixed-bar-0" , PCIDevice, fixed_bar_addr[0 ], +PCI_BAR_UNMAPPED ), +DEFINE_PROP_SIZE ("fixed-bar-1" , PCIDevice, fixed_bar_addr[1 ], +PCI_BAR_UNMAPPED ), +DEFINE_PROP_SIZE ("fixed-bar-2" , PCIDevice, fixed_bar_addr[2 ], +PCI_BAR_UNMAPPED ), +DEFINE_PROP_SIZE ("fixed-bar-3" , PCIDevice, fixed_bar_addr[3 ], +PCI_BAR_UNMAPPED ), +DEFINE_PROP_SIZE ("fixed-bar-4" , PCIDevice, fixed_bar_addr[4 ], +PCI_BAR_UNMAPPED ), +DEFINE_PROP_SIZE ("fixed-bar-5" , PCIDevice, fixed_bar_addr[5 ], +PCI_BAR_UNMAPPED ),DEFINE_PROP_BIT ("multifunction" , PCIDevice, cap_present,QEMU_PCI_CAP_MULTIFUNCTION_BITNR , false), DEFINE_PROP_BIT("x-pcie-lnksta-dllla", PCIDevice, cap_present,
@@ -230,6 +242,58 @@ static void pci_bus_unrealize(BusState *qbus)vmstate_unregister (NULL , &vmstate_pcibus, bus); } +static bool pci_dev_has_fixed_bar (PCIDevice *pci_dev) +{ +int i; + +for (i =0 ; i <PCI_NUM_REGIONS -1 ; i++) { +if (pci_dev->fixed_bar_addr[i] !=PCI_BAR_UNMAPPED ) { +return true; + } + } +return false; +} + +static void pci_check_fixed_bars (PCIDevice *pci_dev,Error **errp) +{ +PCIIORegion *r; +int i; + +if (!pci_dev_has_fixed_bar (pci_dev)) { +return ; + } + +if (!MACHINE_GET_CLASS (qdev_get_machine ())->pci_fixed_bar_supported) { +error_setg (errp,"fixed BAR placement is not supported by this " +"machine type" ); +return ; + } + +if (DEVICE (pci_dev)->hotplugged) { +error_setg (errp,"fixed BAR placement is not supported on " +"hot-plugged devices" ); +return ; + } + +for (i =0 ; i <PCI_NUM_REGIONS -1 ; i++) { +if (pci_dev->fixed_bar_addr[i] ==PCI_BAR_UNMAPPED ) { +continue ; + } + + r = &pci_dev->io_regions[i]; +if (!r->size) { +error_setg (errp,"fixed-bar-%d: bar%d does not exist on %s" , + i, i, pci_dev->name); +return ; + } +if (r->type &PCI_BASE_ADDRESS_SPACE_IO ) { +error_setg (errp,"fixed-bar-%d: bar%d on %s is an I/O BAR, " +"not a memory BAR" , i, i, pci_dev->name); +return ; + } + } +} +static int pcibus_num (PCIBus *bus) {if (pci_bus_is_root (bus)) {
@@ -2408,6 +2472,13 @@ static void pci_qdev_realize(DeviceState *qdev, Error **errp) is_default_rom = true; } +pci_check_fixed_bars (pci_dev, &local_err); +if (local_err) { +error_propagate (errp, local_err); +pci_qdev_unrealize (DEVICE (pci_dev)); +return ; + } +pci_add_option_rom (pci_dev, is_default_rom, &local_err);if (local_err) {error_propagate (errp, local_err);
include/hw/core/boards.h +3 -0
@@ -242,6 +242,8 @@ typedef struct {* is not needed. * @numa_mem_supported: * true if '--numa node.mem' option is supported and false otherwise +* @pci_fixed_bar_supported: +* true if the machine supports fixed PCI BAR placement and false otherwise * @hotplug_allowed: * If the hook is provided, then it'll be called for each device * hotplug to check whether the device hotplug is allowed. Return
@@ -317,6 +319,7 @@ struct MachineClass {bool ignore_boot_device_suffixes;bool nvdimm_supported;bool numa_mem_supported; +bool pci_fixed_bar_supported;bool auto_enable_numa;bool cpu_cluster_has_numa_boundary;SMPCompatProps smp_props;
include/hw/pci/pci_device.h +7 -0
@@ -187,6 +187,13 @@ struct PCIDevice {uint32_t max_bounce_buffer_size;char *sriov_pf; + +/* +* fixed_bar_addr[N] holds the guest address configured via the +* fixed-bar-N property for memory BAR N. PCI_BAR_UNMAPPED means +* the BAR's address is not fixed. +*/ +uint64_t fixed_bar_addr[PCI_NUM_REGIONS -1 ]; };static inline int pci_intx (PCIDevice *pci_dev)
Signature · 1 line
2.34.1
PATCH v3 5/5 hw/arm/virt: add highmem-mmio-base property
In reply to Tushar DaveAdd a highmem-mmio-base property to override the base of the virt machine's high PCIe MMIO window, alongside the existing highmem-mmio-size:
-machine virt,highmem-mmio-base=<addr>,highmem-mmio-size=<size>
Some PCI devices require MMIO resources to be placed within a specific address range that cannot be satisfied by the default placement. The configured base is validated to be non-zero, aligned to highmem-mmio-size, non-overlapping with the existing high memory layout, and within the configured physical address space.
Document the property in docs/system/arm/virt.rst.
--- docs/system/arm/virt.rst | 4 +++ hw/arm/virt.c | 64 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 1 deletion(-)
docs/system/arm/virt.rst +4 -0
@@ -152,6 +152,10 @@ highmem-mmio-size Set the high memory region size for PCI MMIO. Must be a power of 2 and greater than or equal to the default size (512G). +highmem-mmio-base + Set the high memory region base for PCI MMIO. Must be non-zero and + aligned to ``highmem-mmio-size``. + gic-version Specify the version of the Generic Interrupt Controller (GIC) to provide. Valid values are:
hw/arm/virt.c +63 -1
89 lines not on this page · raw message
Signature · 1 line
2.34.1
v3 cover hw/pci, hw/arm/virt: fixed PCI BAR placement
This patch series introduces a mechanism to specify Guest Physical Addresses (GPAs) for PCI BARs, allowing explicit placement of guest MMIO BAR addresses to match host physical addresses for assigned devices.
On some platforms, P2P DMA between devices in the same IOMMU group is required for the desired data path and performance. The PCI fabric ACS is configured to permit direct P2P without routing traffic through the host bridge.
To support this multi-device IOMMU group P2P scenario in virtualization, the VM may need to preserve the host PCI BAR addresses in the guest.
A new fixed-bar-N property on a PCI endpoint device specifies the required guest address for BAR N (N = 0 through 5):
-device some-device,fixed-bar-0=<addr>[,fixed-bar-1=<addr>]...
Once any fixed-bar-N property is set on a device, every memory BAR on that device must have a fixed address. Under a PCIe root port, fixed BAR placement is all-or-nothing within that root port's subtree. If one endpoint below the root port has a fixed BAR, every other endpoint with a memory BAR below that same root port must also have all of its memory BARs fixed.
QEMU validates the configuration when the machine is done initializing. Each address must be aligned to its BAR size, fall within the appropriate PCIe MMIO aperture, and not overlap any other fixed BAR. QEMU aborts on any validation failure. QEMU performs neither PCI enumeration nor BAR allocation. The validated addresses reach firmware and the guest through the standard PCI Enhanced Allocation (EA) capability: a device with fixed-bar-N properties gets an EA capability with one entry for each fixed BAR, holding its address and size.
EA is a conventional capability, so it has to fit in the first 256 bytes of the configuration space. A device that has no room, or that already has an EA capability, is rejected with an error.
The fixed-bar-N property and its validation are generic and apply to any PCI device. A machine type opts in by setting the new pci_fixed_bar_supported MachineClass flag. Machine types that leave it unset reject fixed-bar-N. This series enables it on the virt machine only, by setting the flag and calling the validation once the devices are realized.
On the firmware side nothing new is needed. Firmware that supports EA reads the addresses from the capability, and EDK2 has had that support since PR 13186 (merged 2026-10-27, see link below). The Linux kernel reads EA for endpoint devices and reports each BAR as "from Enhanced Allocation".
Fixed BAR placement requires the guest to preserve the PCI resource configuration established by firmware. This is requested through the PCI boot configuration preservation mechanism using ACPI _DSM function 5. Fixed BAR configuration is rejected when firmware is not loaded or ACPI is disabled.
Example 1: VFIO passthrough device with fixed BARs and the PCIe MMIO aperture adjusted to accommodate the fixed addresses.
-machine virt,...,highmem-mmio-base=4T,highmem-mmio-size=4T
-device pcie-root-port,id=pcie.port1,bus=pcie.1,chassis=1,io-reserve=0
-device x3130-upstream,id=upstream1,bus=pcie.port1
-device xio3130-downstream,id=downstream1_1,bus=upstream1,chassis=1,slot=2
-device vfio-pci-nohotplug,host=0018:06:00.0,bus=downstream1_1,id=dev0,\
fixed-bar-0=0x48000000000,fixed-bar-2=0x50000000000,fixed-bar-4=0x58000000000Example 2: VFIO and emulated devices under the same root port with fixed BARs and the PCIe MMIO aperture adjusted using highmem-mmio-base.
-machine virt,...,highmem-mmio-base=64T,highmem-mmio-size=64T
-device pxb-pcie,id=pcie.1,bus_nr=1,bus=pcie.0
-device pcie-root-port,id=pcie.port1,bus=pcie.1,chassis=1,io-reserve=0
-device x3130-upstream,id=upstream1,bus=pcie.port1
-device xio3130-downstream,id=downstream1_1,bus=upstream1,chassis=1,slot=1
-device vfio-pci-nohotplug,host=0018:06:00.0,bus=downstream1_1,rombar=0,id=dev0,iommufd=iommufd0,\
fixed-bar-0=0x6b4000000000,fixed-bar-2=0x6b8000000000,fixed-bar-4=0x6c0000000000
-device xio3130-downstream,id=downstream1_2,bus=upstream1,chassis=1,slot=2
-device vfio-pci,host=0012:03:00.1,bus=downstream1_2,id=nic1,iommufd=iommufd0,fixed-bar-0=0x6c8000000000
-device xio3130-downstream,id=downstream1_3,bus=upstream1,chassis=1,slot=3
-device e1000,netdev=net0,bus=downstream1_3,id=nic_emu,fixed-bar-0=0x20000000Limitations:
* I/O BARs and the expansion ROM BAR are not covered by fixed-bar-N.
* SR-IOV VF BARs are not covered.
Testing:
The series was tested on the AArch64 virt machine with a range of PCIe configurations, including emulated and VFIO passthrough devices, PCIe switches, single and multiple fixed-BAR endpoints behind a shared root port, devices attached directly to the host bridge, and endpoints behind nested bridges. All rejection paths were also exercised, with the corresponding error messages verified. These included unsupported machine types, hot-plugged devices, non-existent BARs, I/O BARs, unaligned, overlapping, or out-of-aperture BARs, incomplete BAR configurations, highmem-mmio=off, missing firmware, and highmem-mmio-base values that cause address-space overflow.
Changes since v2:
* Describe fixed BARs using an Enhanced Allocation (EA) capability in the device configuration space instead of the etc/fixed-bars fw_cfg blob. This replaces patch 3 and removes the blob, its format documentation, and the corresponding EDK2 change to IncompatiblePciDeviceSupportDxe, since EDK2 already handles EA capabilities natively.
* Update patches 4 and 5 accordingly: patch 4 now performs validation instead of writing the fw_cfg blob, and patch 5 is adjusted to the updated object_class_property_add() API in current master.
* Patches 1 and 2 are unchanged.
A git branch with this series applied is available at:
https://github.com/tdavenvidia/upstream-qemu/tree/Upstream-fixed-bar-v3-EA-nov-20
EDK2 EA support, used by this series:
https://github.com/tianocore/edk2/pull/13186
v2:
https://lore.kernel.org/qemu-arm/[email protected]/
v1:
https://lore.kernel.org/qemu-arm/[email protected]/
Tushar Dave (5):
hw/pci: introduce PCI fixed BAR properties
hw/pci: add validation for fixed BAR configuration hw/pci: describe fixed BARs with an Enhanced Allocation capability hw/arm/virt: validate fixed BARs and preserve the PCI configuration hw/arm/virt: add highmem-mmio-base property
docs/system/arm/virt.rst | 4 + hw/arm/virt.c | 82 ++++++- hw/pci/meson.build | 1 + hw/pci/pci-fixed-bar-validate.c | 405 ++++++++++++++++++++++++++++++++ hw/pci/pci-fixed-bar-validate.h | 22 ++ hw/pci/pci.c | 219 ++++++++++++++++- hw/vfio/pci.c | 58 ++++- include/hw/core/boards.h | 3 + include/hw/pci/pci-fixed-bar.h | 28 +++ include/hw/pci/pci.h | 2 + include/hw/pci/pci_device.h | 7 + 11 files changed, 827 insertions(+), 4 deletions(-) create mode 100644 hw/pci/pci-fixed-bar-validate.c create mode 100644 hw/pci/pci-fixed-bar-validate.h create mode 100644 include/hw/pci/pci-fixed-bar.h
Signature · 1 line
2.34.1