From nobody Mon Nov 17 17:47:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1605096568; cv=none; d=zohomail.com; s=zohoarc; b=AVNvUryXVSYIt8V8boSn42gs6KVZMubo+AzuTErs9SXebANIB4ggyVtLcin2b55OGZ8eMS7gWE8Ox3aqzDot7gBDw4e8SOgRZmzoyotxkyDDayO0NelcBX1YiXd/91Wb8KmoTeHdlccd85QGXfcP/7VyB/PgNskBiojuzJspLM8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605096568; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=DhWy8pholMfQJkiIQJrVZ9r7WROXeO4d6XcEJNyaGT8=; b=GmSPiI2j/wxxtrqQfL9AvsLTW7pTBtscgFDkj1e2+LXBwCv2Jq3K0Q80Mx9gECLknEQMPwVH/ewdFPbEoPZsz2Y7G0YyvAM9YpVXqzBVU5mKDGKEtqb7BTkfoBaGeyztm487l880XfDVveznNcUYIlpAjerFO4H/8bDAPS5mvrc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1605096568600734.1836220938205; Wed, 11 Nov 2020 04:09:28 -0800 (PST) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-274-U-2-vE-8MJmhN87n5OYqrA-1; Wed, 11 Nov 2020 07:09:25 -0500 Received: by mail-wm1-f72.google.com with SMTP id o81so707140wma.0 for ; Wed, 11 Nov 2020 04:09:25 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id y11sm2194390wmj.36.2020.11.11.04.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 04:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605096567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DhWy8pholMfQJkiIQJrVZ9r7WROXeO4d6XcEJNyaGT8=; b=IOLHLc6+t7axu0Q40iaE2HrjOpNbAZFEmpZbfr7RYN13v4u6tdnMYeT37tQsxLZcLmOPyU iptUm9Uvq1j22AEbb2QXWwksWQbQeY27Iq5hAUSUfB71HQ8Lf3f2Jk5BIjpBn/EZ2/prrq xpQnxLf/1wpeMVFZxqPkAyX7kKEtCWU= X-MC-Unique: U-2-vE-8MJmhN87n5OYqrA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DhWy8pholMfQJkiIQJrVZ9r7WROXeO4d6XcEJNyaGT8=; b=rhYsGWxtPTtlZsqu9rYuxNNmV/cjlmgy3iB039z23tJf3AEqQCYd5ypiHGdfT+OSs4 LhYi152l+tfMKudEHFoU19P+yXCiLl1ukYCVyhAw/vKXZJEcUVi/c3W6b1sEa1zb09ij ayHyR1Wyqey9XcBZ3IypknRpRF0Tb9whHXWnguk+7SpvcpfrL20x4r40SJ1HAoMT1XmM mLbzVha55RtSTqGcm0K3TJl5ZeYEboWpxHejNkM3tBV5Z7yiHGSKhjNAEQtwEKKhDtUS 3yhXoDuNSsIvrrtjqEoXLmIuqBmf8mu+eLYmq3YBFMC/EpOeNd6gaWHH78u4k5HmO7v5 xycw== X-Gm-Message-State: AOAM533nazbf2pHYgve/JhZ6eTMInw+YShzyZEAEiq/KP8Tk1CsnN1+J 3jTHzTm8lUFZfSCRuqIwZQ8sAPCNbmZdOBryZei5rJD6uSajnxq5KZmYu0PUA6CxM3/EDnH6Ib6 N39GM7t1+pE9JWw== X-Received: by 2002:a1c:1c3:: with SMTP id 186mr3703188wmb.39.1605096564458; Wed, 11 Nov 2020 04:09:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJziR1WVuyO/s1eaMfNt3JS97VllbCIjBCaUwwiB6m6SsvMbzRPclpgJwZQhgWM1x0CfVNjw1w== X-Received: by 2002:a1c:1c3:: with SMTP id 186mr3703172wmb.39.1605096564324; Wed, 11 Nov 2020 04:09:24 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH-for-5.2 v2 2/4] meson: Only build vhost-user when system or tools is enabled Date: Wed, 11 Nov 2020 13:09:10 +0100 Message-Id: <20201111120912.3245574-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201111120912.3245574-1-philmd@redhat.com> References: <20201111120912.3245574-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) It does not make sense to select vhost-user features without system-mode or tools. Return an error when this configuration is selected. Example: $ ../configure --disable-tools --disable-system --enable-vhost-user-blk-s= erver ../meson.build:755:4: ERROR: Problem encountered: vhost-user does not mak= e sense without system or tools support enabled Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 4b789f18c17..4fc58eb2c3d 100644 --- a/meson.build +++ b/meson.build @@ -751,6 +751,10 @@ =20 has_statx =3D cc.links(statx_test) =20 +if 'CONFIG_VHOST_USER' in config_host and not (have_system or have_tools) + error('vhost-user does not make sense without system or tools support = enabled') +endif + have_vhost_user_blk_server =3D (targetos =3D=3D 'linux') =20 if get_option('vhost_user_blk_server').enabled() --=20 2.26.2