From nobody Mon Feb 9 19:29:54 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1684921153; cv=none; d=zohomail.com; s=zohoarc; b=MPYxnxQfZJx9QAUcYwbFIDyLVSH/QOZgN92Z5EOKaTIFBDKZ0szWviKCfskU025gdfEzuNwfkXu9y68kAXV5Ku25p8XD626Uj/D0igVtCRAF4LedwbTythRpSs8xAPf5Lc1zqEgMs626nmy8kfpknGjx5R+NIvQeRKwMb1kq5ds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684921153; h=Content-Type: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=wU1WpV67IYL3BYTiEXvsZGAK6CKVN9GrbnEP+5A6mow=; b=JBvrbdEfPi1CqBOALpVqxzS1rrpELoFhsJiWslqWOSvN1q3Ihdlgx8dpTvCskAa7wMkZpKoxEgPqDbMvZqavN7TQqMJd2YbtCbLnXSIhOJIz1+kljrRUiUzrUpWJ7W33DyURGkSsOJYjMeWAS5B/Qo7h7i5VOw0LCpVIRHhH2+E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16849211536551023.6858104822668; Wed, 24 May 2023 02:39:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1kwx-0006UV-KK; Wed, 24 May 2023 05:38:31 -0400 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 1q1kwv-0006BC-9l for qemu-devel@nongnu.org; Wed, 24 May 2023 05:38:29 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1kws-0006rS-C7 for qemu-devel@nongnu.org; Wed, 24 May 2023 05:38:28 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3f607839b89so6273495e9.3 for ; Wed, 24 May 2023 02:38:25 -0700 (PDT) Received: from localhost.localdomain (fac34-h02-176-184-31-246.dsl.sta.abo.bbox.fr. [176.184.31.246]) by smtp.gmail.com with ESMTPSA id k16-20020a5d5190000000b003078c535277sm13766984wrv.91.2023.05.24.02.38.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 May 2023 02:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684921104; x=1687513104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wU1WpV67IYL3BYTiEXvsZGAK6CKVN9GrbnEP+5A6mow=; b=K/8Moi5dWE1duPrGDhW6dB+k0c1N+pKp8ldP/tKrPO8rws9weB9QWcclS22pQ5ORuj t9a0u9MHQbhdRn4eAWNZVShyQS1nIKB0UBOYU+P7LNf/OEP1/YtXxnulhPn021W/Jg0L 7CDD2LaRfUUv01XS5yIL3DJYOOKHR3C8cmg9dO8fN0cSv8KFBMYdYFjGKa9Qt8FrS+f6 VXC9Y2pOh7GgDHFQglAj4zc7lWT8OY6zi4e2kgFiuNfwrBlY1/l0cD9yaxRPDg8iYjvp 0/e1R6BLYHs2TG6v5Gle+8SNKBQaBvUjlLkQI4OFUjL85F9KoGEdhkoAj4pvhlPwAg6F 3RDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684921104; x=1687513104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wU1WpV67IYL3BYTiEXvsZGAK6CKVN9GrbnEP+5A6mow=; b=bnHtdfdDtkrHIq87w7tvOZkpCwQUSD20AEiz5MUrBQehP0OnPEL640Jo14A1i77KGK Z1uoaaQa0eYXqjZC234KrTft/T6OHxkEALwaq1/hjik8Pqf9YxGHPMitjIOYuLS+uIBT sK/STSbWCFzT6MGU9AEec7pZCTEkTztqXsHXcPreQtRuLBoiZNuF5pF/PyrANY+6XVPC AbbR2KKxh+iYL5E0ptr7rrCEJSu2CZOSjHX+jS4g5WRZAqoLucwAY5ETeIruQDTzf2J6 4m0QQzR/9aDKnsi+T4gUwWbJJ40aZXUgUcvswB8TXh7ZdN69ShpsxsezCRg0Pe16O5xm 8wxw== X-Gm-Message-State: AC+VfDzBwq3kjiyRlt0UnMWeKG/1NQ3LauaXlLoPavfwIv6GLZvDHaeE WkFyZwuabuwC40OdEmYtj1P1hXkG/zWgoy+QTaj6KQ== X-Google-Smtp-Source: ACHHUZ5+zFKvgYUMUc3LbcHXjC8s8bMB5kDhPfmGe8HFUo3v7qhumskRGMZguvtWQoHmgtygLljRJg== X-Received: by 2002:adf:d092:0:b0:307:c471:7b38 with SMTP id y18-20020adfd092000000b00307c4717b38mr11216415wrh.59.1684921104399; Wed, 24 May 2023 02:38:24 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fam Zheng , Thomas Huth , Paolo Bonzini , Eric Farman , Peter Xu , Hanna Reitz , Christian Borntraeger , "Michael S. Tsirkin" , Raphael Norwitz , Ilya Leoshkevich , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eric Auger , "Gonglei (Arei)" , David Hildenbrand , Stefan Hajnoczi , qemu-s390x@nongnu.org, Cornelia Huck , Halil Pasic , qemu-block@nongnu.org, Kevin Wolf Subject: [PATCH v2 05/10] hw/virtio: Introduce VHOST_VSOCK_COMMON symbol in Kconfig Date: Wed, 24 May 2023 11:37:39 +0200 Message-Id: <20230524093744.88442-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230524093744.88442-1-philmd@linaro.org> References: <20230524093744.88442-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1684921154004100001 Instead of adding 'vhost-vsock-common.c' twice (for VHOST_VSOCK and VHOST_USER_VSOCK), have it depend on VHOST_VSOCK_COMMON, selected by both symbols. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Stefano Garzarella --- hw/virtio/Kconfig | 6 ++++++ hw/virtio/meson.build | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hw/virtio/Kconfig b/hw/virtio/Kconfig index 89e9e426d8..de7a35429a 100644 --- a/hw/virtio/Kconfig +++ b/hw/virtio/Kconfig @@ -56,14 +56,20 @@ config VIRTIO_MEM depends on VIRTIO_MEM_SUPPORTED select MEM_DEVICE =20 +config VHOST_VSOCK_COMMON + bool + depends on VIRTIO + config VHOST_VSOCK bool default y + select VHOST_VSOCK_COMMON depends on VIRTIO && VHOST_KERNEL =20 config VHOST_USER_VSOCK bool default y + select VHOST_VSOCK_COMMON depends on VIRTIO && VHOST_USER =20 config VHOST_USER_I2C diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build index bdec78bfc6..54c90c24fb 100644 --- a/hw/virtio/meson.build +++ b/hw/virtio/meson.build @@ -23,8 +23,9 @@ specific_virtio_ss.add(when: 'CONFIG_VIRTIO_BALLOON', if_= true: files('virtio-bal specific_virtio_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virti= o-crypto.c')) specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost= -user-fs.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_PMEM', if_true: files('virtio-= pmem.c')) -specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-v= sock.c', 'vhost-vsock-common.c')) -specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vh= ost-user-vsock.c', 'vhost-vsock-common.c')) +specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK_COMMON', if_true: files('= vhost-vsock-common.c')) +specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-v= sock.c')) +specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vh= ost-user-vsock.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-r= ng.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_IOMMU', if_true: files('virtio= -iommu.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-m= em.c')) --=20 2.38.1