]> git.proxmox.com Git - mirror_qemu.git/commit
hw/pci-host/i440fx: Make MemoryRegion pointers accessible as properties
authorBernhard Beschow <shentey@gmail.com>
Fri, 30 Jun 2023 07:37:15 +0000 (09:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jul 2023 20:29:17 +0000 (16:29 -0400)
commit09f85b7b93a05f1551509b245be99529a9e278f9
treefd1a2a222cb51245b07bc2be6438424b6c1f9599
parent44df0552a020efd6191714da44edede5ded37ec8
hw/pci-host/i440fx: Make MemoryRegion pointers accessible as properties

The goal is to eliminate i440fx_init() which is a legacy init function. This
neccessitates the memory regions to be properties, like in Q35, which will be
assigned in board code.

Since i440fx needs different PCI devices in Xen mode, and since i440fx shall
be self-contained, the PCI device will be created during realization of the
host. Thus the pointers need to be moved to the host structure to be usable as
properties.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230630073720.21297-13-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-host/i440fx.c
include/hw/pci-host/i440fx.h