From: Peter Xu <peterx@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>
Subject: Re: [PATCH] system: Define ram_addr_t to be always uint64_t
Date: Tue, 18 Aug 2026 11:31:35 -0400 [thread overview]
Message-ID: <aoR619dUn8051pj8@x1.local> (raw)
In-Reply-To: <ae8c473b-770b-4aad-8fe9-8951a856c555@oss.qualcomm.com>
On Fri, Aug 14, 2026 at 04:26:39PM +0200, Philippe Mathieu-Daudé wrote:
> On 2026-08-14 15:40, Peter Xu wrote:
> > QEMU's 32bit host support was deprecated since 10.0 and removed in 11.0, at
> > least the system emulation part
>
> (see commit 372ec46b9f "meson: Reject 32-bit hosts")
The "at least the system emulation part" was almost for cf634dfcd8f that we
re-enabled tools for 32bits.
I'll reference both commit IDs when repost.
> > . Now it's safe to move ram_addr_t
> > completely over to uint64_t.
> >
> > It should be almost the same as uintptr_t as before for !Xen, except that
> > on some systems (like MacOS) uintptr_t and uint64_t can be typed slightly
> > differently, causing unnecessary compiler warnings when use them in a
> > mixture way.
> >
> > Hopefully, this change also makes it clear that ram_addr_t is never used as
> > a host pointer in any form, but only an internal QEMU integer based address
> > space for allocating ramblocks.
> >
> > [1] https://lore.kernel.org/r/d7b2fbf6-f9fa-4b39-8f40-95b7d5d0d8fb@oss.qualcomm.com
>
> With the commit sha no need to link to that thread IMO.
I wish to keep this to provide a reference to the MacOS issue I mentioned.
>
> >
> > Cc: Paolo Bonzini <pbonzini@redhat.com>
> > Cc: Philippe Mathieu-Daudé <philmd@mailo.com>
> > Suggested-by: Richard Henderson <richard.henderson@linaro.org>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> > ---
> > include/system/ram_addr.h | 6 ------
> > 1 file changed, 6 deletions(-)
> >
> > diff --git a/include/system/ram_addr.h b/include/system/ram_addr.h
> > index 129f6b8757..06caca1506 100644
> > --- a/include/system/ram_addr.h
> > +++ b/include/system/ram_addr.h
> > @@ -15,15 +15,9 @@
> > #define RAM_ADDR_H
> > /* address in the RAM (different from a physical address) */
>
> While here we could describe a bit more:
>
> /*
> * ram_addr_t - Offset in QEMU's internal RAM address space (not a guest
> physical address).
> */
Sure!
--
Peter Xu
next prev parent reply other threads:[~2026-08-18 15:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-14 13:40 [PATCH] system: Define ram_addr_t to be always uint64_t Peter Xu
2026-08-14 14:26 ` Philippe Mathieu-Daudé
2026-08-18 15:31 ` Peter Xu [this message]
2026-08-14 14:48 ` Peter Maydell
2026-08-18 15:28 ` Peter Xu
2026-08-15 20:25 ` 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=aoR619dUn8051pj8@x1.local \
--to=peterx@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.