]> git.proxmox.com Git - mirror_qemu.git/blob - hw/i386/kvm/xen-stubs.c
accel/tcg: Replace CPUState.env_ptr with cpu_env()
[mirror_qemu.git] / hw / i386 / kvm / xen-stubs.c
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 "qapi/qapi-commands-misc-target.h"
16
17 #include "xen_evtchn.h"
18
19 void xen_evtchn_snoop_msi(PCIDevice *dev, bool is_msix, unsigned int vector,
20 uint64_t addr, uint32_t data, bool is_masked)
21 {
22 }
23
24 void xen_evtchn_remove_pci_device(PCIDevice *dev)
25 {
26 }
27
28 bool xen_evtchn_deliver_pirq_msi(uint64_t address, uint32_t data)
29 {
30 return false;
31 }
32
33 #ifdef TARGET_I386
34 EvtchnInfoList *qmp_xen_event_list(Error **errp)
35 {
36 error_setg(errp, "Xen event channel emulation not enabled");
37 return NULL;
38 }
39
40 void qmp_xen_event_inject(uint32_t port, Error **errp)
41 {
42 error_setg(errp, "Xen event channel emulation not enabled");
43 }
44 #endif