From patchwork Mon Feb 27 10:32:57 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: 1748604 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=KecM5klw; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQH0H0YHvz1yX3 for ; Mon, 27 Feb 2023 21:33:34 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWaop-0000Fy-DO; Mon, 27 Feb 2023 05:33:19 -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 1pWaog-0000DE-1N for qemu-devel@nongnu.org; Mon, 27 Feb 2023 05:33:10 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWaoe-00018t-HB for qemu-devel@nongnu.org; Mon, 27 Feb 2023 05:33:09 -0500 Received: by mail-wr1-x431.google.com with SMTP id l1so2598396wry.12 for ; Mon, 27 Feb 2023 02:33:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=m2nY1zTRPRbQEspGXz7N1tgrBvNRnVFL1fwTqdC9gz0=; b=KecM5klwA4HxneGKxtXGaoqfmfrgiqzjeNtQD6NlFoIBNcBvJCaO8qJyl+0UNRlhmP 8SvCs1zHuiBlyuwibevl2ph7xVangeWmViftr3NXwoWpERD9HaemzjudoJOKA07xIxG4 bOlzfjdKaN0lzKRkpafLTRtGi7nR072TaobhuGxzVvhNfSdCV3YXEt1rBh9iRQmeqYTQ 4YAYaxwT8viwb3+EyDI+qob2f72CBDB46HMYXJi9m6u0zPo6//9D1hvyMWlVWUtfwxnH g0PEF7jJ/jgjbQb2F3y8B6tdgJbObQ5rbaE9oXgPYLZXoH5lv43JT4fTr/U/NJ4u+q2Z /v2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=m2nY1zTRPRbQEspGXz7N1tgrBvNRnVFL1fwTqdC9gz0=; b=Q4KgChNJwJBs7uN5lpxbYPErBKxnR8/ooMM2y2P0W8LWfqSpUxbZCimYJMAHiJGZ0Q VKuyhR2e2QpNRL5tIUdh91CWXWYQUiVwXueJXoWbJIT60MlBEB3Ltx6CVwX6gDc0q/3u aWHKzvKWcynJ6MJSsYJVJD2GE0fTWknAFLLZr9txFSnrHGh29p93Oj5oCLM67OLh+GoE HYojwCMHjtadjSeZziIDLyMg/vanv4xjoJjhdQeanW86QwlEt6RWiU4XcKQKDxInOn3Z 5/ZnwS/7EVrPCTxvmGHB+RqD3waDC56z4EZ/qzc6B71UYRekDo5jpHOlm8xTJD5I09hH y3vA== X-Gm-Message-State: AO0yUKU9D1i3/sT10AXYaJbean4hZnCvyfygq4IRew5FB/IMdXxO2G4u SvYeTenqEtB+1vKGCn+E24CL8c2pjaY8Z6au X-Google-Smtp-Source: AK7set8kTAR3iq6i+5NThlSnOi/fEVWDeziAj+eISzunJpONSZGJn84ZoBGm8gCJYspuZvS414jd5A== X-Received: by 2002:a5d:56c9:0:b0:2c8:7750:1769 with SMTP id m9-20020a5d56c9000000b002c877501769mr6926294wrw.68.1677493986792; Mon, 27 Feb 2023 02:33:06 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id c11-20020a056000104b00b002be0b1e556esm6582568wrx.59.2023.02.27.02.33.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 02:33:06 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alex Williamson , =?utf-8?q?C=C3=A9dric_Le_G?= =?utf-8?q?oater?= , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/2] hw/vfio/migration: Remove unused 'exec/ram_addr.h' header Date: Mon, 27 Feb 2023 11:32:57 +0100 Message-Id: <20230227103258.13295-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227103258.13295-1-philmd@linaro.org> References: <20230227103258.13295-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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=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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater Reviewed-by: Alex Bennée --- hw/vfio/migration.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c index a2c3d9bade..f9ac074c63 100644 --- a/hw/vfio/migration.c +++ b/hw/vfio/migration.c @@ -24,7 +24,6 @@ #include "migration/misc.h" #include "qapi/error.h" #include "exec/ramlist.h" -#include "exec/ram_addr.h" #include "pci.h" #include "trace.h" #include "hw/hw.h" From patchwork Mon Feb 27 10:32:58 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: 1748605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=GZFI1gok; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQH0b3b4Vz1yWw for ; Mon, 27 Feb 2023 21:33:51 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWaor-0000Ov-ET; Mon, 27 Feb 2023 05:33:21 -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 1pWaol-0000GF-Nx for qemu-devel@nongnu.org; Mon, 27 Feb 2023 05:33:19 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWaok-0001As-69 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 05:33:15 -0500 Received: by mail-wm1-x32c.google.com with SMTP id d41-20020a05600c4c2900b003e9e066550fso3502524wmp.4 for ; Mon, 27 Feb 2023 02:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=SMCVeQ0rUUkrihdTeaeuUllAhYFqzhnhzh04vyn+ero=; b=GZFI1gokd3RO0o1jJMcCBSmjoCbTw5u9YybjYgvx+wJF8Pi4UPq0Ltpx7+z8BiXadC aIRUIDDA0BPxB+I+A1UrlPuBAcoaTxz0O3m030qBx7dJprVr9+KewLWLiUwLguNFRv0c o1OHCBOLmUqqUn07fWtPuWo9GZg39UR/yHzQs8xk75V0F/DiDaVtwuWtNjcQfyiD1z6Z WXEW76o6CyZKp5k9OSPzEhui3D2C9y/YxRgscXR9yIdfQnCim98hJFdW8UDikdnOwPXQ kUU2fTaDLlFIqJBgAku4Af2rzmVSI6iFc0lC2UlpybW4mEOfd0TSHu9BDPUU7ajsXG35 159Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=SMCVeQ0rUUkrihdTeaeuUllAhYFqzhnhzh04vyn+ero=; b=A0betAij4GVbXQ1Kt4+5d825b5r7hrQrmrnP7E+1OjwvKWieNaqouTgxpTWcApmnM9 hGbQOVxV+rVgglh4qfHdChRXJmVFd5nWPmd4Ypmqcz/tMaMeZZnVjOMhjkj5WUEe5QEn PaEpt9Kco8b04MHdoAlwOGABk1HNqQvPMxnYAxW597NQUQlOqgS3OOOzWKEaZBfHWMPV B9reKq9hwrekZXK1hdairJ4UVoOiwV7XNg/K7mOyk/WVNjumkUBZfk5fzsWjHFE8vT6A +nORcK4HDsrTLeuWU+cfoXRGY2Azj+h2+Ol8kltSgiOOMB4I1EOr6Mj75xJO8lroIeHx 2g1A== X-Gm-Message-State: AO0yUKVS5ithrmnR2xnA8v24lq7pbCE1oZKpNxMkU1EA/Vx6/thD+jdZ MZ2rQg6jvwriwhvEnUVRZYXlisboJ1i56OTh X-Google-Smtp-Source: AK7set9DYZ8xF+46MH/YV7WpH13uDxrJwh7JgiO3LAgoqOzKHcXTz6HidvyL8hl9W5hQtC2azyE5Pg== X-Received: by 2002:a05:600c:18a1:b0:3eb:2de8:b72a with SMTP id x33-20020a05600c18a100b003eb2de8b72amr6866432wmp.7.1677493992759; Mon, 27 Feb 2023 02:33:12 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id t23-20020a1c7717000000b003daf672a616sm8519199wmi.22.2023.02.27.02.33.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 02:33:12 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alex Williamson , =?utf-8?q?C=C3=A9dric_Le_G?= =?utf-8?q?oater?= , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/2] hw/vfio: Build various target-independent objects once Date: Mon, 27 Feb 2023 11:32:58 +0100 Message-Id: <20230227103258.13295-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227103258.13295-1-philmd@linaro.org> References: <20230227103258.13295-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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=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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé --- hw/vfio/meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/vfio/meson.build b/hw/vfio/meson.build index da9af297a0..a1ed62245a 100644 --- a/hw/vfio/meson.build +++ b/hw/vfio/meson.build @@ -1,19 +1,22 @@ +softmmu_ss.add(files( + 'migration.c', +)) +softmmu_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files('display.c')) +softmmu_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c')) +softmmu_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c')) +softmmu_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c')) + vfio_ss = ss.source_set() vfio_ss.add(files( 'common.c', 'spapr.c', - 'migration.c', )) vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files( - 'display.c', 'pci-quirks.c', 'pci.c', )) 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)