| 1 | /* |
| 2 | * QEMU Xen emulation: QMP stubs |
| 3 | * |
| 4 | * Copyright © 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 5 | * |
| 6 | * Authors: David Woodhouse <dwmw2@infradead.org> |
| 7 | * |
| 8 | * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| 9 | * See the COPYING file in the top-level directory. |
| 10 | */ |
| 11 | |
| 12 | #include "qemu/osdep.h" |
| 13 | |
| 14 | #include "qapi/error.h" |
| 15 | #include "monitor/monitor.h" |
| 16 | #include "monitor/hmp.h" |
| 17 | |
| 18 | #include "xen_evtchn.h" |
| 19 | #include "xen_primary_console.h" |
| 20 | |
| 21 | void xen_evtchn_snoop_msi(PCIDevice *dev, bool is_msix, unsigned int vector, |
| 22 | uint64_t addr, uint32_t data, bool is_masked) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | void xen_evtchn_remove_pci_device(PCIDevice *dev) |
| 27 | { |
| 28 | } |
| 29 | |
| 30 | bool xen_evtchn_deliver_pirq_msi(uint64_t address, uint32_t data) |
| 31 | { |
| 32 | return false; |
| 33 | } |
| 34 | |
| 35 | void xen_primary_console_create(void) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | void xen_primary_console_set_be_port(uint16_t port) |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | #ifdef CONFIG_HMP |
| 44 | void hmp_xen_event_list(MonitorHMP *hmp, const QDict *qdict) |
| 45 | { |
| 46 | monitor_hmp_printf(hmp, "XEN emulation is not available in this QEMU\n"); |
| 47 | } |
| 48 | |
| 49 | void hmp_xen_event_inject(MonitorHMP *hmp, const QDict *qdict) |
| 50 | { |
| 51 | monitor_hmp_printf(hmp, "XEN emulation is not available in this QEMU\n"); |
| 52 | } |
| 53 | #endif |