qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Zeng Guang <guang.zeng@intel.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Juan Quintela <quintela@redhat.com>,
	David Hildenbrand <david@redhat.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	wei.w.wang@intel.com, Jiri Slaby <jslaby@suse.cz>,
	chao.gao@intel.com
Subject: Re: [PATCH] hw/misc/edu: support pci device state migration
Date: Thu, 23 Jul 2020 09:01:00 +0800	[thread overview]
Message-ID: <03961ed0-f917-8f2c-0262-442d768ce3e4@intel.com> (raw)
In-Reply-To: <CAFEAcA-M6OghOCX76q2kZDh_Nf1YLEDSLZcwa2ZVJgzwjdDaWw@mail.gmail.com>

On 7/22/2020 4:37 PM, Peter Maydell wrote:
> On Wed, 22 Jul 2020 at 09:31, Zeng Guang <guang.zeng@intel.com> wrote:
>> Currently edu device doesn't support live migration. Part of PCI
>> configuration information would be lost after migration.
>>
>> PCI device state in source VM:
>>       Bus  0, device   3, function 0:
>>       Class 0255: PCI device 1234:11e8
>>       PCI subsystem 1af4:1100
>>       IRQ 11, pin A
>>       BAR0: 32 bit memory at 0xfea00000 [0xfeafffff].
>>       id ""
>>
>> PCI device state in destination VM:
>>       Bus  0, device   3, function 0:
>>       Class 0255: PCI device 1234:11e8
>>       PCI subsystem 1af4:1100
>>       IRQ 0, pin A
>>       BAR0: 32 bit memory at 0xffffffffffffffff [0x000ffffe].
>>       id ""
>>
>> Add VMState for edu device to support migration.
>>
>> Signed-off-by: Gao Chao <chao.gao@intel.com>
>> Signed-off-by: Zeng Guang <guang.zeng@intel.com>
>> Reviewed-by: Wei Wang <wei.w.wang@intel.com>
> Hi; thanks for adding migration support for this device.
>
>
>> +static const VMStateDescription vmstate_edu = {
>> +    .name = "edu",
>> +    .version_id = 1,
>> +    .minimum_version_id = 1,
>> +    .fields = (VMStateField[]) {
>> +        VMSTATE_PCI_DEVICE(pdev, EduState),
> This isn't the only state that the device has. You
> also need to migrate:
> stopping, addr4, fact, status, irq_status, the struct dma_state members,
> the dma_timer, dma_buf and dma_mask.
Right . I will add those params in VMstate and update patch. Thanks.
>
> thanks
> -- PMM


      reply	other threads:[~2020-07-23  1:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22  8:13 [PATCH] hw/misc/edu: support pci device state migration Zeng Guang
2020-07-22  8:37 ` Peter Maydell
2020-07-23  1:01   ` Zeng Guang [this message]

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=03961ed0-f917-8f2c-0262-442d768ce3e4@intel.com \
    --to=guang.zeng@intel.com \
    --cc=chao.gao@intel.com \
    --cc=david@redhat.com \
    --cc=jslaby@suse.cz \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=wei.w.wang@intel.com \
    /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).