* huge 2nd stage pages and live migration
@ 2014-03-28 17:39 Mario Smarduch
2014-03-28 19:17 ` Christoffer Dall
0 siblings, 1 reply; 2+ messages in thread
From: Mario Smarduch @ 2014-03-28 17:39 UTC (permalink / raw)
To: kvmarm, kvm
Hello
I've been working on live migration for ARM-KVM, and noticed
problem completing migration with huge 2nd stage tables.
Aafter write protecting the VM, for write fault 512 page bits
are set in dirty_bitmap[] to take into account future writes to
huge page.The pmd is write protected again when QEMU reads the
dirty log, and the cycle repeats. With this not even a idle
32MB VM completes live migration.
If QEMU uses THPs, and 2nd stage tables use pte's, then there
is no problem, live migration is quick. I'm assumung QEMU and Guest
huge pages with 2nd stage page table pte's should work fine too.
I'm wondering how this has been solved (for any architecture)?
- Mario
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: huge 2nd stage pages and live migration
2014-03-28 17:39 huge 2nd stage pages and live migration Mario Smarduch
@ 2014-03-28 19:17 ` Christoffer Dall
0 siblings, 0 replies; 2+ messages in thread
From: Christoffer Dall @ 2014-03-28 19:17 UTC (permalink / raw)
To: Mario Smarduch; +Cc: kvmarm, kvm
On Fri, Mar 28, 2014 at 10:39:25AM -0700, Mario Smarduch wrote:
> Hello
>
> I've been working on live migration for ARM-KVM, and noticed
> problem completing migration with huge 2nd stage tables.
>
>
> Aafter write protecting the VM, for write fault 512 page bits
> are set in dirty_bitmap[] to take into account future writes to
> huge page.The pmd is write protected again when QEMU reads the
> dirty log, and the cycle repeats. With this not even a idle
> 32MB VM completes live migration.
>
> If QEMU uses THPs, and 2nd stage tables use pte's, then there
> is no problem, live migration is quick. I'm assumung QEMU and Guest
> huge pages with 2nd stage page table pte's should work fine too.
>
> I'm wondering how this has been solved (for any architecture)?
>
I don't know if there's a generic solution (have you looked at x86/PPC
what they do?), but I don't see any conceptual problem with putting the
VM into use-pte-for-2nd-stage-mappings-I'm-migrating-mode.
-Christoffer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-28 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28 17:39 huge 2nd stage pages and live migration Mario Smarduch
2014-03-28 19:17 ` Christoffer Dall
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).