OSDN Git Service

hw/i386/xen/xen-hvm: Allow for stubbing xen_set_pci_link_route()
authorBernhard Beschow <shentey@gmail.com>
Sun, 26 Jun 2022 09:46:55 +0000 (11:46 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 28 Jun 2022 22:24:13 +0000 (00:24 +0200)
commit21d87050af66f50c8d394a160e89560ceaa6bd5d
tree90d86f00c5344f04d1cca886a00cf2ccde0a5648
parent99337bd1e3a323d07dc29da99cf3f48d3990ad81
hw/i386/xen/xen-hvm: Allow for stubbing xen_set_pci_link_route()

The only user of xen_set_pci_link_route() is
xen_piix_pci_write_config_client() which implements PIIX-specific logic in
the xen namespace. This makes xen-hvm depend on PIIX which could be
avoided if xen_piix_pci_write_config_client() was implemented in PIIX. In
order to do this, xen_set_pci_link_route() needs to be stubbable which
this patch addresses.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Message-Id: <20220626094656.15673-2-shentey@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/i386/xen/xen-hvm.c
include/hw/xen/xen.h
include/hw/xen/xen_common.h
stubs/xen-hw-stub.c