From nobody Wed May 15 01:25:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1671548330; cv=none; d=zohomail.com; s=zohoarc; b=jNuPG6+dvYY/zqhxXRacehBFn87+R6N6t86U6tOut8HtKpMYUz8RErgPc7w86fvkLPsGsQDwXaOPOtgt2IJxPH+wvPnLjJga5TN4bWEQs5ACBLCzNvMTXBtiuDPqV+cNaSxnRqNusO+/o1vVO/gOZD6ewQDciDLatIRKX+dZSG4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671548330; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=F7rSi5GEIaRyq3At2o8uQZxqXo1Ikt+p25AbGddVS60=; b=LJh4SnxWMYNkBOsVXNMA+cglI3/b08/uMLFH9MMGUAD4W7NsA1ZU507NE7M2Kk01AubV4EG2neUidkCLm7GbB6LSbGIyiI0q2mgiAuz7lZhGwmDa3vpfu/m2W4l6KiWRlkOPbXE2fj+qMLmw5CnW1JMJLHpuLvdui0vimy23t5g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1671548330391239.87635804602974; Tue, 20 Dec 2022 06:58:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7e2s-0006d5-DI; Tue, 20 Dec 2022 09:56:42 -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 1p7e2n-0006YX-DS for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:37 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7e2l-0004hc-Ut for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:37 -0500 Received: by mail-wr1-x42a.google.com with SMTP id m14so11971892wrh.7 for ; Tue, 20 Dec 2022 06:56:35 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id e34-20020a5d5962000000b00267e918d1ecsm1248570wri.24.2022.12.20.06.56.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:56:33 -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=F7rSi5GEIaRyq3At2o8uQZxqXo1Ikt+p25AbGddVS60=; b=aTuNGlA9d1569Np6TRMiLGFNJNqY0Nnzh+YUdRS9jjSSMJo3DPHm++aNfd5yPo8HDa nNsFdQTtwNrzuEhr0mqgqSwt8ijS8X6O0sZ8zX4IkYXC2zXtErinEzG9UPMvOXc7UjaE uOlkN8KfT3hiTUBUVfLr1GtNJo/Vce5dr1nyD+cyuZwjHAiUVOwzwJGwzh54pgTTltAj YDdjPa9m0qMOqQDguP5PApXGZ6brLUR9xnYyZ8+S+NslqhJL0C9paY+U0r5wlZrg6Lqw MqitEIMMiUx4ShK87CuvMBZWEORUNj20rhYlvOA2/JpFa+HcXnjl/38t4vrIquHbRguj 1nxg== 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=F7rSi5GEIaRyq3At2o8uQZxqXo1Ikt+p25AbGddVS60=; b=udVRewwfXbrmSKO5nc4/CVJaX/dtTMXUFabsCTqTDWlOQwVa3WqkUQ1fT6VTGiyBW2 rt8AKHk9k8YcoGgepqhllHRgdeop02vmCc7LH5rzI31wplAjhZWNYyolaLNzecrc4y/W pWpGkvJtyAqL8kUnqaqK43mPK+300v9MWZV2VSKd+1YEAiyV46qL3PAC5FKnSc4qYkQA RBA/3R2ykVNHsUKOobfu3CwFEah5GHppoZ80RDgRx3elF8dM36e4Pn6NIfs12VRwvJvc zNu1UDQhxhmB5h3ZEipw543lbyj8ztjlXfZBokg9rBnGu+qoa8Eoz9VCAxqQb+AAKyN0 rc/g== X-Gm-Message-State: ANoB5pk1zOwZwcbVR006peORCBE6ac6Ju7HCXeE84wrVjm1S/CgGbljl yanLd4M5Iea6eglDBmDmWxVs1xNKHkJfXMPJa3Q= X-Google-Smtp-Source: AA0mqf6lKpe6TMg5CnPyfHJOwVNWDBjK/bEdPntm5e+wy0YJFhczimpIQSKF2NSP+SrYr958gBdH1g== X-Received: by 2002:a5d:6dc3:0:b0:247:4802:9435 with SMTP id d3-20020a5d6dc3000000b0024748029435mr27310214wrz.5.1671548194413; Tue, 20 Dec 2022 06:56:34 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Ilya Leoshkevich , Eduardo Habkost , qemu-s390x@nongnu.org, Song Gao , Richard Henderson , David Hildenbrand , Xiaojuan Yang , Thomas Huth , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/5] target/i386: Restrict qapi/qapi-events-run-state.h to system emulation Date: Tue, 20 Dec 2022 15:56:21 +0100 Message-Id: <20221220145625.26392-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220145625.26392-1-philmd@linaro.org> References: <20221220145625.26392-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1671548331555100001 shutdown / powerdown / suspend_disk / resume / watchdog are events irrlevant to user emulation. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Wilfred Mallawa --- target/i386/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/helper.c b/target/i386/helper.c index 0ac2da066d..dcce27bac1 100644 --- a/target/i386/helper.c +++ b/target/i386/helper.c @@ -18,12 +18,12 @@ */ =20 #include "qemu/osdep.h" -#include "qapi/qapi-events-run-state.h" #include "cpu.h" #include "exec/exec-all.h" #include "sysemu/runstate.h" #include "kvm/kvm_i386.h" #ifndef CONFIG_USER_ONLY +#include "qapi/qapi-events-run-state.h" #include "sysemu/hw_accel.h" #include "monitor/monitor.h" #endif --=20 2.38.1 From nobody Wed May 15 01:25:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1671548280; cv=none; d=zohomail.com; s=zohoarc; b=LLfDu316+ZMd3Hpu1fOMvQbhIvEv+wbqpJ3Z1q9Rcu5U0sN7JL6JlcVhZd4Fp0VOMECKAQM/om21npzjBUb7exzlUz3s1vwyGbEEaC0CjAJwkoJbCDd+70I0SuSg1e/GZ7NcO9mPuOCe2YkDqTbTRyVfL44puYXqAzHCYeiMonQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671548280; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+t/6/U4dDtWFou9lNwrmgxL5oJxAfHUoXJOlrPFl4Zg=; b=i0AozgSBXFHYxB6yZRIjh+WLkugCoWjNh4z2avRUqku1OLZ+Xzm7jw2Zvzu5PWIEDTLrXndY0za9HvdyvZBWJ8t1YebpvmI7pkLCIjnBkFyA/Ex03eiw0iURbgjUNOcqe7e1DSiCnhMWE5VKN+6l0o64uIktxtRQ5a6lp8itw4k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1671548280676817.2571672819214; Tue, 20 Dec 2022 06:58:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7e2u-0006hb-LN; Tue, 20 Dec 2022 09:56:44 -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 1p7e2t-0006gI-Ux for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:43 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7e2r-0004ie-Ve for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:43 -0500 Received: by mail-wr1-x42d.google.com with SMTP id bx10so12037428wrb.0 for ; Tue, 20 Dec 2022 06:56:41 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id b4-20020a5d4d84000000b002423a5d7cb1sm12795546wru.113.2022.12.20.06.56.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:56:39 -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=+t/6/U4dDtWFou9lNwrmgxL5oJxAfHUoXJOlrPFl4Zg=; b=nwDkckVmD/YA+j56y9O39Fz2zj1rWbTrGEBLH1RkjSbaQpjmGdQ+A2wKaOTyzhVnPK pYhA1Me7ltB797WF4FGEXvYxTVrtRywUXkvUfsULBqncuzVrh0sAovaz2YIctjvgDlWU lFohIeEaTqXOrtQ8xMGgjiAm8jLJsLPmOEU/n/vicVuMboHdqX9z7SwPL+DnyFKZoq7W z7+oxG92lXyemCLp85AX1n2T8kVd5N/1ys54JLUVobhOuqoRC1vsSMoMa6o5F/MHhLmo JmwTHExg550b90Nu/X9UfT8Mx1vnvAmQCFs80A3tqyU2d/29oG3PJzqNm7MOWGahDshB g8Yg== 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=+t/6/U4dDtWFou9lNwrmgxL5oJxAfHUoXJOlrPFl4Zg=; b=gF13gOU7NaNhC/5O938hqR0izIaUX3ah9QV60HgTraNWMVdPwhrLdkS8wkX9iF7EUz aL68uXVvvpAF59mRYnNVFaPIY/hqeJ5d+kBWhDLrth3ABt5dL4uH9oxXmy0vMIkFB5G5 E39qv7s3IX01TPWAaw4GQUFhlFONjnQSAgSnq5ROma9jjreuMKkTSfbGMHwuo80xX3xX kJxcMb8WHW/MFFJPb/fez15b25if264BN2hjiUmGj1EwqbJ5sk5Y9BruxFabBBVKjOdZ a+JqRcCx3K9GQdgC4ADzcjjFTNFYovEHtpAYm/BfdTeHqJQjGWbFs/38MuxubjOj5QIy xW0w== X-Gm-Message-State: ANoB5pmcKyY/olE5NEgyJnb4T0VrpwNm/0IZsAy3oDqlpaaa6XGK5c2X gSUh1VNIQ4LO6rb6Jv3yWkGjr7M1MAArWGVR7zk= X-Google-Smtp-Source: AA0mqf4KNnke/QaREkpgK6qsBmv2C0m3twDdqpVhav3t5IilQzZOqMmYeoEt1wSFNwmRzpyPJOSpbw== X-Received: by 2002:a05:6000:795:b0:242:7676:689d with SMTP id bu21-20020a056000079500b002427676689dmr26472968wrb.19.1671548200362; Tue, 20 Dec 2022 06:56:40 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Ilya Leoshkevich , Eduardo Habkost , qemu-s390x@nongnu.org, Song Gao , Richard Henderson , David Hildenbrand , Xiaojuan Yang , Thomas Huth , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/5] target/i386: Restrict sysemu/reset.h to system emulation Date: Tue, 20 Dec 2022 15:56:22 +0100 Message-Id: <20221220145625.26392-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220145625.26392-1-philmd@linaro.org> References: <20221220145625.26392-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1671548281186100002 In user emulation, threads -- implemented as CPU -- are created/destroyed, but never reset. There is no point in allowing the user emulation access the sysemu/reset API. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Wilfred Mallawa --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 435980dd3a..91961359c7 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -24,7 +24,6 @@ #include "qemu/hw-version.h" #include "cpu.h" #include "tcg/helper-tcg.h" -#include "sysemu/reset.h" #include "sysemu/hvf.h" #include "kvm/kvm_i386.h" #include "sev.h" @@ -37,6 +36,7 @@ #ifndef CONFIG_USER_ONLY #include "qapi/qapi-commands-machine-target.h" #include "exec/address-spaces.h" +#include "sysemu/reset.h" #include "hw/boards.h" #include "hw/i386/sgx-epc.h" #endif --=20 2.38.1 From nobody Wed May 15 01:25:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1671548257; cv=none; d=zohomail.com; s=zohoarc; b=N3GJ8gb+6zG0Ujlpjim+0rySQXef2uB7RFLAY33jB7//yja02qXQkzxUSesQaTOhSTKgFdoFhEeR4itkKb1mqiDfzRUvY7H+q+zjYEAEOKdoqIE96v8nulIzQlgmaqet5PMfUIrD+S76Gn6/m2bHg+i9mvDB9xij7ivupNU168E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671548257; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=KTQVfyiY+5oU5Xtk/+Ze+nTz1jeq6EB/aAS/3jJOPVI=; b=QfqG8sTH9L4zBYsTxxXy7O5rEyGYgdgxhc39q3km4nlfWE7QZ9QdqG3XCDV+hoFTgFLyosczE4QzLJLlYBvkU6scQQLrfGDDjwbNNMfanEaHyfyNrgPGwq75otBhJEgFMvMRfSQvBW7d2WcVsVMXu5dGn9EF1hoBTab1KER20ts= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1671548257855879.9361189249416; Tue, 20 Dec 2022 06:57:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7e32-0006oV-7z; Tue, 20 Dec 2022 09:56:52 -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 1p7e2y-0006n4-VF for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:49 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7e2x-0004jd-Fu for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:48 -0500 Received: by mail-wm1-x329.google.com with SMTP id c65-20020a1c3544000000b003cfffd00fc0so11337131wma.1 for ; Tue, 20 Dec 2022 06:56:47 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id v2-20020a05600c214200b003cfa81e2eb4sm15828948wml.38.2022.12.20.06.56.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:56:45 -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=KTQVfyiY+5oU5Xtk/+Ze+nTz1jeq6EB/aAS/3jJOPVI=; b=Jo7oFkhIu58yclZNFJIOe2SxiE7d7ZQQphiQm8NYDReZadCRtz3pwThdg+329eC4WC ipppJcpGIet0nwT7F/18FiDNwcLkU9UUjFjZnmJdAJ8cT2IFj4leEodHXfDU7CCpGyTF Hl5PKCXNbeyRwio1kYhcDOOeFMjeOLCla4mgEsZImCX9DrgNvMkdcPGIBU4supzA2To/ UUf/E1Bah1X9GjsokTK8QJnXD82xWBRrAXzN5IwQvwLkmLTKOP8d1wRfzd9H7Ao3Ta9U 3hMbpvSQfKYO62iiOUhuoVBmyNfGs5j7Pdqm+jvv7BVGg1F5Pb10z4blIyATs5xJXubA 8dnA== 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=KTQVfyiY+5oU5Xtk/+Ze+nTz1jeq6EB/aAS/3jJOPVI=; b=rJseoiHLyt3x8WXeDorSSs1KyL4OAIcyL/Bli1tVe39vFGxY9XPwdk8UXw/URVXO9Z EhscSwdty8YjtOuSmzUWh59N5udiLKkSFCBSIWYuWACqrVmYLOSRNHsVnKaeVG33YxDi I6k1tDKPHXyvZdBMFDuh6gXww+LFtKCTRmEygVOlsuo9TwiJFPYRaB9y+FtXK0dxnj+9 cTWOGsPXXLxT09AvGyafwwsvjcz6HZd2PzFmLHJzecobyGUUio7RLIVl9z8YfgohCNgz qwrjjgrValffSbIHbT4F3ADIRBXPx1EwNzJ5nYznMD/8qSLwueKcuVirNH2HCXaA+hfr 41Bg== X-Gm-Message-State: ANoB5plXDsvVt0kFyQBSIfW/NHkycaUWoXU+890i1i/hL60o7fBeLTjD 8VLPbUCKodFuIcN9aBdbgtP10aI/W6gioJ7FZyk= X-Google-Smtp-Source: AA0mqf5oOYdqDWaLIZHFAYa368zAnI71VuOl8+rnI/KB3X6qsMSxJgHu+v30i+vzQga4HzlC0fXE0Q== X-Received: by 2002:a05:600c:4fc8:b0:3cf:b067:4142 with SMTP id o8-20020a05600c4fc800b003cfb0674142mr35408720wmq.4.1671548206007; Tue, 20 Dec 2022 06:56:46 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Ilya Leoshkevich , Eduardo Habkost , qemu-s390x@nongnu.org, Song Gao , Richard Henderson , David Hildenbrand , Xiaojuan Yang , Thomas Huth , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 3/5] target/loongarch: Restrict sysemu/reset.h to system emulation Date: Tue, 20 Dec 2022 15:56:23 +0100 Message-Id: <20221220145625.26392-4-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220145625.26392-1-philmd@linaro.org> References: <20221220145625.26392-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1671548258639100003 In user emulation, threads -- implemented as CPU -- are created/destroyed, but never reset. There is no point in allowing the user emulation access the sysemu/reset API. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Wilfred Mallawa --- target/loongarch/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 0fb853d915..441dfbab74 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -16,7 +16,9 @@ #include "internals.h" #include "fpu/softfloat-helpers.h" #include "cpu-csr.h" +#ifndef CONFIG_USER_ONLY #include "sysemu/reset.h" +#endif =20 const char * const regnames[32] =3D { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", --=20 2.38.1 From nobody Wed May 15 01:25:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1671548280; cv=none; d=zohomail.com; s=zohoarc; b=EGOnyv1OnFn4G3ahoHwR5YCJf/Er7P492qJrSIYh3eqDAAPnbCTDH9vbhPSs/QhcUpHahZgYhQS9tKxdRu9aB8ZYBiKi9/xYiX0AGx0ub3u8rLJ5LtTl4V6Exsiy6TMCySw5wH2DU9HrNv4i0yMbaJT5M3FWou0+8pjeLTdUqCw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671548280; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TWYX+bkDoAyS5D4KoXYEloAhrykg6/BssqVR4T1fIB4=; b=be3g8smZRBVTza8wU9urWypaeZesn9zB7soJS9YkPmh8cSh355IbpWcYqX1Q/MJmU8/gLi1DgRQvJbJ4LexoaE7l1y41C60zBZgHRNMixIvLelRg6209sRCi/xGhzW/otloTedp4wxOAQF00KBxa7bNbpX77hpgUK90ELHt9AdM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1671548280772618.3202494370348; Tue, 20 Dec 2022 06:58:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7e39-0006sz-O5; Tue, 20 Dec 2022 09:56:59 -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 1p7e35-0006qo-Ll for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:55 -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 1p7e33-0004kB-Jg for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:56:54 -0500 Received: by mail-wr1-x431.google.com with SMTP id w15so11968362wrl.9 for ; Tue, 20 Dec 2022 06:56:53 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id by14-20020a056000098e00b002366f9bd717sm15348269wrb.45.2022.12.20.06.56.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:56:51 -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=TWYX+bkDoAyS5D4KoXYEloAhrykg6/BssqVR4T1fIB4=; b=BWYUpPKXnvShEs0Oxzgi4gu5/EkBNtF4QGPbo9bocTcyBeRykHKTzEd1jJtKMG4T5Y eA3akbqhPFUS26BXPHvNrGv1y8Sz/ukl2XAtEAurmvMGy3F5rEY2PWFpLY9OqUQQ/WdU iOWn+cXUcI1omJfkQWuwPjE/u+W4A639SOg0Uu22Z4eSJQtD9071uB01PJyurDBnJiRs FgDonSF97cI/TE8ntMgvbBOC15ICHf/1f7Benf86373c7w2b1uxkAq9J6L7J9EonXNfu HQ9/nDg583oKC3HsYJZG54Yp/OWKAt88Wt6H4l8lUst0lW5aDTiBZRdFG5myTb2GNWgd IJaw== 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=TWYX+bkDoAyS5D4KoXYEloAhrykg6/BssqVR4T1fIB4=; b=mqBaRAFDrgWRCSPG3w1njdiJK7HOmIYt2s9IeY5KQ0HZugDpQHC69KAD8AhVV6HBfw 317tPKG+s7tib0A09VsAc+Kz1Fp813GFs8kUFz8uEXQByargadJGYsJdiAuEkDs8+lSp umRdHoIisdQrATon6mD9kvE+BmQyrXmL0Gc2cqorh2zqBCF8eFynHrVjOkSfyBdaHCh4 T2SyAEFVLQ5UJcWvnIZ/4Ln/6uoND6DCBGfM1BO9UO7dQNocIJwMYtCmINA128/VQk18 oLqM4HbLxEkFz/GAsQOIl+TdWli8VEGHg+b0rq5Ou7pqpOEZtLftkGGz2aQGNM3Q4s+x latg== X-Gm-Message-State: AFqh2kpi3clcUMoqk1ILnqAGmYIwUOLc2s6nsgmg9MCe+0bQYD0QGzUC +iA+IkGzl/b9ZFqY0kaH2K0ihLo70cytCLWJZiE= X-Google-Smtp-Source: AMrXdXuoAu4ThmY+6P0bDNS/j7BAdzudrgi9ZJmI7X8yxSmsEVFX9yioNUFeAJfcmg1BblUACWBSaQ== X-Received: by 2002:a05:6000:1f1c:b0:261:d8be:3046 with SMTP id bv28-20020a0560001f1c00b00261d8be3046mr4608817wrb.0.1671548212133; Tue, 20 Dec 2022 06:56:52 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Ilya Leoshkevich , Eduardo Habkost , qemu-s390x@nongnu.org, Song Gao , Richard Henderson , David Hildenbrand , Xiaojuan Yang , Thomas Huth , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 4/5] target/s390x: Restrict sysemu/reset.h to system emulation Date: Tue, 20 Dec 2022 15:56:24 +0100 Message-Id: <20221220145625.26392-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220145625.26392-1-philmd@linaro.org> References: <20221220145625.26392-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; 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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1671548281183100001 In user emulation, threads -- implemented as CPU -- are created/destroyed, but never reset. There is no point in allowing the user emulation access the sysemu/reset API. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Reviewed-by: Wilfred Mallawa --- target/s390x/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index 96562c516d..b10a8541ff 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -26,7 +26,6 @@ #include "s390x-internal.h" #include "kvm/kvm_s390x.h" #include "sysemu/kvm.h" -#include "sysemu/reset.h" #include "qemu/module.h" #include "trace.h" #include "qapi/qapi-types-machine.h" @@ -35,6 +34,9 @@ #include "fpu/softfloat-helpers.h" #include "disas/capstone.h" #include "sysemu/tcg.h" +#ifndef CONFIG_USER_ONLY +#include "sysemu/reset.h" +#endif =20 #define CR0_RESET 0xE0UL #define CR14_RESET 0xC2000000UL; --=20 2.38.1 From nobody Wed May 15 01:25:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1671548336; cv=none; d=zohomail.com; s=zohoarc; b=cLzG0jhjcc7eCQYApqkTiGjaTDEaW9kJtso+CjDOTQFUkNswnr+GIzNd06S1D0qrrldzgvXFJ367TAPTygA2UOnjp2K6g72q/piLLtCpzznz5fLpIOTaeYyA6bHzbJ75NKITELp2DCJK9/bqSrNs8S3OAmSHFdb8QH8dY14SHKo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671548336; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/3O/TmPP9Jg8STxRQ7xCVDl3tcpFcYurVNtfZxqpXk4=; b=SgE5ogERoAxZwngfJorImLO3Q3ZAow/WAFRhOT4z2gBu5XrrjFibLv/7w8iVp5ifrna650lkfELOgfae9TZ7mXdltQArKdUtN0g/ILNKvvBsjXCkhoOApOkwJ2I4OZYs11nR+KtM2ZiQQDcj4Ync/HqTAgk330CXguxpXWuk7ns= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 167154833636633.89477822722563; Tue, 20 Dec 2022 06:58:56 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7e3C-000720-A3; Tue, 20 Dec 2022 09:57:02 -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 1p7e3B-0006yw-4q for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:57:01 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7e39-0004kv-Lh for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:57:00 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 131-20020a1c0289000000b003d35acb0f9fso1244593wmc.2 for ; Tue, 20 Dec 2022 06:56:59 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id i12-20020a05600c354c00b003cfd64b6be1sm30842762wmq.27.2022.12.20.06.56.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:56:57 -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=/3O/TmPP9Jg8STxRQ7xCVDl3tcpFcYurVNtfZxqpXk4=; b=KVZ7UZklCQdPZdBie5057P3rlP+0MEXxziNTCa4FkiV0BWFDd3cN322tzrR4+m3Rmu sTEPQvWml9zQqNfa6cJoo8HQmtse3s0Q0DbbWTvuAfJISwwoXRh/aNSb8TPNumtpthDp YRM2rKhjOlOqJbdUirS6sTEeMAJP+t1VP3F+xRStNcyWOHqjEjIShJcqc353kTVHN/VX OUK0sI6RyW2I34DcgbcoTvaRxpkbWlRTxmnirBN/tITaDi9B4NG9c33mvEMm2GAw0UiQ 2yUK8URIhPLUEkWimITTEejH0kHoLCWF/KlxwGiwRqXVZH/DGr2zaR7Q+E9TGAfygJAK YZAw== 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=/3O/TmPP9Jg8STxRQ7xCVDl3tcpFcYurVNtfZxqpXk4=; b=v8mDoh2iEoKAcAHPsMVQtOgfVcbY2ONsS2V5p2JOHFX6ht0sBmV7D4ZcVLjcZhHPRn H0er/teNxwdytwFbYSw1B03YRiHZpo09xcewOGa2+QtwTSukXvJOHqP/BIE8TZ2AZnPu yIp+9Ws4u+6Os0hpsJBMkcAbo08UAuZqkpUoFKML6L/INTY7mdnTS8fHGrE5ajXmLUTy uyi3mNx0DqR0bL3ulf6p1uY+dGeHtrYJsuXhrxyHC/1DQdiA8fBGxN7v40sv8AkIKndb AVwHqODx8WbMpsrP/zfasxAZ50CGgc9SVAXfy0jnOEzuto3RwASqjTo0wagA0m2k/djY OX+w== X-Gm-Message-State: AFqh2kpm6NAfAQJAKMZS0SrnlCuEnWBzSvI4izyw/LRhr2hU7Y77MUoP Ceol+8+mv7MQezvCOEyPuMMjgdQ9ntaaf6uGDbE= X-Google-Smtp-Source: AMrXdXsi1nMSWpxVfHZjzugp25C4+HT/5hS8EvcGgrWnk+D2kVCmJt7vDvJ6a7S6NfEs0xAJ14+oWg== X-Received: by 2002:a05:600c:1e84:b0:3d3:5cd6:760 with SMTP id be4-20020a05600c1e8400b003d35cd60760mr4702308wmb.20.1671548217991; Tue, 20 Dec 2022 06:56:57 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Ilya Leoshkevich , Eduardo Habkost , qemu-s390x@nongnu.org, Song Gao , Richard Henderson , David Hildenbrand , Xiaojuan Yang , Thomas Huth , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 5/5] hw/core: Only build CPU reset handlers with system emulation Date: Tue, 20 Dec 2022 15:56:25 +0100 Message-Id: <20221220145625.26392-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220145625.26392-1-philmd@linaro.org> References: <20221220145625.26392-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1671548337436100001 In user emulation, threads -- implemented as CPU -- are created/destroyed, but never reset. There is no point in providing the sysemu/reset handlers there. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Wilfred Mallawa --- hw/core/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/meson.build b/hw/core/meson.build index 7a4d02b6c0..ce6fdb0064 100644 --- a/hw/core/meson.build +++ b/hw/core/meson.build @@ -3,7 +3,6 @@ hwcore_ss.add(files( 'bus.c', 'qdev-properties.c', 'qdev.c', - 'reset.c', 'resettable.c', 'vmstate-if.c', # irq.c needed for qdev GPIO handling: @@ -15,6 +14,7 @@ if have_system hwcore_ss.add(files( 'hotplug.c', 'qdev-hotplug.c', + 'reset.c', )) else hwcore_ss.add(files( --=20 2.38.1