qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Juraj Marcin <jmarcin@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [PATCH v3 0/4] virtio-mem: Implement support for suspend+wake-up with plugged memory
Date: Mon, 9 Sep 2024 14:08:31 +0200	[thread overview]
Message-ID: <5ff32b7e-0db7-4f10-8a8d-2c4f1f3a95df@redhat.com> (raw)
In-Reply-To: <20240904103722.946194-1-jmarcin@redhat.com>

On 04.09.24 12:37, Juraj Marcin wrote:
> Currently, the virtio-mem device would unplug all the memory with any
> reset request, including when the machine wakes up from a suspended
> state (deep sleep). This would lead to a loss of the contents of the
> guest memory and therefore is disabled by the virtio-mem Linux Kernel
> driver unless the VIRTIO_MEM_F_PERSISTENT_SUSPEND virtio feature is
> exposed. [1]
> 
> To make deep sleep with virtio-mem possible, we need to differentiate
> cold start reset from wake-up reset. The first patch updates
> qemu_system_reset() and MachineClass children to accept ResetType
> instead of ShutdownCause, which then could be passed down the device
> tree. The second patch then introduces the new reset type for the
> wake-up event and updates the i386 wake-up method (only architecture
> using the explicit wake-up method).
> 
> The third patch replaces LegacyReset with the Resettable interface in
> virtio-mem, so the memory device can access the reset type in the hold
> phase. The last patch of the series implements the final support in the
> hold phase of the virtio-mem reset callback and exposes
> VIRTIO_MEM_F_PERSISTENT_SUSPEND to the kernel.
> 
> [1]: https://lore.kernel.org/all/20240318120645.105664-1-david@redhat.com/

Thanks, I'll queue this to

https://github.com/davidhildenbrand/qemu.git mem-next

@Peter, it would be great if you could have another look at patch #2, 
thanks.

-- 
Cheers,

David / dhildenb



      parent reply	other threads:[~2024-09-09 12:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04 10:37 [PATCH v3 0/4] virtio-mem: Implement support for suspend+wake-up with plugged memory Juraj Marcin
2024-09-04 10:37 ` [PATCH v3 1/4] reset: Use ResetType for qemu_devices_reset() and MachineClass::reset() Juraj Marcin
2024-09-04 10:37 ` [PATCH v3 2/4] reset: Add RESET_TYPE_WAKEUP Juraj Marcin
2024-09-04 10:37 ` [PATCH v3 3/4] virtio-mem: Use new Resettable framework instead of LegacyReset Juraj Marcin
2024-09-04 10:37 ` [PATCH v3 4/4] virtio-mem: Add support for suspend+wake-up with plugged memory Juraj Marcin
2024-09-09 12:08 ` David Hildenbrand [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=5ff32b7e-0db7-4f10-8a8d-2c4f1f3a95df@redhat.com \
    --to=david@redhat.com \
    --cc=jmarcin@redhat.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).