qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: patches@linaro.org, "Paul Burton" <paul.burton@mips.com>,
	"Aurelien Jarno" <aurelien@aurel32.net>,
	"Yongbok Kim" <yongbok.kim@mips.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	"Juan Quintela" <quintela@redhat.com>,
	dgilbert@redhat.com
Subject: [Qemu-devel] [PATCH 2/2] hw/mips/mips_malta: don't make bios region 'nomigrate'
Date: Mon,  4 Jun 2018 12:03:58 +0100	[thread overview]
Message-ID: <20180604110358.2821-3-peter.maydell@linaro.org> (raw)
In-Reply-To: <20180604110358.2821-1-peter.maydell@linaro.org>

Currently we use memory_region_init_rom_nomigrate() to create
the "bios.1fc" memory region, and we don't manually register
it with vmstate_register_ram(). This currently means that its
contents are migrated but as a ram block whose name is the empty
string; in future it may mean they are not migrated at all. Use
memory_region_init_ram() instead.

Note that this is a a cross-version migration compatibility break
for the "malta" machine.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/mips/mips_malta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c
index af70ecffc0..927944899b 100644
--- a/hw/mips/mips_malta.c
+++ b/hw/mips/mips_malta.c
@@ -1153,7 +1153,7 @@ void mips_malta_init(MachineState *machine)
      * handled by an overlapping region as the resulting ROM code subpage
      * regions are not executable.
      */
-    memory_region_init_ram_nomigrate(bios_copy, NULL, "bios.1fc", BIOS_SIZE,
+    memory_region_init_ram(bios_copy, NULL, "bios.1fc", BIOS_SIZE,
                            &error_fatal);
     if (!rom_copy(memory_region_get_ram_ptr(bios_copy),
                   FLASH_ADDRESS, BIOS_SIZE)) {
-- 
2.17.1

  parent reply	other threads:[~2018-06-04 11:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-04 11:03 [Qemu-devel] [PATCH 0/2] mips boston/malta: don't have nomigrate RAM regions Peter Maydell
2018-06-04 11:03 ` [Qemu-devel] [PATCH 1/2] hw/mips/boston: don't make flash region 'nomigrate' Peter Maydell
2018-06-04 13:21   ` Cédric Le Goater
2018-06-04 14:02   ` Philippe Mathieu-Daudé
2018-06-04 11:03 ` Peter Maydell [this message]
2018-06-04 13:21   ` [Qemu-devel] [PATCH 2/2] hw/mips/mips_malta: don't make bios " Cédric Le Goater
2018-06-04 14:02   ` Philippe Mathieu-Daudé
2018-06-15 10:08 ` [Qemu-devel] [PATCH 0/2] mips boston/malta: don't have nomigrate RAM regions Peter Maydell
2018-06-15 17:14   ` Paul Burton

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=20180604110358.2821-3-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=aurelien@aurel32.net \
    --cc=clg@kaod.org \
    --cc=dgilbert@redhat.com \
    --cc=patches@linaro.org \
    --cc=paul.burton@mips.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=yongbok.kim@mips.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).