From patchwork Fri Mar 7 18:03:27 2025 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: 871218 Delivered-To: patch@linaro.org Received: by 2002:a5d:64c8:0:b0:38f:210b:807b with SMTP id f8csp893958wri; Fri, 7 Mar 2025 10:04:45 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXpxKvQGGgSefNdss8bIK0btN6k0Qg9Sn/kNFI2rrsfm6Qf5/gHUq6mKAnQllH4FPrYQz+o0A==@linaro.org X-Google-Smtp-Source: AGHT+IH2KxjSF0JQ+7SrXUOlx/Y00CDFudY2IGPd6ProZ+v1GoFbFiwWZX3qFEdBrSD7h9+LRzId X-Received: by 2002:ad4:5f85:0:b0:6e8:f2aa:a8b0 with SMTP id 6a1803df08f44-6e900609684mr55547216d6.18.1741370685618; Fri, 07 Mar 2025 10:04:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741370685; cv=none; d=google.com; s=arc-20240605; b=P3CvHR2gjaqLaGm9RxFP8OrOe5UYWFXaKFXpsOk+65nsSWEubSNn2gLQSKHmyDZ+Dp vnmD91w96n3lP00UB3RmNCUeYy90+uZy0q/1ycAK9drgYFMicuFHWHuWeJvrcTEwcqvZ jDfRLMALOyVVLtLBsMFcokut5KivY+zldwvZy6Ou6QlOWUa1RmOJiE21DuLO2uLuA3H/ xL0k1PDpX0czIz7tCTjy4NwgNIjZGApdqxwX6nijuWqb5B2YXbDkkg+ffXMu/qp4FNOO Tatq+/Yp/g+w2VN+TVghK6yvvMmFYM5hgnuTer3e2xSMjYFABJO4UtzZVfe3/PBUoo5M DzYQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XjnP6suRKIDIvCyvQUHjHOPyIvdZR5e5AjhnJZaY/H8=; fh=ZyzqLhNGJAXkYZjVqygzIY1NON/Kumlz+Vm/jUj6bQE=; b=Us9nWrGfnAODwSYCFN5WWqYSmDqoxPXAc7zepu7UWjcXv+VZFbIHwBaq6RYP4gWr57 D0j6GRbhCopc8UWkuERIaROOQuR4kEjoh/cuYxNUGFjYRC2HEMT2055kVOobL5SBaG0n xOwZ7AropBUv0IFOFEeLZcEdZWlhYEEtcM6nM/zpJuwi4iHij9YeSEwRbD90nmyHCzSQ Ug1NgLtc73Po3C7hMA+kUZcsGHXkl9KP/HCbzTdWRHMSQEtvQ0M/SYIzLJXy5WkppbEw o518477QNiuv5E+xrQbLDNffVtwiG2HYPyiuOyz4PZPP8qUY5Ktesfqi8ub5f5oWd0yL ywNg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADQqm29y; 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-6e8f707cc51si37406486d6.51.2025.03.07.10.04.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 10:04:45 -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=ADQqm29y; 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 1tqc3S-0003iD-8T; Fri, 07 Mar 2025 13:04:16 -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 1tqc3K-0003cW-FY for qemu-devel@nongnu.org; Fri, 07 Mar 2025 13:04:06 -0500 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 1tqc3I-0001v3-3A for qemu-devel@nongnu.org; Fri, 07 Mar 2025 13:04:06 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-438a39e659cso12784405e9.2 for ; Fri, 07 Mar 2025 10:04:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741370642; x=1741975442; darn=nongnu.org; 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=XjnP6suRKIDIvCyvQUHjHOPyIvdZR5e5AjhnJZaY/H8=; b=ADQqm29yKQCszVkFXGO4CXbkM13hzo02mvojcPZ3OVPbTyTJVG9TZJrm+MaBXz6tqU 7dAXnijShDffsBscQRCRpX3X1VR9o2GnT3JU0J9KlU7ceBYb+rGMIT9Xm41Jrbx/CYQ+ pRNbP3uksmNHjMB72SXbF9W31mLdwO97dW7A7qYYsSD686NSlztD/P6iNGSEn96u3qqK OyGQG3Q2D2gOnDGaov1scoM6GyO6Ybbvvjx9hIbzPspyRzRSfQ8yIGRdyZVbmFPFc/8f Lc3Rf2jsVO49Rodq8WRkAxnwLEaBbTU49DKZfbtR3WXlFNR2JO9LmQvTsIIB880tlsTg HN4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741370642; x=1741975442; 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=XjnP6suRKIDIvCyvQUHjHOPyIvdZR5e5AjhnJZaY/H8=; b=dQYAp17Spmy/7275zbBjnnDqGvZvdHSrrE7lsSjYo0KgLjFuHDI0CGyUJCMPcCxaT3 AkgitiIAR8Hozcv+6pS8dWRPwM1uN6wnCC/LS8L7Pyr1/ffASOrn4KaJsIqScBujNjzy FDskTMBYlUi++AHMyhpvhg6dR+mw1yz2aeXn9i0STDXVnM9gAyoeikGQbthxeR0SngUa D1FL9XoLPanJMvuvgoaSMmjRHS+bOeZsbtuSKUFpYGA1OusYI0WeSaI/Aeir8bRl6vXX rJwYmSYhv7FBFeBTCsADwQW9yf3LQG/FA4XqjPHIK2rxZV0gS7YjGWusXrk7RtoZj+kn MrcA== X-Gm-Message-State: AOJu0YxNSBj9PU1o8xB+9+xdWYulcIzmstRnL2VxqkSvy8s1Mx69jYPb bIaEJgG2YDKwwcNXa9d3g3xd/tSzfBn4XFAqVtzDzFFgx3ZfW2s0EjZi7dBJXZkrZwp1g0j/0Eg pzPE= X-Gm-Gg: ASbGncue1uLM6NOCAASsFIm9FOAS+ynvDdYKox7OGBONdMnQKsQ1IVfMJxFFkYr2oWV K/8q4P9SXHcGVmYGjWg1Mql1/4UalnoeSrjiqpBOYg8NHiFBaEp2Hxqv4MAOZp4OnSKkNHU21lD xCxqlq8KJCBBVkUQb9hRB7gCxHd1eD9tTkX7e3G2kWR5mF/p+IbvxCAbMgdUfUT9/vYHYi9SbK9 PPTFHHuSFWmfs8EFwRMEi5sEZkyKoGFwsOsyg7k7YSm0Gq8zB/xqRxqy61qU1QEvEP0NXpCyp87 L1LEOrEkADpqAjf7XkQWusrJyHnIn643Qe9ieZEkr0eb00PqbosaqqX82bvyM2xfUjyHjbesWH1 dWwmKkaHKx+pedHpbceA= X-Received: by 2002:a05:600c:4683:b0:439:9f42:8652 with SMTP id 5b1f17b1804b1-43c601e1201mr33989135e9.17.1741370642093; Fri, 07 Mar 2025 10:04:02 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912bfba679sm6002314f8f.8.2025.03.07.10.04.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 07 Mar 2025 10:04:01 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alex Williamson , Igor Mammedov , qemu-ppc@nongnu.org, Thomas Huth , Richard Henderson , Tony Krowiak , Ilya Leoshkevich , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , kvm@vger.kernel.org, Yi Liu , Paolo Bonzini , Zhenzhong Duan , Matthew Rosato , Eric Farman , Peter Xu , Pierrick Bouvier , Daniel Henrique Barboza , Eric Auger , qemu-s390x@nongnu.org, Jason Herne , =?utf-8?q?C=C3=A9dric_Le_Goater?= , David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Harsh Prateek Bora , Nicholas Piggin , Halil Pasic , Christian Borntraeger Subject: [PATCH 04/14] hw/vfio: Compile more objects once Date: Fri, 7 Mar 2025 19:03:27 +0100 Message-ID: <20250307180337.14811-5-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250307180337.14811-1-philmd@linaro.org> References: <20250307180337.14811-1-philmd@linaro.org> MIME-Version: 1.0 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org These files depend on the VFIO symbol in their Kconfig definition. They don't rely on target specific definitions, move them to system_ss[] to build them once. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson Reviewed-by: Cédric Le Goater --- hw/vfio/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/vfio/meson.build b/hw/vfio/meson.build index 8e376cfcbf8..2972c6ff8de 100644 --- a/hw/vfio/meson.build +++ b/hw/vfio/meson.build @@ -14,13 +14,13 @@ vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files( )) vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c')) vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c')) -vfio_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c')) -vfio_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c')) vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c')) -vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c')) specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss) +system_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c')) +system_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c')) +system_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c')) system_ss.add(when: 'CONFIG_VFIO', if_true: files( 'helpers.c', 'container-base.c',