| 1 | /* |
| 2 | * QEMU MSHV stub |
| 3 | * |
| 4 | * Copyright Red Hat, Inc. 2025 |
| 5 | * |
| 6 | * Author: Paolo Bonzini <pbonzini@redhat.com> |
| 7 | * |
| 8 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 9 | */ |
| 10 | |
| 11 | #include "qemu/osdep.h" |
| 12 | #include "hw/pci/msi.h" |
| 13 | #include "system/mshv.h" |
| 14 | |
| 15 | bool mshv_allowed; |
| 16 | MshvState *mshv_state; |
| 17 | |
| 18 | int mshv_irqchip_add_msi_route(AccelRouteChange *c, int vector, PCIDevice *dev) |
| 19 | { |
| 20 | return -ENOSYS; |
| 21 | } |
| 22 | |
| 23 | void mshv_irqchip_release_virq(MshvState *s, int virq) |
| 24 | { |
| 25 | } |
| 26 | |
| 27 | int mshv_irqchip_update_msi_route(int virq, MSIMessage msg, PCIDevice *dev) |
| 28 | { |
| 29 | return -ENOSYS; |
| 30 | } |
| 31 | |
| 32 | void mshv_irqchip_commit_routes(MshvState *s) |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | int mshv_irqchip_add_irqfd_notifier_gsi(const EventNotifier *n, |
| 37 | const EventNotifier *rn, int virq) |
| 38 | { |
| 39 | return -ENOSYS; |
| 40 | } |
| 41 | |
| 42 | int mshv_irqchip_remove_irqfd_notifier_gsi(const EventNotifier *n, int virq) |
| 43 | { |
| 44 | return -ENOSYS; |
| 45 | } |