From nobody Mon Feb 9 20:32:08 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1622071884; cv=none; d=zohomail.com; s=zohoarc; b=AzRvyIL7Lr8v62KHMskIPCvazkMQZhmoYEE5qIWqFByVf/i++DZVrQ4+6tM19dhm5TYlRXQgqcMl8BHPjy4NbhBvMsPF2XXCoqdoxrzAihv4W3obToEfXNPjFf1fPRR2oqjBjTrl/QQVyzclfK3ixs2DGR8UDDv8IYOMDd2Y0Y0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622071884; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DM0tnMbNxhUqGpOF/QyPy81bqr0ACogdYB2P0we4F18=; b=j2aWrFBgqjugvjqQRnTlw/8M0CwCt3hf1NebQICB/jbbY38mdHDfdSL+MT7jtT8gJ1HXNkZDhOT+BkkNFapJsjj2qg3DxxuU6xXwnJdzKrHW+TEj30XRPq7dvDucUNeKZ/KFk+3mSjA1kUfYm86HneIFqdB/NSEISj/hNEZKzmc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622071884306880.8670217616514; Wed, 26 May 2021 16:31:24 -0700 (PDT) Received: from localhost ([::1]:55250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm2zi-0002aQ-VX for importer@patchew.org; Wed, 26 May 2021 19:31:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm2vf-0002qN-41 for qemu-devel@nongnu.org; Wed, 26 May 2021 19:27:11 -0400 Received: from mga01.intel.com ([192.55.52.88]:11254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm2vb-0001y0-Ix for qemu-devel@nongnu.org; Wed, 26 May 2021 19:27:10 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2021 16:26:56 -0700 Received: from vkasired-desk2.fm.intel.com ([10.105.128.127]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2021 16:26:56 -0700 IronPort-SDR: Pt6xnB7bfqYzUvKhZxdM1+FZFTb6Y/WO1WSJ7XlyyOazHGorqsBklo2lcPxMaRzCCAnsi3/Vdu 5x/Bez94Z2OA== X-IronPort-AV: E=McAfee;i="6200,9189,9996"; a="223801542" X-IronPort-AV: E=Sophos;i="5.82,333,1613462400"; d="scan'208";a="223801542" IronPort-SDR: /N2d5yKDooZ5rJG5AqtZ+wvn/eBuOe/4Hc/1HtwJz0rrJH94k4LuZ5qgL/6JQKluRTAWi22v2S fmJPgdqJpuiw== X-IronPort-AV: E=Sophos;i="5.82,333,1613462400"; d="scan'208";a="477188141" From: Vivek Kasireddy To: qemu-devel@nongnu.org Subject: [PATCH v7 04/14] stubs: Add stubs for udmabuf helpers Date: Wed, 26 May 2021 16:14:19 -0700 Message-Id: <20210526231429.1045476-5-vivek.kasireddy@intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210526231429.1045476-1-vivek.kasireddy@intel.com> References: <20210526231429.1045476-1-vivek.kasireddy@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=192.55.52.88; envelope-from=vivek.kasireddy@intel.com; helo=mga01.intel.com X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vivek Kasireddy , Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" This is needed to ensure that virtio-gpu device works for non-linux builds. Cc: Gerd Hoffmann Signed-off-by: Vivek Kasireddy --- 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 =3D util_ss.apply(config_all, strict: false) libqemuutil =3D static_library('qemuutil', sources: util_ss.sources() + stub_ss.sources(= ) + genh, - dependencies: [util_ss.dependencies(), m, gli= b, socket, malloc]) + dependencies: [util_ss.dependencies(), m, gli= b, socket, malloc, pixman]) qemuutil =3D declare_dependency(link_with: libqemuutil, sources: genh + version_res) =20 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) */ +} --=20 2.30.2