Re: [PATCH 05/10] rust: vmstate: implement VMState for scalar types

2025-01-22 Thread Paolo Bonzini
On 1/22/25 13:33, Zhao Liu wrote: On Fri, Jan 17, 2025 at 10:00:41AM +0100, Paolo Bonzini wrote: Date: Fri, 17 Jan 2025 10:00:41 +0100 From: Paolo Bonzini Subject: [PATCH 05/10] rust: vmstate: implement VMState for scalar types X-Mailer: git-send-email 2.47.1 Scalar types are those that have

Re: [PATCH 05/10] rust: vmstate: implement VMState for scalar types

2025-01-22 Thread Zhao Liu
On Fri, Jan 17, 2025 at 10:00:41AM +0100, Paolo Bonzini wrote: > Date: Fri, 17 Jan 2025 10:00:41 +0100 > From: Paolo Bonzini > Subject: [PATCH 05/10] rust: vmstate: implement VMState for scalar types > X-Mailer: git-send-email 2.47.1 > > Scalar types are those that have the

[PATCH 05/10] rust: vmstate: implement VMState for scalar types

2025-01-17 Thread Paolo Bonzini
Scalar types are those that have their own VMStateInfo. This poses a problem in that references to VMStateInfo can only be included in associated consts starting with Rust 1.83.0, when the const_refs_static was stabilized. Removing the requirement is done by placing a limited list of VMStateInfos