From patchwork Fri Dec 9 09:36:45 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: 13069388 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 B01DDC4332F for ; Fri, 9 Dec 2022 09:37:51 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3ZoZ-0004EX-L9; Fri, 09 Dec 2022 04:37:07 -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 1p3ZoS-0004Db-Lb for qemu-devel@nongnu.org; Fri, 09 Dec 2022 04:37:05 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3ZoQ-0003kV-KC for qemu-devel@nongnu.org; Fri, 09 Dec 2022 04:36:59 -0500 Received: by mail-wm1-x332.google.com with SMTP id 125-20020a1c0283000000b003d1e906ca23so2842916wmc.3 for ; Fri, 09 Dec 2022 01:36:58 -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=hqbawvL4vHvZpY+2DyinzrBtHU1TrIUtt76G41fXH68=; b=U198fHmPFbp0ue9DQeYt8z4UFPNtjBZ1pcRFkxzV4JSOU0rBM8ywKuzzkIoMIuVfX7 GkCDvsps7ExKS1aQ/Tfu/B1yM9Bq1dZJxh4pC/dFHRdeaKPNiWmRRpcz+zkJ+L01peiA UEf63os82eKL5MqzxL+n71Buobypn5mM5bFUVKm4n+RADR8RfWXb4i50R40LzBtS1MMl 5haUqH3boZ+0QqkTgBkzmX6OGlnrSxuexleNQSVYjpRvDOO98HZMlpZXiYqbFp8pkk2E R7L2Ip/Kg3lEN9YlRyquncFlyilbg8CVJNRK2E+aVxJAD7Go9F0u3HE9tWUE5kOKyOq+ F9KA== 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=hqbawvL4vHvZpY+2DyinzrBtHU1TrIUtt76G41fXH68=; b=x+PnlU/yIakzKWO2VP7A3u7MPwadgBZrURiW40lL/GbmTyGmaLrGos/d39ow5JJh4I cR9nsjNDAtfPVmxCemMxOgVIUwbthVH55f8XaFZVvDFtBJJ18ccUorYyXuYlXC3I9j36 SrselJEH5DlMjLnApdLIyafqLQD65+ZFOSzWcTKX5a0HqDvPPxTheWeDSh72ulUFex38 TPuMLqkUkTmSmWK7v0cE4Z3xzF6x+QzYkGkATOdi3LxG430STOSTNoIBdlGE21bnvL7B uVoYbQZRUBkeW70+7nPdxz/SON2D+JMxsuuRZBAyRLtQUVaXKl74tN7P79zk6K4UXWVI DSDA== X-Gm-Message-State: ANoB5pmBZoX9QryDvj6a9nEfZ4p/sAnE5FwIJGMFx09fQB8pFEfZMANp VW36ucWLH0biFmPXUh45dQluugIvQvKtCPqr7eA= X-Google-Smtp-Source: AA0mqf5WNexLcFWoVXjangt0NlfSbtV5LlhlR8n9u3uHGVVUxls6+CmZbh7vMyaEy0Un/HIGy1+qMg== X-Received: by 2002:a05:600c:1d83:b0:3c7:a5:610c with SMTP id p3-20020a05600c1d8300b003c700a5610cmr4137749wms.16.1670578616525; Fri, 09 Dec 2022 01:36:56 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id o30-20020a05600c511e00b003a3442f1229sm8603629wms.29.2022.12.09.01.36.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Dec 2022 01:36:56 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Paolo Bonzini , Stefan Hajnoczi , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-8.0 1/5] accel/tcg: Restrict cpu_io_recompile() to system emulation Date: Fri, 9 Dec 2022 10:36:45 +0100 Message-Id: <20221209093649.43738-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221209093649.43738-1-philmd@linaro.org> References: <20221209093649.43738-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Missed in commit 6526919224 ("accel/tcg: Restrict cpu_io_recompile() from other accelerators"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée --- accel/tcg/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/tcg/internal.h b/accel/tcg/internal.h index e1429a53ac..35419f3fe1 100644 --- a/accel/tcg/internal.h +++ b/accel/tcg/internal.h @@ -43,12 +43,12 @@ void tb_invalidate_phys_page_fast(struct page_collection *pages, struct page_collection *page_collection_lock(tb_page_addr_t start, tb_page_addr_t end); void page_collection_unlock(struct page_collection *set); +G_NORETURN void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr); #endif /* CONFIG_SOFTMMU */ TranslationBlock *tb_gen_code(CPUState *cpu, target_ulong pc, target_ulong cs_base, uint32_t flags, int cflags); -G_NORETURN void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr); void page_init(void); void tb_htable_init(void); void tb_reset_jump(TranslationBlock *tb, int n);