From nobody Mon Feb 9 02:25:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1564049937; cv=none; d=zoho.com; s=zohoarc; b=Txf8TR5GhBKVBp66+brCipSsBforWI2oLgtpfMleLXFjhvwekxMhukchXgkJMEZs/PNqdqsJ2ip1jB5G9/SmAKe30dDt56T6alOEjUoSBbl0Zpu3UBC3bdpZ7VNFQr2A9zj0NX12qXCEtqhYWpsbEsQ9n4EbHcXVZljNhwm4C+I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564049937; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=SZ4D3+HH3eDhknXhzXHTgbACfR8HEgUukfvXq/VTaVI=; b=W6AHtr03EGJ0gAUPYgUtOXjEsjruL596t/UFnSNNUSj01tDL95aCyODyB6ueyZQByhjYUoOgfDzzYJq3OTc/iYFcbNguqpN5hQOlfOgVBeBsMnxs8u1radGWUHspY99TSzsaOXBlmYG/n40d6PbglIZqwHG+8/s0IhEvFDV8rwE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.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 1564049937345223.83713475086745; Thu, 25 Jul 2019 03:18:57 -0700 (PDT) Received: from localhost ([::1]:58398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqapr-0005qW-VO for importer@patchew.org; Thu, 25 Jul 2019 06:18:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52623) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqapf-0005Rp-VN for qemu-devel@nongnu.org; Thu, 25 Jul 2019 06:18:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqapf-0005wE-0D for qemu-devel@nongnu.org; Thu, 25 Jul 2019 06:18:43 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:51629) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqapd-0005v3-P1 for qemu-devel@nongnu.org; Thu, 25 Jul 2019 06:18:42 -0400 Received: by mail-wm1-x343.google.com with SMTP id 207so44455572wma.1 for ; Thu, 25 Jul 2019 03:18:41 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:6468:f312:cc23:f353:392:d2ee]) by smtp.gmail.com with ESMTPSA id b2sm64222855wrp.72.2019.07.25.03.18.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 03:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SZ4D3+HH3eDhknXhzXHTgbACfR8HEgUukfvXq/VTaVI=; b=HoXiGuZaaTqKEjfLTvfkzvEjriP2xdiSSCBKOOqmNg/gIZrU7WMgaglWeInEp5DENL 6BDkWPIFbJsKT+aRsnq1k/brF17h1W/PxP+VkalGNd6F80lOYhz92PgVHTASk5TxWPuS 1WnXZ7ZKvjb0sm2ZJi+wCUJ/jfmdb9eyyrgw674gH94JfvW/CQlPH2NR+uxwwchiNmBO VgMafPzpzq+j0/tjQ+SmD18GQH34rkpTWir19r60ryrokzK40xhov0VgPsTcGX2HvCdJ jc6F8xw4QrfCPDkplbRo5YpboGw46Se/PCTMx3s9JFD+FR+1jZXJ6vljiHCZalJq4H3X UcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=SZ4D3+HH3eDhknXhzXHTgbACfR8HEgUukfvXq/VTaVI=; b=ZWfGONzcQHmIehx0t+vc+5b01TAB8OfEqUNydcQ5FJrtxFklhX00TXCEk9b4jcFenM PRZVENS7Rn/e4YfFKO91J4xkHrHSGiVR6PiQN40YXTkvT92pHer96lC1gofcKkft/h5f LS2boOacdC91Mp5raruDBcrgbq5D56BatKzeNvbp+dW7CABnPxZDG4owuxOBLcRLK0TX fP1druxMKQ2O+rnVsiO1fbtJO2uI/E41h+dnCJZT/oBrJMjVvgoeWy9nPWLy07sew5vs fnTBnbivrW69VUq3y607YMFV7Vgc6xzdK3a3RfHcF289aYylNTEzG6tL0aO7r/bH7g4+ Domg== X-Gm-Message-State: APjAAAWkDVcY3ZK1ConCDfneQwuIDZ2/DSHWSt9IRQz3wT26z4d+DoN8 mJHSnMKOFXTPUxB+fZSpcv8cL7hgg1Q= X-Google-Smtp-Source: APXvYqwNvuoD8WaD77UU8mibxyNAndTbESDtY4BUMCuzQIghDfkiLn+AdtLeo7/n7SRxkSCaAyIJZg== X-Received: by 2002:a1c:8017:: with SMTP id b23mr79113894wmd.117.1564049918716; Thu, 25 Jul 2019 03:18:38 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 25 Jul 2019 12:18:36 +0200 Message-Id: <20190725101836.1273-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH] 9p: simplify source file selection 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: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , groug@kaod.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Express the complex conditions in Kconfig rather than Makefiles, since Kcon= fig is better suited at expressing dependencies and detecting contradictions. Cc: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini Acked-by: Greg Kurz --- Kconfig.host | 1 + fsdev/Makefile.objs | 2 +- hw/9pfs/Kconfig | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Kconfig.host b/Kconfig.host index aec95365ff..bb6e116e2a 100644 --- a/Kconfig.host +++ b/Kconfig.host @@ -28,6 +28,7 @@ config VHOST_USER =20 config XEN bool + select FSDEV_9P if VIRTFS =20 config VIRTFS bool diff --git a/fsdev/Makefile.objs b/fsdev/Makefile.objs index 24bbb3e75c..42cd70c367 100644 --- a/fsdev/Makefile.objs +++ b/fsdev/Makefile.objs @@ -1,6 +1,6 @@ # Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add. # only pull in the actual 9p backend if we also enabled virtio or xen. -ifeq ($(call land,$(CONFIG_VIRTFS),$(call lor,$(CONFIG_VIRTIO_9P),$(CONFIG= _XEN))),y) +ifeq ($(CONFIG_FSDEV_9P),y) common-obj-y =3D qemu-fsdev.o 9p-marshal.o 9p-iov-marshal.o else common-obj-y =3D qemu-fsdev-dummy.o diff --git a/hw/9pfs/Kconfig b/hw/9pfs/Kconfig index 8c5032c575..3ae5749661 100644 --- a/hw/9pfs/Kconfig +++ b/hw/9pfs/Kconfig @@ -1,4 +1,9 @@ +config FSDEV_9P + bool + depends on VIRTFS + config VIRTIO_9P bool default y depends on VIRTFS && VIRTIO + select FSDEV_9P --=20 2.21.0