[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 06/13] rust: add bindings for memattrs
From: |
Zhao Liu |
Subject: |
Re: [RFC 06/13] rust: add bindings for memattrs |
Date: |
Sun, 8 Dec 2024 23:51:00 +0800 |
On Sun, Dec 08, 2024 at 10:30:34AM +0100, Paolo Bonzini wrote:
> Date: Sun, 8 Dec 2024 10:30:34 +0100
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: Re: [RFC 06/13] rust: add bindings for memattrs
>
> Il sab 7 dic 2024, 10:21 Philippe Mathieu-Daudé <philmd@linaro.org> ha
> scritto:
>
> > >> is still decently packed and simplifies things a lot.
> > >
> > > The old struct is 4 bytes, and the new one is 8 bytes. We do
> > > a lot of directly passing 'struct MemTxAttrs' arguments around
> > > as arguments to functions (i.e. not passing pointers to them),
> > > so increasing it in size is not completely free.
> >
> > Should we add a check to not pass 8 bytes?
> >
> > QEMU_BUILD_BUG_ON(sizeof(MemTxAttrs) != sizeof(uint64_t));
> >
>
> Yes, why not.
>
Thank you all! Will also include this in the followup clean-up patches.
Regards,
Zhao
- Re: [RFC 06/13] rust: add bindings for memattrs, (continued)
- Re: [RFC 06/13] rust: add bindings for memattrs, Peter Maydell, 2024/12/06
- Re: [RFC 06/13] rust: add bindings for memattrs, Paolo Bonzini, 2024/12/06
- Re: [RFC 06/13] rust: add bindings for memattrs, Peter Maydell, 2024/12/06
- Re: [RFC 06/13] rust: add bindings for memattrs, Paolo Bonzini, 2024/12/06
- Re: [RFC 06/13] rust: add bindings for memattrs, Philippe Mathieu-Daudé, 2024/12/07
- Re: [RFC 06/13] rust: add bindings for memattrs, Paolo Bonzini, 2024/12/08
- Re: [RFC 06/13] rust: add bindings for memattrs,
Zhao Liu <=
[RFC 07/13] rust: add bindings for timer, Zhao Liu, 2024/12/05
[RFC 08/13] rust/qdev: add the macro to define bit property, Zhao Liu, 2024/12/05
[RFC 09/13] i386/fw_cfg: move hpet_cfg definition to hpet.c, Zhao Liu, 2024/12/05