Since this function needs kvm specific types, we need to extract in another file and link it only for KVM builds. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Tested-by: Cédric Le Goater <clg@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260318174733.1717643-8-pierrick.bouvier@linaro.org Signed-off-by: Cédric Le Goater <clg@redhat.com>
35 lines
603 B
C
35 lines
603 B
C
/*
|
|
* Stubs for kvm helpers
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
|
|
#include "hw/vfio/kvm-spapr.h"
|
|
#include "hw/vfio/vfio-device.h"
|
|
#include "qapi/error.h"
|
|
#include "vfio-helpers.h"
|
|
|
|
void vfio_kvm_device_close(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
int vfio_kvm_device_add_fd(int fd, Error **errp)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int vfio_kvm_device_del_fd(int fd, Error **errp)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
bool vfio_spapr_kvm_attach_tce(VFIOContainer *bcontainer,
|
|
MemoryRegionSection *section,
|
|
Error **errp)
|
|
{
|
|
g_assert_not_reached();
|
|
}
|