diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-06-26 11:46:55 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-06-29 00:24:13 +0200 |
commit | 21d87050af66f50c8d394a160e89560ceaa6bd5d (patch) | |
tree | 90d86f00c5344f04d1cca886a00cf2ccde0a5648 /include/hw/xen/xen.h | |
parent | 99337bd1e3a323d07dc29da99cf3f48d3990ad81 (diff) |
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>
Diffstat (limited to 'include/hw/xen/xen.h')
-rw-r--r-- | include/hw/xen/xen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/xen/xen.h b/include/hw/xen/xen.h index 0f9962b1c1..13bffaef53 100644 --- a/include/hw/xen/xen.h +++ b/include/hw/xen/xen.h @@ -21,6 +21,7 @@ extern enum xen_mode xen_mode; extern bool xen_domid_restrict; int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num); +int xen_set_pci_link_route(uint8_t link, uint8_t irq); void xen_piix3_set_irq(void *opaque, int irq_num, int level); void xen_piix_pci_write_config_client(uint32_t address, uint32_t val, int len); void xen_hvm_inject_msi(uint64_t addr, uint32_t data); |