From: Richard Henderson <richard.henderson@linaro.org>
To: "Anton Johansson" <anjo@rev.ng>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Pierrick Bouvier <pierrick.bouvier@linaro.org>
Subject: Re: [PATCH v3 11/13] physmem: Restrict TCG IOTLB code to TCG accel
Date: Mon, 28 Apr 2025 13:13:59 -0700 [thread overview]
Message-ID: <1f6c0738-6bbe-4608-956e-d94ca89b53d0@linaro.org> (raw)
In-Reply-To: <cao656ggvonu2gwwcrpu5n23nfa2epmdr6v2str4pwofhzoypo@mmbjpmvzkdxe>
On 4/28/25 11:51, Anton Johansson wrote:
> On 24/04/25, Philippe Mathieu-Daudé wrote:
>> Restrict iotlb_to_section(), address_space_translate_for_iotlb()
>> and memory_region_section_get_iotlb() to TCG. Declare them in
>> the new "accel/tcg/iommu.h" header. Declare iotlb_to_section()
>> using the MemoryRegionSection typedef.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> MAINTAINERS | 2 +-
>> include/accel/tcg/iommu.h | 41 +++++++++++++++++++++++++++++++++++++++
>> include/exec/exec-all.h | 26 -------------------------
>> accel/tcg/cputlb.c | 1 +
>> system/physmem.c | 5 +++++
>> 5 files changed, 48 insertions(+), 27 deletions(-)
>> create mode 100644 include/accel/tcg/iommu.h
>>
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index 661a47db5ac..3a37cc73af7 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -168,7 +168,7 @@ F: include/exec/helper*.h.inc
>> F: include/exec/helper-info.c.inc
>> F: include/exec/page-protection.h
>> F: include/system/tcg.h
>> -F: include/accel/tcg/cpu-ops.h
>> +F: include/accel/tcg/
>> F: host/include/*/host/cpuinfo.h
>> F: util/cpuinfo-*.c
>> F: include/tcg/
>> diff --git a/include/accel/tcg/iommu.h b/include/accel/tcg/iommu.h
>> new file mode 100644
>> index 00000000000..90cfd6c0ed1
>> --- /dev/null
>> +++ b/include/accel/tcg/iommu.h
>> @@ -0,0 +1,41 @@
>> +/*
>> + * TCG IOMMU translations.
>> + *
>> + * Copyright (c) 2003 Fabrice Bellard
>> + * SPDX-License-Identifier: LGPL-2.1-or-later
>> + */
>> +#ifndef ACCEL_TCG_IOMMU_H
>> +#define ACCEL_TCG_IOMMU_H
>> +
>> +#ifdef CONFIG_USER_ONLY
>> +#error Cannot include accel/tcg/iommu.h from user emulation
>> +#endif
>> +
>> +#include "exec/hwaddr.h"
>> +#include "exec/memattrs.h"
>
> Missing qemu/typedefs.h include
No, that's always done by qemu/osdep.h in the c file.
r~
next prev parent reply other threads:[~2025-04-28 20:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-24 20:23 [PATCH v3 00/13] include: Remove "exec/exec-all.h" Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 01/13] accel/tcg: Use vaddr for walk_memory_regions callback Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 02/13] accel/tcg: Use vaddr in user/page-protection.h Philippe Mathieu-Daudé
2025-04-28 18:32 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 03/13] accel/tcg: Correct list of included headers in tcg-stub.c Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 04/13] include/exec: Include missing headers in exec-all.h Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 05/13] include/exec: Move tb_invalidate_phys_range to translation-block.h Philippe Mathieu-Daudé
2025-04-28 18:33 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 06/13] accel/tcg: Compile tb-maint.c twice Philippe Mathieu-Daudé
2025-04-28 18:38 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 07/13] target/riscv: Include missing 'accel/tcg/getpc.h' in csr.c Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 08/13] target/hexagon: Include missing 'accel/tcg/getpc.h' Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 09/13] accel/tcg: Include 'accel/tcg/getpc.h' in 'exec/helper-proto' Philippe Mathieu-Daudé
2025-04-28 18:27 ` Anton Johansson via
2025-04-28 20:13 ` Richard Henderson
2025-04-24 20:24 ` [PATCH v3 10/13] physmem: Move TCG IOTLB methods around Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 11/13] physmem: Restrict TCG IOTLB code to TCG accel Philippe Mathieu-Daudé
2025-04-28 18:51 ` Anton Johansson via
2025-04-28 20:13 ` Richard Henderson [this message]
2025-04-28 20:52 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 12/13] accel/tcg: Extract probe API out of 'exec/exec-all.h' Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 13/13] include: Remove 'exec/exec-all.h' Philippe Mathieu-Daudé
2025-04-28 20:12 ` [PATCH v3 00/13] include: Remove "exec/exec-all.h" Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f6c0738-6bbe-4608-956e-d94ca89b53d0@linaro.org \
--to=richard.henderson@linaro.org \
--cc=anjo@rev.ng \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).