From patchwork Fri Jul 7 15:17:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 700032 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp3929285wrs; Fri, 7 Jul 2023 08:18:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjq6Rey4U5GqWsFDFa1Cw4mTdZA1kWazC9SRA9BxPK6nhZ4UwTVBOodE+rPzA/qOweZAgv X-Received: by 2002:a0c:e345:0:b0:636:64e8:a3a6 with SMTP id a5-20020a0ce345000000b0063664e8a3a6mr4769349qvm.62.1688743124908; Fri, 07 Jul 2023 08:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688743124; cv=none; d=google.com; s=arc-20160816; b=PrNOyhgVwQ6BTLlGgTzB9wmi7l49cqTq1NcYPde7M790PzfcpVbccsmpSM8NrbJvjX QCilVUBWNNR4coa8VXWVLy/FTtgT4/n9HPbLOvdXaQnnZB8iOcqlPB0jZUcCg959mIJI o7F7o4aHu3ODyMMmShMKkiUG9x7uU8M/cKrz4ZoHL/RmzMIYB3iCcahN4mclYJdKSsRP AhImDgvBs1WEdgIQY0KgzoDLK8ZF1wGlBHFeY6jTr6oLX807gxpyMpqqfHa/zWD2MGPT u6wvVzLdDfMN68XNRRy7IT0vhAfubURKaoqLayUS1KFOJjvboPRlfZ5pIVybMTZ2sCnO lELQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TVD90IOvXxa9gbrEDa2+is9EMTWQ2Ss4OFWOQoPhb+k=; fh=aRxBrgA7CrSouwdXoZUw1AmyeDG9xQchBaflhNgNTHQ=; b=MgQW45W2De7OmnZgkh5vpOMZSPos0NTWA4Nt/FiAmjcCE5H3wANgfkd05lrShDnI8r 8lORklUcMJXBAThd9LVVCIzP2IZR0PTet5+zUTvnn4FipxpR3xJp+cFhNqEbPaRa7yIi bl1IuxbeFb9Kcr1dR+z7hhdDb+su+b8G4UshQWee72uG1WDNEe2K9nZn064ah9MS1m4P G4iAjAVEFT1EC4K8KUY5fYqnwBkjGuPbvzLWHLY6Bu2cEQNuG5hk7WuE1Amer2CooXsT BF5wRn9DanDOknxmwdBCh8HGA3BrPAa1d/tu9i6LWEOWr0lIB+RXvAgzy2Zh2T+6Vfie 7WGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jlG1mIAb; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d14-20020a0cb2ce000000b006262e4d428asi2634078qvf.191.2023.07.07.08.18.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jul 2023 08:18:44 -0700 (PDT) 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=jlG1mIAb; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHnDg-00014m-Uv; Fri, 07 Jul 2023 11:18:04 -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 1qHnDe-00014S-ON for qemu-devel@nongnu.org; Fri, 07 Jul 2023 11:18:02 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHnDd-0000kK-7g for qemu-devel@nongnu.org; Fri, 07 Jul 2023 11:18:02 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fbfa811667so9822025e9.1 for ; Fri, 07 Jul 2023 08:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688743079; x=1691335079; 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=TVD90IOvXxa9gbrEDa2+is9EMTWQ2Ss4OFWOQoPhb+k=; b=jlG1mIAbb6Amm3EB8v43W3s4wHOWt1Gl8butodOCqp4W2VlLjD5nQJNnH9Iv1ui4fT FprcjY/xPtq5eTLKBKMbOrYgkuFxiD2AtCyU5TWEQ9cr5sGdUPGbr2pLzkZVBJzfZ4Ok NGexL8fKFvNVi1mi68Zdg754bui5lhJDrj0pZ/A3z2vhUkHq/FAEA+OukKRB9lqVwngC BEudfjeR3e5g1CCPYrMQWyBa4RTdDy7MltP3kTCh1wAX3ZBVQ0a3Bdnt07QL9P9fgbUl kyFI/JqVeWByz0juqjNGz7pOH8WhXJZGdrxmKe/xaetYtdOAcix/Kll1nUgbDHxILWRQ 5oOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688743079; x=1691335079; 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=TVD90IOvXxa9gbrEDa2+is9EMTWQ2Ss4OFWOQoPhb+k=; b=ajIGjKHhqLX8tE+W25cOqY3uqTCn27k3xtJnSKsIdViccC83yw6j+zwAkssa0qWeOZ 1C1cXo4nl+0ZVJS4V7VeMv0VEQvHziUrE7wV1uourrKKdbm4imArR4PNBip9K3PjGOw2 guBGJ8JT1UFh27gZxxqoKUdMKh6uKyQt/6hBxqmalsVdfLBj4c+rhQ9PHKL3Ct+A+735 +zx7+xdtpExRUaWo2onXteqPwLYsrpFFsDuzqQOKSmOcbcIbDic6aHW+RS6SQdQwpgTC tM3atfXatoetm7s3Tu5JnWgpWLysN+1F50j45ESQ+njKbR2b5mBWAOBNQ7wkWDcUtGrV Oidw== X-Gm-Message-State: ABy/qLaUsdZ4xIkalCphU7DSqwXaNQ/PWXs9rIr948WGCA/umhjER48R AuZu4cqyHQmC+vUHHIx+iHzOqL8gAJZQpHMbkIw= X-Received: by 2002:a05:600c:4f85:b0:3fb:ebe2:6f5f with SMTP id n5-20020a05600c4f8500b003fbebe26f5fmr5719820wmq.13.1688743079656; Fri, 07 Jul 2023 08:17:59 -0700 (PDT) Received: from m1x-phil.lan ([176.187.215.192]) by smtp.gmail.com with ESMTPSA id y18-20020adfd092000000b0031424950a99sm4691723wrh.81.2023.07.07.08.17.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 07 Jul 2023 08:17:59 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , "Michael S. Tsirkin" , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 5/6] hw/virtio: Build vhost-vdpa.o once Date: Fri, 7 Jul 2023 17:17:18 +0200 Message-Id: <20230707151719.70613-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230707151719.70613-1-philmd@linaro.org> References: <20230707151719.70613-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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=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 The previous commit removed the dependencies on the target-specific TARGET_PAGE_FOO macros. We can now move vhost-vdpa.c to the 'softmmu_virtio_ss' source set to build it once for all our targets. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/virtio/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build index f32b22f61b..900864c1be 100644 --- a/hw/virtio/meson.build +++ b/hw/virtio/meson.build @@ -18,7 +18,8 @@ if have_vhost specific_virtio_ss.add(files('vhost-user.c')) endif if have_vhost_vdpa - specific_virtio_ss.add(files('vhost-vdpa.c', 'vhost-shadow-virtqueue.c')) + softmmu_virtio_ss.add(files('vhost-vdpa.c')) + specific_virtio_ss.add(files('vhost-shadow-virtqueue.c')) endif else softmmu_virtio_ss.add(files('vhost-stub.c'))