From patchwork Mon Nov 4 16:53:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 840565 Delivered-To: patch@linaro.org Received: by 2002:adf:a38c:0:b0:37d:45d0:187 with SMTP id l12csp2237876wrb; Mon, 4 Nov 2024 08:54:46 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV0ACgyAC4SHhwgz/nBJCp/hhe55CBsllM51IvxvopMPPQPrm8++2+bE1hVXfF3+9PxdL2vNA==@linaro.org X-Google-Smtp-Source: AGHT+IEdIcHICsKxq6sqhQgqOJbNV1G6Kc3da4fbyaC9SsDHrVimFsIjN4Bvl8I2WpgVWCmlG7+M X-Received: by 2002:a05:6214:5347:b0:6d1:83ec:32f9 with SMTP id 6a1803df08f44-6d351b20d6cmr211562136d6.35.1730739286647; Mon, 04 Nov 2024 08:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730739286; cv=none; d=google.com; s=arc-20240605; b=j5ByuK7rsXYNcqXXjaCFIsByxuwPoVJdJqdMHQBmfrqoZr/Owa0IgpyMxRorGQgfZR 9GLm61X7ZjTW+/RkbfzDpSEtJrkIn6loiJLr3vUkeK5L301Q4OG3iNLwdx0IhUKSwi5o anV2Sj08DYwS0tgyKIeWYmSuEPO/XZKZo7zVAXgfnAbe7wFFH15zTTna7XEMtaImGBsg n9gz9bpb4tlz3o6WeV3LiT2HYlrkIP7+Z/3By3hM8hGC1+0TX6A0CVn6CXd9w6r/ExgY vfwC5voclzUyV5NXR83Exj4586Pl4UDczetME3H0LAELT4ZmRtKN+woiABPRdf/9oZln ErDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=h208FfcvMiJmm0tnJW7SVVNKFW7oPgnIHJ7sZhG3bV0=; fh=eh2eOUL3wkt7Pgyu1tD9csqE7KtlWFIHSD2x7xKglP8=; b=H9jLH67PJA0AxgyIVlU/OAveIv3D/WNMdUhwfOX/bd8u5RQmDBCue0IUxGRKfp9HGn lsZieMkZO4FGYKxD6rC9W6atsqyCGp08r7FAxbWSwilBbCjqG8ocu39bZH0E8Qog9k2N 1G+3clep8Zw4+1DfVy6gAcJMjG/4kYppON6j7Quo5ROt7pyp7mP/Ej1zN3zVSJgTjA6R WytnsYp/+fKF0POByiNJ9Pv1tK2tkrI8zT14kQ7MpMt4m3Zppmx14ASngp2pw4b0rJxj 4V49FYIO+N2QrfFztoVFHwMD13CX1QJG96BPKP+10AtAATSBoF2aGcQ3f288Rj4h1zld kRVQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z5XgqII7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d353fd0ad9si112029816d6.154.2024.11.04.08.54.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Nov 2024 08:54:46 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z5XgqII7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t80Ky-00054j-Jd; Mon, 04 Nov 2024 11:53:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t80Kv-00052d-Pd for qemu-devel@nongnu.org; Mon, 04 Nov 2024 11:53:53 -0500 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t80Ku-0004gf-Ev for qemu-devel@nongnu.org; Mon, 04 Nov 2024 11:53:53 -0500 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a9e8522445dso394728166b.1 for ; Mon, 04 Nov 2024 08:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730739231; x=1731344031; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h208FfcvMiJmm0tnJW7SVVNKFW7oPgnIHJ7sZhG3bV0=; b=z5XgqII76qwapFuUFZKeOC/o5p2Cz55HdScA6yvBWXIEfDSraCNv7jKQgeNRkVZkJP qBgPAiGhWVdAgdyu0GhWWN+p2+SxW/9YoHhAManrYUB9j02oo0tHZW0K4U37LKUKAYQm Ho06NRDVBXnJOqAog2DwgahYJ0pri97W3URmFR7uZzBN3qET5/AU+bNNZT4mDU98LzYH aaT8BSCA64Yze6omBUAWtBOdm0XGIu7aVn++S+slVBayRzt8ycOBRJUxTuQ1d+fpUJeH Sjhi6W+orsRet4lkxjm5+Gv8Q5ZPrDAXA7rdHnd9If+0gv39DYFbpJ1z+D2iYY971utN 0USQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730739231; x=1731344031; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h208FfcvMiJmm0tnJW7SVVNKFW7oPgnIHJ7sZhG3bV0=; b=X53KpfL6heKmjEMWYIAI3+iazGAXULyLg3Gv8Z9eY23XuWh8fjE/Z9Jls1h503GhSm rA3kr1ONvrnnjpadFlBSFxU6R46Eg2cxGVXSwDq19H4RSJwFQAAuqALOwICe7wDr8jpT HmikRbKeyO2tZcTw7R4waJBkc+eCgaS99CJ4CKY3JYx79pTOFTuLzOdscA94I4RNPIGn IYGe+ExhuNEbIkA1lNOneDbpq8T646g0fLVAYPVjM34HRxsYl5FqYFQZTYsXwLwNmXDD 8GrHhP6qUJdjOYQ8XKmTbDvTPy1y/ub+vFq6bUV/Vaz1TC301BKObTRPOlbTC6L68VqN xKDg== X-Gm-Message-State: AOJu0Yz7FiurGoZc5VVzCiRI6gjvb5DPK2YK7IWPGRU3NZLdmTTYRkts l9qauJj/QDaNKx5cO9o2d04zI+bi1h9ZHUbbNidDtMGAPbK1lW9oDR8tDUoKsuM= X-Received: by 2002:a17:906:6a1e:b0:a99:87ea:de57 with SMTP id a640c23a62f3a-a9e6553bc7amr1235008266b.2.1730739230667; Mon, 04 Nov 2024 08:53:50 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb16a30c7sm5090966b.41.2024.11.04.08.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2024 08:53:49 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 49D6E5F882; Mon, 4 Nov 2024 16:53:48 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 0/2] virtio-gpu: coverity fixes Date: Mon, 4 Nov 2024 16:53:46 +0000 Message-Id: <20241104165348.2361299-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Hi Dimitry, I'd already started this before I saw your email so I thought I might as well push what I had. Feel free to review/use as a base/ignore as you wish ;-) Alex. Alex Bennée (2): hw/display: factor out the scanout blob to fb conversion hw/display: check frame buffer can hold blob include/hw/virtio/virtio-gpu.h | 15 ++++++++ hw/display/virtio-gpu-virgl.c | 21 +---------- hw/display/virtio-gpu.c | 65 ++++++++++++++++++++++------------ 3 files changed, 58 insertions(+), 43 deletions(-)