From patchwork Tue Dec 20 14:56:21 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: 635475 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2961812pvb; Tue, 20 Dec 2022 06:58:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HYf8YFh5M0/4C/XaBsg0KIiYTVF12bPYmr1c8XEnS4ZVbmUtpxi6/7oOwd9BpGY2ckHK9 X-Received: by 2002:ad4:4485:0:b0:4e8:178d:7ec7 with SMTP id m5-20020ad44485000000b004e8178d7ec7mr37944141qvt.26.1671548329911; Tue, 20 Dec 2022 06:58:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671548329; cv=none; d=google.com; s=arc-20160816; b=BTVSU4bp7046HMG9khn4hiN+n77YJp1kiuVJUZwMDmUt1A3oI6Ttw+99gY1u7W5yst 4ZtVrLG4CrniTQtVML/QG/e6gB8jxBCDqsRIIndUP0IwH2Yn6bI25Kdoo6UNxHVcgYg9 m0+pfqLqbkCNTc0XDRIQjhurflweh85kcJGd3ZhZwkhiQVGhtF/VCmgT8HKC17ZA4ak4 votDCTHbNxMhABGQGd1uta1CWeqxsfj6++l7SEizr2ohvTpPh3jVBb1hqUYb/a5GwMyz GeMrJzU1lQCj1B6Ceh3G3r7FADP7ZllLoxw0Kth+8R0tBvxVLI0RqLzUTZhjjNITVQ5P xmow== 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=F7rSi5GEIaRyq3At2o8uQZxqXo1Ikt+p25AbGddVS60=; b=iHor5PgICzFIVI9H2RGzORRwsKOfc3DzajK5yN7JcZUH1sFGm0LJX9+0auM3a6sgg7 ruuokXG+kMUNNkzhQ7P71ijtqPxbSRWunH0mc+d7r73qiRjyohmGVgARd9G05EjRcMN6 BGzpxlPoCxzzIzF57Eaw3z+mhfzDeSnBhd7IMouV9qq6TogbFUbnMYlj8JEqRtVyX6AR 7y/o7b0i39M61A3TjSFkaG+3Zm+mecON9PSySJrWN3sODUbbDpxCpyeHVUF5HNoDkhDH 6y9EOipkzualALHZ2mwsK0CojrAgAdcGnswFx+uBd1P04oYKBT5jYYaWNor+UWEKxA7T 2w9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aTuNGlA9; 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 jo2-20020a056214500200b004bb74825290si5088890qvb.132.2022.12.20.06.58.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:58:49 -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=aTuNGlA9; 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 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org shutdown / powerdown / suspend_disk / resume / watchdog are events irrlevant to user emulation. Signed-off-by: Philippe Mathieu-Daudé --- 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 @@ */ #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 From patchwork Tue Dec 20 14:56:22 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: 635473 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2961440pvb; Tue, 20 Dec 2022 06:58:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4SH+GaCx8W2Izppqb+njTg+6yrIYmxLyh//KTe1LT3OZYW4BqY3w5clp5/zCw04zlpeFPp X-Received: by 2002:a05:622a:1743:b0:3a7:e570:8275 with SMTP id l3-20020a05622a174300b003a7e5708275mr83883345qtk.27.1671548280285; Tue, 20 Dec 2022 06:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671548280; cv=none; d=google.com; s=arc-20160816; b=ZEFm2BNu/177oOInUCPPOnBNV0SyXkz9pW56bsoGqBZ0PSWqEBkPD8jAna+iCoMx2R EEv2RHG0Iu+7p3WD5mVoTUNYsEvwwPLII7+WoOlFR2UiYOuhIYd48EbN+R9M+vUfvf8m ql44qUR5QGyUvYr6OEea7B0YTj+xHkBCwEpSr7cUbGnBJnMFGqVyumouhgcRj8V3pk3i 6TtrC9MqHtmkMqwUmA9OwvT4qlexOwOx+ypXgu+iVLIHa4mMdJ8CIsKTtkLzgqK00liH oNkJtkQFSNbYaGX9k4G4Qf9+Fp/8l0uJMGm9wQVx5gZy0R+8UZ1ncgv6WJgQ5/xloe0v a3aw== 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=+t/6/U4dDtWFou9lNwrmgxL5oJxAfHUoXJOlrPFl4Zg=; b=EuJYMh8gNEj9VZft2t2/9LqkrSLaiXi4+EgdOLmpEYsovbbFyYnd9/o5qkMWhnbJ8X 1btd1gK79kL2Q7qFmrmHDo4hCm4SKi6s9g4dhGEHu3qO6o0xJ+oWlbeDc0g72sNwMg3J bPm0yHK6Fe+16DomesGtGsQGnEQGrWV9t2jFWQf3aiq87gnBO6k0COaMpU64Vxnpn1ly hynejqZP0gJZHusqiJ0mOOGqyBOM/LdBk4fmJXA1UZmWIAYJMicytcedVdBUtcw1HyfD WSCHJz0paotcF82yG2TGORni6OPmsERH/Se2qvpoCt3ts0wqOjLuqKMjwd8u1Bj3Mn6q 3IeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nwDkckVm; 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 m9-20020ac84449000000b003a81f5be2b9si5166420qtn.293.2022.12.20.06.58.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:58:00 -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=nwDkckVm; 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 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- 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 From patchwork Tue Dec 20 14:56:23 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: 635471 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2961270pvb; Tue, 20 Dec 2022 06:57:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6xdQHw2KaO7Iu6BPdAF/os4DX74NURda1y2TfC1UFwpSas/LvE0JPkg+my7N5dQEIiRvJR X-Received: by 2002:ac8:6699:0:b0:3a7:f08f:4788 with SMTP id d25-20020ac86699000000b003a7f08f4788mr60175246qtp.63.1671548257074; Tue, 20 Dec 2022 06:57:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671548257; cv=none; d=google.com; s=arc-20160816; b=LzcQw977Yc2sT0tm7+TE4ayScdBAAz1TSaPlGdgcCeYyzdkhPXxSjVzfam4hN6LdWd NqXWIw3rVN/yRXEM/MWJv89FoJRzhwLpLtBEQL2e0OS3jyHTQQtV1Vu57aMQxRFC5xYr TZhVJiwjyIumnXUQHIW6/RlA8x8rWcGlBElPHWeyjfXIZAT4idFF9yFZR7xbyJQztiJa hVpQl/A+OlM/2HgrWlkEOiSn4zxAycJ72ewND/d6iePMC7Uh7FN7aJlKKZ54Nn/tyIeQ MdPD5c1G/dHJgqbF9qwE4hluIn7AAqx8jpqvsoYKtgs9J+qHjOib2nfqFe2SozEXlkH8 hddA== 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=KTQVfyiY+5oU5Xtk/+Ze+nTz1jeq6EB/aAS/3jJOPVI=; b=kM2Z0wHsRamTfnIj3DyqsBDA/R+VJjsqrf2UnnbSRVAJ6L9JRXc1Sgn8BKxZDZWOSP qM8vuZgGkei7kDGNUGyO4u1UuInjhDRkYF05Nyg9873+C6XsKe5j+Jd8liPJ45zeVwFY AwM6zS8pra/Y4dwbWWfNJ/Honb/wnd0hD3HhQg5nyd4kFIbwAbYiTfgD4gv+ztttUydR 0wAqbV4Ha8DSbGnErTxvkIbOvmCK9tVQ8332OTvrNUIix0rl9UOqE5roe58ertnzmSHN Le0A1lpDLAIdS7G9EY4QMxlc1OkxtUzE9Kse3UxaE2RXCCiBFRWRFjYNMROAHlhEKIbu iMvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jo7oFkhI; 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 ez8-20020a05622a4c8800b003ab18d78114si815988qtb.747.2022.12.20.06.57.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:57:37 -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=Jo7oFkhI; 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 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- 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 const char * const regnames[32] = { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", From patchwork Tue Dec 20 14:56:24 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: 635472 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2961441pvb; Tue, 20 Dec 2022 06:58:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXtatznuXlrqVx5BJebmjrjRd5pUaDEgAAy7jcJqFedKugP7BXo9ztjceBjMYJPtAeT6M9ZF X-Received: by 2002:a05:6214:3188:b0:4c7:1a90:2297 with SMTP id lb8-20020a056214318800b004c71a902297mr16255371qvb.41.1671548280333; Tue, 20 Dec 2022 06:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671548280; cv=none; d=google.com; s=arc-20160816; b=ygfTH/gcIiX9G3g+UcYgZq7AMrW2d0raM8w2J/9HP35Kkg7CQGLl+q+/sxrKpXBhp6 iprXyRNMxEhfubYBTZhb/CtPR9SXTN5EGDMjwV23ROeldLwbbEeiQDzx7FNffFYp+zE/ 0eXy1fgdAiQieZwhOpbgFdJoExi2ZZDPOHjW1GpLu6TNe1Z7500RMb5D6q4e2+sFueFp 1KEBFjwZof3DgVn57dxqfIs47W8ThpaUk1TkcbEc2vTpi4poNFsujMmot7swnqucXgke KDVqe7UhmBQqJlo+GOzm6GC2gpf5T+Rv8IisRoGVEAvmLYUifipHLekqSuzgflenzoNG 4PhA== 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=TWYX+bkDoAyS5D4KoXYEloAhrykg6/BssqVR4T1fIB4=; b=ewpGREHhCCS0Q4LmSlUDCF0dcMwUT/gqjv1ONp6uP2D7wWxJqTDjG1+1/edxjRM6wj jpX0y3afiMk9heagvNHEA8tlEFVIzQtZI+HrWO+4uz16QuvJqespJw2m2Q8W9VnZPcz0 Bsnc5QWTIBjSbw8ht369FTH0W/NwCRRvFP5wkq/nsMyfRlm+lLi4F/IWi3SbLQg5GTV2 HX98gvJRunTtrDpAlyTG62JXU2JChDOUdZBMqZ9IRSmuXstejVvY2o7LyjcbhUH3OrEi dEzCCY1zpWs9Lr7ntNkoLT+g+e4qsriMbr3jIfRxgnXEgshAfujxJuxcHvH64ntHDfOb I56Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BWYUpPKX; 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 ed15-20020ad44eaf000000b0052086f65de0si163169qvb.220.2022.12.20.06.58.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:58:00 -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=BWYUpPKX; 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 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é Reviewed-by: Thomas Huth --- 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 #define CR0_RESET 0xE0UL #define CR14_RESET 0xC2000000UL; From patchwork Tue Dec 20 14:56:25 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: 635476 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2961856pvb; Tue, 20 Dec 2022 06:58:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6cIl261dGNBDEg7VUUnaRLx6xg3WDBIgH5aHuM73ZSGarSlTVn37cM0mpfXgn7eVs1KrbZ X-Received: by 2002:a05:6214:184c:b0:4c7:1d69:5521 with SMTP id d12-20020a056214184c00b004c71d695521mr53428868qvy.36.1671548335838; Tue, 20 Dec 2022 06:58:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671548335; cv=none; d=google.com; s=arc-20160816; b=d0BgIQBfPsBdzXOEKF8xnENqwFOvUaGxC3zeQs9KFzGqEbiCNvPY3BJviahoFlI5GR H9EFXsXfc2R9zioqzl41l8Z+JDIMgWz6InhL+vzmIaXHRM7bLTH+qPt7AOuZPN+4zFZD x3VbI1AixWDHgTNiWEcb/zxJcM+r7t4g+2NiI879hQJvhcccC1E7atytCgtm4/Y48Ya8 QL0n8mrC6MbSwduqPy/FMzlE4Y8+OvpeGMSmeRgaYfF1p+1lB+Nok1CGH0CULjdzSn8/ 48HFAog5I+VUfIPeyJ88WZgic9xaPcYl/anTvFl4gMjL5Tgn/cyAtzLzLSIpOJxVbxZy YsLg== 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=/3O/TmPP9Jg8STxRQ7xCVDl3tcpFcYurVNtfZxqpXk4=; b=qYvXx0ipliR8/PDL07dArwympQ+tMmj+SB1DijF3plQCuAF3PhupOyytYhC1n5vWEy Tq5U74OE0dQHAldyFhyRK0KW0l060BfgT1HGbB35U0ubD74xywZX+n/mkSzFAD3o40Pq RTnWdYj9+M+SLyBiQKddk7L9zjZWoaVXT5579AiCFbEJrup4wkH/VFS/rcNFI0jwYDY9 p1e1EB0V5NYruzLZrIQ9zrtCUpq74VrSupWJmAXGULgSNBp2Q+N4mZEkcC7j4F8GTnX1 cUun3yZpHAcrcrd/wgP8c8UkM2vLO1DL08C6yR6SGfdCctctiF73/9La54MQRNlx1HNf JYFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KVZ7UZkl; 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 11-20020a0562140dcb00b004b4519eadc3si5051871qvt.52.2022.12.20.06.58.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:58:55 -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=KVZ7UZkl; 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 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- 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(