Re: [RFC PATCH 1/9] rust: vmstate: add new type safe implementation

2025-01-07 Thread Zhao Liu
> > Very flexible and powerful. (I even think this code could be released as > > a new public crate.) > > It's probably not _that_ useful in general, unless you're implementing > this kind of reflection... otherwise I would have found an existing > solution. :) But yes, it's very powerful. Person

Re: [RFC PATCH 1/9] rust: vmstate: add new type safe implementation

2025-01-07 Thread Paolo Bonzini
On Tue, Jan 7, 2025 at 9:39 AM Zhao Liu wrote: > This is very good work! I am curious about how QEMU plays with Rust > forum: > > Rust forum's disscussion is under MIT and Apache 2.0 licenses [1], and > since vmstate.rs is under the GPLv2 license, do we need to specify that > certain code retains

Re: [RFC PATCH 1/9] rust: vmstate: add new type safe implementation

2025-01-07 Thread Zhao Liu
On Tue, Dec 31, 2024 at 01:23:28AM +0100, Paolo Bonzini wrote: > Date: Tue, 31 Dec 2024 01:23:28 +0100 > From: Paolo Bonzini > Subject: [RFC PATCH 1/9] rust: vmstate: add new type safe implementation > X-Mailer: git-send-email 2.47.1 > > The existing translation of the C macros for vmstate does n