master
c 34 lines 603 Bytes
Raw
1 /*
2 * Stubs for kvm helpers
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #include "qemu/osdep.h"
8
9 #include "hw/vfio/kvm-spapr.h"
10 #include "hw/vfio/vfio-device.h"
11 #include "qapi/error.h"
12 #include "vfio-helpers.h"
13
14 void vfio_kvm_device_close(void)
15 {
16 return;
17 }
18
19 int vfio_kvm_device_add_fd(int fd, Error **errp)
20 {
21 return 0;
22 }
23
24 int vfio_kvm_device_del_fd(int fd, Error **errp)
25 {
26 return 0;
27 }
28
29 bool vfio_spapr_kvm_attach_tce(VFIOContainer *bcontainer,
30 MemoryRegionSection *section,
31 Error **errp)
32 {
33 g_assert_not_reached();
34 }