]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/display: Restrict virtio-gpu-udmabuf stubs to !Linux
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 23 Aug 2021 10:04:53 +0000 (12:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 31 Aug 2021 12:31:43 +0000 (14:31 +0200)
commitcdb1fba0844bb1db71f67d35700a80838d185bbd
tree38488176ad5eb2bde9bce5f3609db14f972ee9e0
parentfc4d3f35f81a5d392d979607818cf1cb56bfbaf7
hw/display: Restrict virtio-gpu-udmabuf stubs to !Linux

When using qemu configured with --enabled-modules, the
generic stubs are used instead of the module symbols:

  qemu-system-x86_64: -device virtio-vga,blob=on: cannot enable blob resources without udmabuf

Restrict the stubs to Linux and only link them when
CONFIG_VIRTIO_GPU is disabled (only the modularized
version is available when it is enabled).

Reported-by: Maxim R. <mrom06@ya.ru>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/553
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210823100454.615816-2-philmd@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/meson.build
hw/display/virtio-gpu-udmabuf-stubs.c [moved from stubs/virtio-gpu-udmabuf.c with 100% similarity]
stubs/meson.build