From: "Pavel Dovgaluk" <Pavel.Dovgaluk@ispras.ru>
To: 'Peter Maydell' <peter.maydell@linaro.org>,
'Jan Kiszka' <jan.kiszka@siemens.com>
Cc: 'qemu-devel' <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] Save/load PC speaker internal state
Date: Tue, 28 Aug 2012 11:01:15 +0400 [thread overview]
Message-ID: <002801cd84ea$ea756bf0$bf6043d0$@Dovgaluk@ispras.ru> (raw)
In-Reply-To: <CAFEAcA-ftZhoy4VO9qdVHfb_7Gvk82VspAqXmV9iegjw_d3tJw@mail.gmail.com>
> -----Original Message-----
> From: Peter Maydell [mailto:peter.maydell@linaro.org]
> Sent: Monday, August 27, 2012 4:50 PM
> To: Pavel Dovgaluk
> Cc: qemu-devel
> Subject: Re: [Qemu-devel] [PATCH] Save/load PC speaker internal state
>
> On 27 August 2012 13:21, Pavel Dovgaluk <Pavel.Dovgaluk@ispras.ru> wrote:
> > Save PC speaker state to remove differences between system
> > states after saving the snapshot and after loading it again.
> > This patch is needed for deterministic replay of the execution.
> >
> > Signed-off-by: Pavel Dovgalyuk<pavel.dovgaluk@gmail.com>
>
> Hi Pavel; thanks for this patch. Couple of minor issues:
>
> > +static const VMStateDescription vmstate_spk = {
> > + .name = "pcspk",
> > + .version_id = 1,
> > + .minimum_version_id = 1,
> > + .minimum_version_id_old = 1,
> > + .fields = (VMStateField[]) {
> > + VMSTATE_UINT8_ARRAY(sample_buf, PCSpkState, PCSPK_BUF_LEN),
> > + VMSTATE_UINT32(pit_count, PCSpkState),
> > + VMSTATE_UINT32(samples, PCSpkState),
> > + VMSTATE_UINT32(play_pos, PCSpkState),
> > + VMSTATE_INT32(data_on, PCSpkState),
> > + VMSTATE_INT32(dummy_refresh_clock, PCSpkState),
>
> I think that you need also to update the types in the PCSpkState
> struct from int/unsigned int to int32_t/uint32_t, otherwise this
> won't compile on a 64 bit system.
Peter, Jan, thank you for the reviews. I've sent new version of the patch.
Pavel Dovgaluk
next prev parent reply other threads:[~2012-08-28 7:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <503b6650.c88ddc0a.7e15.ffffb689SMTPIN_ADDED@mx.google.com>
2012-08-27 12:49 ` [Qemu-devel] [PATCH] Save/load PC speaker internal state Peter Maydell
2012-08-28 7:01 ` Pavel Dovgaluk [this message]
[not found] <36635.9908286997$1346070105@news.gmane.org>
2012-08-27 17:27 ` Jan Kiszka
2012-08-27 12:21 Pavel Dovgaluk
2012-08-27 16:39 ` Andreas Färber
2012-08-28 11:23 ` Juan Quintela
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='002801cd84ea$ea756bf0$bf6043d0$@Dovgaluk@ispras.ru' \
--to=pavel.dovgaluk@ispras.ru \
--cc=jan.kiszka@siemens.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).