]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: hpet: embed Timer without the Option and Box indirection
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Mar 2025 15:27:08 +0000 (16:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Mar 2025 11:44:46 +0000 (12:44 +0100)
commite8dc87fef2677dc286b3fe72e04d1b763cf98fef
treef93280b849aed56d9ebeab044da1aca4695500b6
parentd7f5ae8b30cc9652a4ddcfeb52076f5aef6d78b6
rust: hpet: embed Timer without the Option and Box indirection

This simplifies things for migration, since Option<Box<QEMUTimer>> does not
implement VMState.

This also shows a soundness issue because Timer::new() will leave a NULL
timer list pointer, which can then be dereferenced by Timer::modify().  It
will be fixed shortly.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/timer/hpet/src/hpet.rs