All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: lvivier@redhat.com, qemu-devel@nongnu.org, agraf@suse.de
Subject: Re: [Qemu-devel] [PATCH] macio/pmu: Fix missing vmsd terminator
Date: Fri, 27 Jul 2018 16:14:13 +0100	[thread overview]
Message-ID: <20180727151412.GC2498@work-vm> (raw)
In-Reply-To: <c8608e2e-35da-d095-193a-626d0d47c036@ilande.co.uk>

* Mark Cave-Ayland (mark.cave-ayland@ilande.co.uk) wrote:
> On 27/07/18 14:44, Dr. David Alan Gilbert wrote:
> 
> > * Mark Cave-Ayland (mark.cave-ayland@ilande.co.uk) wrote:
> > > On 27/07/18 13:31, Dr. David Alan Gilbert (git) wrote:
> > > 
> > > > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> > > > 
> > > > Fix missing terminator in VMStateDescription
> > > > 
> > > > Fixes: d811d61fbc6ca5f2be2185fd7cfa916e7ba613ce
> > > > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> > > > ---
> > > >    hw/misc/macio/pmu.c | 1 +
> > > >    1 file changed, 1 insertion(+)
> > > > 
> > > > diff --git a/hw/misc/macio/pmu.c b/hw/misc/macio/pmu.c
> > > > index e246b0fd41..27dfaf8a74 100644
> > > > --- a/hw/misc/macio/pmu.c
> > > > +++ b/hw/misc/macio/pmu.c
> > > > @@ -686,6 +686,7 @@ static const VMStateDescription vmstate_pmu_adb = {
> > > >            VMSTATE_TIMER_PTR(adb_poll_timer, PMUState),
> > > >            VMSTATE_UINT8(adb_reply_size, PMUState),
> > > >            VMSTATE_BUFFER(adb_reply, PMUState),
> > > > +        VMSTATE_END_OF_LIST()
> > > >        }
> > > >    };
> > > 
> > > Gah, yes indeed it certainly looks like I missed this whilst working on the
> > > PMU code :(
> > > 
> > > Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> > > 
> > > Just out of interest does a savevm/loadvm migration still succeed once this
> > > has been added?
> > 
> > Have you got a suggested command line to test it with?
> 
> I'm effectively AFK until tomorrow now, but just quickly:
> 
> $ ./qemu-system-ppc -M mac99,via=pmu
> 
> Note that PMU support is new for 3.0 so there shouldn't be any backward
> compatibility issue here.

[root@virtlab414 try-64]# ./ppc-softmmu/qemu-system-ppc -M mac99,via=pmu -nographic /home/vms/dummy1.qcow2 
QEMU 2.12.50 monitor - type 'help' for more information
(qemu) ss>> et_property: NULL phandle

>> =============================================================
>> OpenBIOS 1.1 [Jun 18 2018 18:20]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 128M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,G4
milliseconds isn't unique.
saWelcome to OpenBIOS v1.1 built on Jun 18 2018 18:20
Trying hd:,\\:tbxi...
savTrying hd:,\ppc\bootinfo.txt...
Trying hd:,%BOOT...
saveNo valid state has been set by load or init-program


(qemu) 
  ok
0 >   ok
0 > (qemu) 
(qemu) savevm "frob"
(qemu) loadvm "frob"
(qemu) 
  ok
0 > 2 2 + . 4  ok

Looks OK to me.

Dave

> 
> ATB,
> 
> Mark.
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

  reply	other threads:[~2018-07-27 15:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27 12:31 [Qemu-devel] [PATCH] macio/pmu: Fix missing vmsd terminator Dr. David Alan Gilbert (git)
2018-07-27 12:38 ` Mark Cave-Ayland
2018-07-27 13:44   ` Dr. David Alan Gilbert
2018-07-27 15:10     ` Mark Cave-Ayland
2018-07-27 15:14       ` Dr. David Alan Gilbert [this message]
2018-10-16 11:30         ` Dr. David Alan Gilbert
2018-10-17  0:34           ` David Gibson
2018-10-17 20:58             ` Mark Cave-Ayland
2018-07-27 12:51 ` Laurent Vivier

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=20180727151412.GC2498@work-vm \
    --to=dgilbert@redhat.com \
    --cc=agraf@suse.de \
    --cc=lvivier@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --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 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.