]> git.proxmox.com Git - qemu.git/commit
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)
commit2173a75fb714193c4df9d5ddf9d015786566b19a
tree68190158266dade7b802484acd626ba67c799c57
parent69c8944f17cb6c084567a16c080cfa7bc780e668
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