CPUPhysMemoryClient: batch addresses in catchup
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 3 May 2011 18:36:58 +0000 (12:36 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 12 Jun 2011 07:33:27 +0000 (10:33 +0300)
commitf705feb6cc5687cd3116ccba800a235ca487f26f
tree68190158266dade7b802484acd626ba67c799c57
parentccdcb7d6494324a3f646751698de63115a6777ca
CPUPhysMemoryClient: batch addresses in catchup

When a phys memory client registers and we play catchup by walking
the page tables, we can make a huge improvement in the number of
times the set_memory callback is called by batching contiguous
pages together.  With a 4G guest, this reduces the number of callbacks
at registration from 1048866 to 296.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
exec.c