From: Zhao Liu <zhao1.liu@intel.com>
To: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Cc: Peter Xu <peterx@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
Fabiano Rosas <farosas@suse.de>,
Paolo Bonzini <pbonzini@redhat.com>,
Manos Pitsidianakis <manos.pitsidianakis@linaro.org>,
qemu-devel@nongnu.org, qemu-rust@nongnu.org
Subject: Re: [PATCH 2/3] rust/hpet: Move vmstate_validate!() check into post_load
Date: Tue, 24 Nov 2026 18:22:21 +0800 [thread overview]
Message-ID: <awVlXbIGVsp+xkOL@intel.com> (raw)
In-Reply-To: <ae1dc71f-ca73-4175-af3b-767c0adedc79@oss.qualcomm.com>
> > -const VMSTATE_HPET: VMStateDescription<HPETState> =
> > - VMStateDescriptionBuilder::<HPETState>::new()
> > - .name(c"hpet")
> > - .version_id(2)
> > - .minimum_version_id(2)
> > - .pre_save(&HPETState::pre_save)
> > - .post_load(&HPETState::post_load)
> > - .fields(vmstate_fields! {
> > - vmstate_of!(HPETState, regs),
> > - vmstate_of!(HPETState, num_timers_save),
> > - vmstate_validate!(HPETState, VALIDATE_TIMERS_NAME, HPETState::validate_num_timers),
> > - vmstate_of!(HPETState, timers[0 .. num_timers_save], HPETState::validate_num_timers).with_version_id(0),
> > - })
> > - .subsections(vmstate_subsections!(
> > - VMSTATE_HPET_RTC_IRQ_LEVEL,
> > - VMSTATE_HPET_OFFSET,
> > - ))
> > - .build();
> > +const VMSTATE_HPET: VMStateDescription<HPETState> = VMStateDescriptionBuilder::<HPETState>::new()
> > + .name(c"hpet")
> > + .version_id(2)
> > + .minimum_version_id(2)
> > + .pre_save(&HPETState::pre_save)
> > + .post_load(&HPETState::post_load)
> > + .fields(vmstate_fields! {
> > + vmstate_of!(HPETState, regs),
> > + vmstate_of!(HPETState, num_timers_save),
> > + vmstate_of!(HPETState, timers[0 .. num_timers]).with_version_id(0),
> > + })
> > + .subsections(vmstate_subsections!(
> > + VMSTATE_HPET_RTC_IRQ_LEVEL,
> > + VMSTATE_HPET_OFFSET,
> > + ))
> > + .build();
>
> Doing the indentation change in a preliminary patch would ease review.
Yeah, but this style change was from rustfmt's complaints about
this patch, so I've merged rustfmt's changes into this patch as
well... this ensures this individual patch could pass all checks.
Thanks,
Zhao
next prev parent reply other threads:[~2026-11-24 10:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 9:58 [PATCH 0/3] rust/migration: Remove vmstate_validate!() and VMS_MUST_EXIST Zhao Liu
2026-11-24 9:58 ` [PATCH 1/3] rust/migration: Allow usize as the length of a varray Zhao Liu
2026-11-24 9:58 ` [PATCH 2/3] rust/hpet: Move vmstate_validate!() check into post_load Zhao Liu
2026-11-24 10:10 ` Philippe Mathieu-Daudé
2026-11-24 10:22 ` Zhao Liu [this message]
2026-11-24 9:58 ` [PATCH 3/3] rust/migration: Remove vmstate_validate!() macro and test Zhao Liu
2026-11-25 20:19 ` [PATCH 0/3] rust/migration: Remove vmstate_validate!() and VMS_MUST_EXIST Peter Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awVlXbIGVsp+xkOL@intel.com \
--to=zhao1.liu@intel.com \
--cc=farosas@suse.de \
--cc=manos.pitsidianakis@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=peterx@redhat.com \
--cc=philmd@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-rust@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.