* Re: [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate
[not found] <CAEkmjvUix62F8EK9pHboRZOcpycCgMapiqVNM976UVkv-B6u5g@mail.gmail.com>
@ 2018-08-13 16:27 ` Paolo Bonzini
2018-08-13 16:30 ` Peter Maydell
2018-08-13 16:45 ` Dr. David Alan Gilbert
0 siblings, 2 replies; 5+ messages in thread
From: Paolo Bonzini @ 2018-08-13 16:27 UTC (permalink / raw)
To: Frank Yang, Peter Maydell, Dr. David Alan Gilbert, qemu-devel
On 13/08/2018 18:16, Frank Yang wrote:
> Hi Paolo,
>
> I see that migration/ram.c saves RAMBlocks associated with memory
> regions initialized with nomigrate. Is this intended?
Probably the name and size of the RAMBlocks must match but the contents
need not (but honestly I haven't looked at the code to find the answer).
CCing the qemu mailing list (always a good idea) and a couple people
that might know.
Paolo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate
2018-08-13 16:27 ` [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate Paolo Bonzini
@ 2018-08-13 16:30 ` Peter Maydell
2018-08-13 16:45 ` Dr. David Alan Gilbert
1 sibling, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2018-08-13 16:30 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Frank Yang, Dr. David Alan Gilbert, qemu-devel
On 13 August 2018 at 17:27, Paolo Bonzini <pbonzini@redhat.com> wrote:
> On 13/08/2018 18:16, Frank Yang wrote:
>> Hi Paolo,
>>
>> I see that migration/ram.c saves RAMBlocks associated with memory
>> regions initialized with nomigrate. Is this intended?
Which regions, and which version of QEMU? In general for
current-head-of-master this shouldn't happen, unless the
code has subsequently manually registered the ramblock
for migration by calling vmstate_register_ram() itself
at some point after the MR is initialized.
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate
2018-08-13 16:27 ` [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate Paolo Bonzini
2018-08-13 16:30 ` Peter Maydell
@ 2018-08-13 16:45 ` Dr. David Alan Gilbert
2018-08-13 21:06 ` Frank Yang
1 sibling, 1 reply; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2018-08-13 16:45 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Frank Yang, Peter Maydell, qemu-devel
* Paolo Bonzini (pbonzini@redhat.com) wrote:
> On 13/08/2018 18:16, Frank Yang wrote:
> > Hi Paolo,
> >
> > I see that migration/ram.c saves RAMBlocks associated with memory
> > regions initialized with nomigrate. Is this intended?
>
> Probably the name and size of the RAMBlocks must match but the contents
> need not (but honestly I haven't looked at the code to find the answer).
> CCing the qemu mailing list (always a good idea) and a couple people
> that might know.
All the migration code should now be using RAMBLOCK_FOREACH_MIGRATABLE and
qemu_ram_is_migratable whenever it's iterating the ramblock list,
so that *shouldn't* happen these days.
Of course we could have messed it up somewhere; what are you seeing?
Dave
> Paolo
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate
2018-08-13 16:45 ` Dr. David Alan Gilbert
@ 2018-08-13 21:06 ` Frank Yang
2018-08-14 8:16 ` Dr. David Alan Gilbert
0 siblings, 1 reply; 5+ messages in thread
From: Frank Yang @ 2018-08-13 21:06 UTC (permalink / raw)
To: dgilbert; +Cc: Paolo Bonzini, peter.maydell, qemu-devel
Ah got it, thanks for the replies / info!
We're using a modified QEMU 2.12, and I don't see the migratable-only loops
and field, so it either got missed in the rebase or was added after 2.12.
Frank
On Mon, Aug 13, 2018 at 9:45 AM Dr. David Alan Gilbert <dgilbert@redhat.com>
wrote:
> * Paolo Bonzini (pbonzini@redhat.com) wrote:
> > On 13/08/2018 18:16, Frank Yang wrote:
> > > Hi Paolo,
> > >
> > > I see that migration/ram.c saves RAMBlocks associated with memory
> > > regions initialized with nomigrate. Is this intended?
> >
> > Probably the name and size of the RAMBlocks must match but the contents
> > need not (but honestly I haven't looked at the code to find the answer).
> > CCing the qemu mailing list (always a good idea) and a couple people
> > that might know.
>
> All the migration code should now be using RAMBLOCK_FOREACH_MIGRATABLE and
> qemu_ram_is_migratable whenever it's iterating the ramblock list,
> so that *shouldn't* happen these days.
> Of course we could have messed it up somewhere; what are you seeing?
>
> Dave
> > Paolo
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate
2018-08-13 21:06 ` Frank Yang
@ 2018-08-14 8:16 ` Dr. David Alan Gilbert
0 siblings, 0 replies; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2018-08-14 8:16 UTC (permalink / raw)
To: Frank Yang; +Cc: Paolo Bonzini, peter.maydell, qemu-devel
* Frank Yang (lfy@google.com) wrote:
> Ah got it, thanks for the replies / info!
>
> We're using a modified QEMU 2.12, and I don't see the migratable-only loops
> and field, so it either got missed in the rebase or was added after 2.12.
It went in after 2.12; it's b895de50 (followed by some cleanups to get
some we missed).
Dave
> Frank
>
> On Mon, Aug 13, 2018 at 9:45 AM Dr. David Alan Gilbert <dgilbert@redhat.com>
> wrote:
>
> > * Paolo Bonzini (pbonzini@redhat.com) wrote:
> > > On 13/08/2018 18:16, Frank Yang wrote:
> > > > Hi Paolo,
> > > >
> > > > I see that migration/ram.c saves RAMBlocks associated with memory
> > > > regions initialized with nomigrate. Is this intended?
> > >
> > > Probably the name and size of the RAMBlocks must match but the contents
> > > need not (but honestly I haven't looked at the code to find the answer).
> > > CCing the qemu mailing list (always a good idea) and a couple people
> > > that might know.
> >
> > All the migration code should now be using RAMBLOCK_FOREACH_MIGRATABLE and
> > qemu_ram_is_migratable whenever it's iterating the ramblock list,
> > so that *shouldn't* happen these days.
> > Of course we could have messed it up somewhere; what are you seeing?
> >
> > Dave
> > > Paolo
> > --
> > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> >
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-08-14 8:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAEkmjvUix62F8EK9pHboRZOcpycCgMapiqVNM976UVkv-B6u5g@mail.gmail.com>
2018-08-13 16:27 ` [Qemu-devel] RAMBlocks and memory_region_init_ram_nomigrate Paolo Bonzini
2018-08-13 16:30 ` Peter Maydell
2018-08-13 16:45 ` Dr. David Alan Gilbert
2018-08-13 21:06 ` Frank Yang
2018-08-14 8:16 ` Dr. David Alan Gilbert
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).