virtio-net: fix map leaking on error during receive
[qemu/kevin.git] / include / sysemu / whpx.h
blob2889fa2278b3d60b39fdd82d2b49cf8cbc0fe748
1 /*
2 * QEMU Windows Hypervisor Platform accelerator (WHPX) support
4 * Copyright Microsoft, Corp. 2017
6 * Authors:
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.
13 #ifndef QEMU_WHPX_H
14 #define QEMU_WHPX_H
16 #ifdef NEED_CPU_H
18 #ifdef CONFIG_WHPX
20 int whpx_enabled(void);
21 bool whpx_apic_in_platform(void);
23 #else /* CONFIG_WHPX */
25 #define whpx_enabled() (0)
26 #define whpx_apic_in_platform() (0)
28 #endif /* CONFIG_WHPX */
30 #endif /* NEED_CPU_H */
32 #endif /* QEMU_WHPX_H */