From patchwork Sun Mar 6 12:59:28 2022 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: 12770704 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5C7A4C433EF for ; Sun, 6 Mar 2022 13:06:30 +0000 (UTC) Received: from localhost ([::1]:45542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQqaj-0000a0-D1 for qemu-devel@archiver.kernel.org; Sun, 06 Mar 2022 08:06:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQqUe-00008j-PS for qemu-devel@nongnu.org; Sun, 06 Mar 2022 08:00:12 -0500 Received: from [2a00:1450:4864:20::42c] (port=39466 helo=mail-wr1-x42c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQqUd-0003mF-6f for qemu-devel@nongnu.org; Sun, 06 Mar 2022 08:00:12 -0500 Received: by mail-wr1-x42c.google.com with SMTP id n15so5204787wra.6 for ; Sun, 06 Mar 2022 05:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Wb7+viwSho19XAgJtTyRiyTuJeYdM+u977LfdFPHfVQ=; b=bBX6pq9iXxBS3TRdfa0xWO6jL8Ea+kWfanzGRRxKvYleD0cAIvOs/2KZ42j96Mlhm/ QtPwheVUQv/54dNXnZxGCyVBletmmzzGHNfYCw7S/PjtMkP9UlNhOrj2FlGzYi/C6OQd a+a967rXli+RT1OrnTABuKdAjHinMj93qD3xQvVAVQYjWuQlrHhZynb2Sjjz3MYTmAzZ 9Sh8rQSmcDPInmFT9YsBXrV8CSxgp0G2CIXN8hlXe9YqTTe5+liRv7Cl6EM5pYghU/v0 x8QI5aYlvRQW18wbSNrmBHCvM2DBnfURemSbLi8mFig+HG47Stt/7SPC20M5E1Or09BA kBhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Wb7+viwSho19XAgJtTyRiyTuJeYdM+u977LfdFPHfVQ=; b=R2zeuQH63mvQ34iEeVEmpKevdsTZ+njda0WZscc4Kr0RMgUf4eZsvIgmzR7IWuoWa4 sV1roKvjUK0mPm1GApeMOwE7ciPWr0bQF8h//KYmAhmHphS4PIDE35jlqDz3kgi+xZZU k2kcg0ImbRxEByJBA2MdnI9LLmo7bU77Hiph41Feg/1m968PyMhFSNEN5BB1uV6tkRAI aXirfzlsbogSyfxR8UChXn41b0eqD8hBfAQZiUkv0v6thPDfdCgErTvyEYd8uK6mjfdI 2wdWeDOM2MmnWmLXOfkdJh0WIa4aJv3poTOvFCprC7GnPa4dyH+z5O7mmJTeRyls7et5 RilQ== X-Gm-Message-State: AOAM531ZUl8eYWL9L8fXYQVq1B6rJ7vPcvvq7CPkQ6EfRJczr3gasotX VKaxUC8Kb7PkALe8Z9eDKsQqMZxGNnM= X-Google-Smtp-Source: ABdhPJzoUM3YUzwk99t7sEBa/K+FfniYd26uVvb6ygh3tEFJXjCobx1B5ohhAm+0SMA2aXmiwr0CPg== X-Received: by 2002:adf:e401:0:b0:1ed:c254:d51f with SMTP id g1-20020adfe401000000b001edc254d51fmr5170781wrm.49.1646571609225; Sun, 06 Mar 2022 05:00:09 -0800 (PST) Received: from nuc.lan ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id l13-20020a05600002ad00b001ea78a5df11sm10367911wry.1.2022.03.06.05.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 05:00:08 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 01/33] accel: Restrict sysemu stubs to system emulation Date: Sun, 6 Mar 2022 13:59:28 +0100 Message-Id: <20220306130000.8104-2-philippe.mathieu.daude@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> References: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Eduardo Habkost , Paolo Bonzini , Thomas Huth , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Paolo Bonzini Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20220207075426.81934-2-f4bug@amsat.org> --- accel/stubs/meson.build | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/accel/stubs/meson.build b/accel/stubs/meson.build index 12dd1539afa..0249b9258fd 100644 --- a/accel/stubs/meson.build +++ b/accel/stubs/meson.build @@ -1,4 +1,7 @@ -specific_ss.add(when: 'CONFIG_HAX', if_false: files('hax-stub.c')) -specific_ss.add(when: 'CONFIG_XEN', if_false: files('xen-stub.c')) -specific_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) -specific_ss.add(when: 'CONFIG_TCG', if_false: files('tcg-stub.c')) +sysemu_stubs_ss = ss.source_set() +sysemu_stubs_ss.add(when: 'CONFIG_HAX', if_false: files('hax-stub.c')) +sysemu_stubs_ss.add(when: 'CONFIG_XEN', if_false: files('xen-stub.c')) +sysemu_stubs_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) +sysemu_stubs_ss.add(when: 'CONFIG_TCG', if_false: files('tcg-stub.c')) + +specific_ss.add_all(when: ['CONFIG_SOFTMMU'], if_true: sysemu_stubs_ss)