All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
To: Om Barkare <ombarkare123@gmail.com>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, philmd@mailo.com, kwolf@redhat.com,
	hreitz@redhat.com
Subject: Re: [PATCH v2] hw/block: Add migration support for pflash_cfi02.c
Date: Thu, 3 Sep 2026 11:45:01 +0200	[thread overview]
Message-ID: <174392f4-ca6e-4f61-8b07-1601ad8be389@oss.qualcomm.com> (raw)
In-Reply-To: <20260827193942.69406-1-ombarkare123@gmail.com>

On 27/8/26 21:39, Om Barkare wrote:
> From: OmBarkare <ombarkare123@gmail.com>
> 
> Device did not have migration support, which would result in its
> internal state being lost during migration or saves.
> 
> Add VMStateDescription to serialize state and set memory regions
> romd_mode to rom_mode field in post load hook
> 
> total_sectors was changed from uint32_t to int32_t to satisfy the
> VMSTATE_BITMAP macro's _field_size argument, but that is OK because
> it's a value is calculated using the size of the flash and it will
> never be large enough to overflow int32_t
> 
> The only boards using pflash_cfi02 are the sh4 r2d and
> the arm canon-a1100, musicpal and xilinx-zynq-a9
> 
> Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4157
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Om Barkare <ombarkare123@gmail.com>
> ---
> Changes since v1
> - Add "bypass" to vmstate
> - Remove the vmstate subsection and add these states to the main vmstate
>    instead
> - Remove the pflash_erase_sector_needed function which was related to
>    the subsection as no longer needed
> 
>   hw/block/pflash_cfi02.c | 52 ++++++++++++++++++++++++++++++++++++++++-
>   1 file changed, 51 insertions(+), 1 deletion(-)

Queued, thanks!


      parent reply	other threads:[~2026-09-03  9:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-27 19:39 [PATCH v2] hw/block: Add migration support for pflash_cfi02.c Om Barkare
2026-09-01 14:22 ` Peter Maydell
2026-09-03  9:45 ` Philippe Mathieu-Daudé [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=174392f4-ca6e-4f61-8b07-1601ad8be389@oss.qualcomm.com \
    --to=philmd@oss.qualcomm.com \
    --cc=hreitz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=ombarkare123@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@mailo.com \
    --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.