qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC 06/13] rust: add bindings for memattrs


From: Paolo Bonzini
Subject: Re: [RFC 06/13] rust: add bindings for memattrs
Date: Fri, 6 Dec 2024 14:13:57 -0500



Il ven 6 dic 2024, 09:42 Peter Maydell <peter.maydell@linaro.org> ha scritto:
On Fri, 6 Dec 2024 at 14:28, Paolo Bonzini <pbonzini@redhat.com> wrote:
> Yes, hence "decently" packed. But I think in both cases it's passed in registers, and for 64-bit machine that shouldn't change anything.

True. Though it does mean we go from "space to add new fields
without making it overflow from one register to two" to
"completely full and no space for expanding it".

I guess it's enough to make unspecified the only non-bitfield. Then you can declare MEMTXATTRS_UNSPECIFIED as { unspecified: true, ..Zeroable::ZERO } ("start with Zeroable::ZERO and change unspecified to true"). For the rest it is not important to make them available in a "const".

Paolo

-- PMM


reply via email to

[Prev in Thread] Current Thread [Next in Thread]