All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org
Subject: [Qemu-devel] [PULL v2 2/9] hw/mips/boston: don't make flash region 'nomigrate'
Date: Wed, 27 Jun 2018 20:29:02 +0200	[thread overview]
Message-ID: <1530124149-3900-3-git-send-email-aleksandar.markovic@rt-rk.com> (raw)
In-Reply-To: <1530124149-3900-1-git-send-email-aleksandar.markovic@rt-rk.com>

From: Peter Maydell <peter.maydell@linaro.org>

Currently we use memory_region_init_rom_nomigrate() to create
the "boston.flash" 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 "boston" machine.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
---
 hw/mips/boston.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hw/mips/boston.c b/hw/mips/boston.c
index 52cce19..14e6f95 100644
--- a/hw/mips/boston.c
+++ b/hw/mips/boston.c
@@ -471,8 +471,7 @@ static void boston_mach_init(MachineState *machine)
     sysbus_mmio_map_overlap(SYS_BUS_DEVICE(s->cps), 0, 0, 1);
 
     flash =  g_new(MemoryRegion, 1);
-    memory_region_init_rom_nomigrate(flash, NULL,
-                                     "boston.flash", 128 * M_BYTE, &err);
+    memory_region_init_rom(flash, NULL, "boston.flash", 128 * M_BYTE, &err);
     memory_region_add_subregion_overlap(sys_mem, 0x18000000, flash, 0);
 
     ddr = g_new(MemoryRegion, 1);
-- 
2.7.4

  parent reply	other threads:[~2018-06-27 18:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-27 18:29 [Qemu-devel] [PULL v2 0/9] MIPS queue 2018-06-27 Aleksandar Markovic
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 1/9] MAINTAINERS: update target-mips maintainers Aleksandar Markovic
2018-06-27 18:29 ` Aleksandar Markovic [this message]
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 3/9] hw/mips/mips_malta: don't make bios region 'nomigrate' Aleksandar Markovic
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 4/9] hw/pci-host/xilinx-pcie: don't make "io" region be RAM Aleksandar Markovic
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 5/9] target/mips: Raise a RI when given fs is n/a from CTC1 Aleksandar Markovic
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 6/9] target/mips: Fix microMIPS on reset Aleksandar Markovic
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 7/9] target/mips: Update gen_flt_ldst() Aleksandar Markovic
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 8/9] target/mips: Fix data type for offset Aleksandar Markovic
2018-06-27 18:29 ` [Qemu-devel] [PULL v2 9/9] target/mips: Fix gdbstub to read/write 64 bit FP registers Aleksandar Markovic
2018-06-28 14:30 ` [Qemu-devel] [PULL v2 0/9] MIPS queue 2018-06-27 Peter Maydell

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=1530124149-3900-3-git-send-email-aleksandar.markovic@rt-rk.com \
    --to=aleksandar.markovic@rt-rk.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 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.