From nobody Tue Feb 10 03:55:51 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.47 as permitted sender) client-ip=209.85.128.47; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f47.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.47 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1610902123; cv=none; d=zohomail.com; s=zohoarc; b=cmNH5J0l9HAf2yRZBy6yUPzNT9V7eZ/Sih8pIJS0Z9tu+rVs+4NST7XYShoi1UoupIJu2X1/UHltHoZKweHrk8rjJmRlVmieiVx/aFY57rNJ12vhKUpNq0bQ3BY2Qh1kjtjy6f6Szr8MBkIc4+T20ZnyyRC0MuGIWXqpwywX9Mc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610902123; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=UZYwqIRQuLmBtaprCcoYNaqSL+UUeepn3F/UBlfKHSc=; b=Q9N1ojDcutBqVPYCLJuXupwzZwFv9YRa4yGfSdWBdxIQ59vz4qxt1EBahZRPjHC25VXpksTQgjVCnvxzn6enls1gQfP3uJUhjuqzGFxyeY4Kzz7LzxC8tQElZ0aELST8ikrX1YWiqTjMvkz/IbEVeiNWoggAexpmx2dhE7aU2GE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.47 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.zohomail.com with SMTPS id 1610902123819551.4282851055704; Sun, 17 Jan 2021 08:48:43 -0800 (PST) Received: by mail-wm1-f47.google.com with SMTP id u14so7636644wmq.4 for ; Sun, 17 Jan 2021 08:48:43 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id z8sm6535744wmi.44.2021.01.17.08.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 08:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UZYwqIRQuLmBtaprCcoYNaqSL+UUeepn3F/UBlfKHSc=; b=Mg7UU5eoMqdI+nhY0LeAI+Qune6QfeigS3jDa2pSJ88ArzDXWYZrZ4iZCTFhv27FAt XBkDE7fVKw5QFwafvoH0ltcr8Q58U18U/BPZWNGfiDzxDjB+7oz5dJRsHNW77x6nJ3dV ED01HFuzwdUXs6UTz0QxOoN3Vk1WDoxDtTjuJXjs4WKDDT5gEytfYnBs3/eUnXk32XWb 4ygGms+c3esnPgNyGHremMRkAJl4rfYE0FVGf5UAKtdcYjT2XckhjJCyYO5hSRxuLC5Z w15B8l0BqCWsKChRJqHksUu1fIqNC92+qgiGVdf4UjxU9OQJMp6NhbwP6JgDE/McaonR 2iOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=UZYwqIRQuLmBtaprCcoYNaqSL+UUeepn3F/UBlfKHSc=; b=tnhqx7aGOtdqrS97zbW8CN0Eub1+kheOmTlVP1vIVhCpdGG9VKyIY9wy88MRbewKVd jtxZbDzuvoknVfhCZ4UjGTyvMSxg9l5fZS1zROtukF2hIyrJo25K3NemGCPGeLXR3Rhr uOStwRaRYOAXIS+rAvOGL0VrqmcgA8ltUjFfR6X0E+FYQVhGMDJfloGReM9NQX7+hZUU Z+YNCYxWpFVT1PEWInnzUkEe21pnywNE9IvtLeeN1WOc+2mJHKflZifcB06Z/B3Zer6S GvPmnUy3O/CyltmSEuiANxP5KS75M2BCXswboa2B6QWCFSp8RIHzqGWcbQYYVp+1IFA7 aQvg== X-Gm-Message-State: AOAM530E094zR0m8rhSzjDRXweeY/iMXTLZJXgfpvoKZBsi8Inq2deDG xUeGkUl5K4Beamz7Z1b6zD4= X-Google-Smtp-Source: ABdhPJzUybtrTFNUCU/BSNg/VvtwLquz2yYQGtaAQhiEDwZTLN4tVAZS9V8aRKVK73APW8fp0w0WOg== X-Received: by 2002:a05:600c:3549:: with SMTP id i9mr16527154wmq.89.1610902122108; Sun, 17 Jan 2021 08:48:42 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Claudio Fontana , Huacai Chen , Richard Henderson , Eduardo Habkost , Paolo Bonzini , Peter Maydell , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Riku Voipio , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH 5/6] accel/tcg: Restrict cpu_io_recompile() from other accelerators Date: Sun, 17 Jan 2021 17:48:12 +0100 Message-Id: <20210117164813.4101761-6-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210117164813.4101761-1-f4bug@amsat.org> References: <20210117164813.4101761-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) As cpu_io_recompile() is only called within TCG accelerator in cputlb.c, declare it locally. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- RFC because not sure if other accelerator could implement this. --- accel/tcg/internal.h | 2 ++ include/exec/exec-all.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/accel/tcg/internal.h b/accel/tcg/internal.h index f7e18c3498b..c72a69e4d63 100644 --- a/accel/tcg/internal.h +++ b/accel/tcg/internal.h @@ -18,4 +18,6 @@ TranslationBlock *tb_gen_code(CPUState *cpu, =20 void tb_flush_jmp_cache(CPUState *cpu, target_ulong addr); =20 +void QEMU_NORETURN cpu_io_recompile(CPUState *cpu, uintptr_t retaddr); + #endif diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 3acc7c2943a..125000bcf70 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -63,7 +63,6 @@ void restore_state_to_opc(CPUArchState *env, TranslationB= lock *tb, bool cpu_restore_state(CPUState *cpu, uintptr_t searched_pc, bool will_exi= t); =20 void QEMU_NORETURN cpu_loop_exit_noexc(CPUState *cpu); -void QEMU_NORETURN cpu_io_recompile(CPUState *cpu, uintptr_t retaddr); void QEMU_NORETURN cpu_loop_exit(CPUState *cpu); void QEMU_NORETURN cpu_loop_exit_restore(CPUState *cpu, uintptr_t pc); void QEMU_NORETURN cpu_loop_exit_atomic(CPUState *cpu, uintptr_t pc); --=20 2.26.2