qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Vivek Kasireddy <vivek.kasireddy@intel.com>
To: qemu-devel@nongnu.org
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: [PATCH v7 04/14] stubs: Add stubs for udmabuf helpers
Date: Wed, 26 May 2021 16:14:19 -0700	[thread overview]
Message-ID: <20210526231429.1045476-5-vivek.kasireddy@intel.com> (raw)
In-Reply-To: <20210526231429.1045476-1-vivek.kasireddy@intel.com>

This is needed to ensure that virtio-gpu device works for
non-linux builds.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
---
 meson.build                |  2 +-
 stubs/meson.build          |  1 +
 stubs/virtio-gpu-udmabuf.c | 18 ++++++++++++++++++
 3 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 stubs/virtio-gpu-udmabuf.c

diff --git a/meson.build b/meson.build
index 632b380738..9b6d93b8bb 100644
--- a/meson.build
+++ b/meson.build
@@ -1899,7 +1899,7 @@ util_ss.add_all(trace_ss)
 util_ss = util_ss.apply(config_all, strict: false)
 libqemuutil = static_library('qemuutil',
                              sources: util_ss.sources() + stub_ss.sources() + genh,
-                             dependencies: [util_ss.dependencies(), m, glib, socket, malloc])
+                             dependencies: [util_ss.dependencies(), m, glib, socket, malloc, pixman])
 qemuutil = declare_dependency(link_with: libqemuutil,
                               sources: genh + version_res)
 
diff --git a/stubs/meson.build b/stubs/meson.build
index 3faef16892..9915251c4f 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -40,6 +40,7 @@ stub_ss.add(files('target-monitor-defs.c'))
 stub_ss.add(files('tpm.c'))
 stub_ss.add(files('trace-control.c'))
 stub_ss.add(files('uuid.c'))
+stub_ss.add(files('virtio-gpu-udmabuf.c'))
 stub_ss.add(files('vmgenid.c'))
 stub_ss.add(files('vmstate.c'))
 stub_ss.add(files('vm-stop.c'))
diff --git a/stubs/virtio-gpu-udmabuf.c b/stubs/virtio-gpu-udmabuf.c
new file mode 100644
index 0000000000..e962e00d86
--- /dev/null
+++ b/stubs/virtio-gpu-udmabuf.c
@@ -0,0 +1,18 @@
+#include "qemu/osdep.h"
+#include "hw/virtio/virtio-gpu.h"
+
+bool virtio_gpu_have_udmabuf(void)
+{
+    /* nothing (stub) */
+    return false;
+}
+
+void virtio_gpu_init_udmabuf(struct virtio_gpu_simple_resource *res)
+{
+    /* nothing (stub) */
+}
+
+void virtio_gpu_fini_udmabuf(struct virtio_gpu_simple_resource *res)
+{
+    /* nothing (stub) */
+}
-- 
2.30.2



  parent reply	other threads:[~2021-05-26 23:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26 23:14 [PATCH v7 00/14] virtio-gpu: Add support for Blob resources feature Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 01/14] ui: Get the fd associated with udmabuf driver Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 02/14] headers: Add udmabuf.h Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 03/14] virtio-gpu: Add udmabuf helpers Vivek Kasireddy
2021-05-26 23:14 ` Vivek Kasireddy [this message]
2021-05-26 23:14 ` [PATCH v7 05/14] virtio-gpu: Add virtio_gpu_find_check_resource Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 06/14] virtio-gpu: Refactor virtio_gpu_set_scanout Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 07/14] virtio-gpu: Refactor virtio_gpu_create_mapping_iov Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 08/14] virtio-gpu: Add initial definitions for blob resources Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 09/14] virtio-gpu: Add virtio_gpu_resource_create_blob Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 10/14] ui/pixman: Add qemu_pixman_to_drm_format() Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 11/14] virtio-gpu: Add helpers to create and destroy dmabuf objects Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 12/14] virtio-gpu: Factor out update scanout Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 13/14] virtio-gpu: Add virtio_gpu_set_scanout_blob Vivek Kasireddy
2021-05-26 23:14 ` [PATCH v7 14/14] virtio-gpu: Update cursor data using blob Vivek Kasireddy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210526231429.1045476-5-vivek.kasireddy@intel.com \
    --to=vivek.kasireddy@intel.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).