This commit was created with scripts/clean-includes: ./scripts/clean-includes '--git' 'all' '--all' and manually edited to remove one change to hw/virtio/cbor-helpers.c. All these changes are header files that include osdep.h or some system header that osdep.h pulls in; they don't need to do this. All .c should include qemu/osdep.h first. The script performs three related cleanups: * Ensure .c files include qemu/osdep.h first. * Including it in a .h is redundant, since the .c already includes it. Drop such inclusions. * Likewise, including headers qemu/osdep.h includes is redundant. Drop these, too. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20260116125830.926296-5-peter.maydell@linaro.org
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/*
|
|
* Accelerated irqchip abstraction
|
|
*
|
|
* Copyright Microsoft, Corp. 2025
|
|
*
|
|
* Authors: Ziqiao Zhou <ziqiaozhou@microsoft.com>
|
|
* Magnus Kulke <magnuskulke@microsoft.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef SYSTEM_ACCEL_IRQ_H
|
|
#define SYSTEM_ACCEL_IRQ_H
|
|
#include "hw/pci/msi.h"
|
|
#include "system/kvm.h"
|
|
#include "system/mshv.h"
|
|
|
|
static inline bool accel_msi_via_irqfd_enabled(void)
|
|
{
|
|
return mshv_msi_via_irqfd_enabled() || kvm_msi_via_irqfd_enabled();
|
|
}
|
|
|
|
static inline bool accel_irqchip_is_split(void)
|
|
{
|
|
return mshv_msi_via_irqfd_enabled() || kvm_irqchip_is_split();
|
|
}
|
|
|
|
int accel_irqchip_add_msi_route(KVMRouteChange *c, int vector, PCIDevice *dev);
|
|
int accel_irqchip_update_msi_route(int vector, MSIMessage msg, PCIDevice *dev);
|
|
void accel_irqchip_commit_route_changes(KVMRouteChange *c);
|
|
void accel_irqchip_commit_routes(void);
|
|
void accel_irqchip_release_virq(int virq);
|
|
int accel_irqchip_add_irqfd_notifier_gsi(EventNotifier *n, EventNotifier *rn,
|
|
int virq);
|
|
int accel_irqchip_remove_irqfd_notifier_gsi(EventNotifier *n, int virq);
|
|
#endif
|