]> git.proxmox.com Git - mirror_qemu.git/commitdiff
CPUPhysMemoryClient: Fix typo in phys memory client registration
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 3 May 2011 18:36:32 +0000 (12:36 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 5 May 2011 13:21:46 +0000 (16:21 +0300)
When we register a physical memory client, we try to walk the page
tables, calling the set_memory hook for every entry.  Effectively
playing catchup for the client for everything already registered.
With this type, we only walk the 2nd entry of the l1 table,
typically missing all of the registered memory.

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

diff --git a/exec.c b/exec.c
index d1a066c5acde6e2e24fbe9c8613f725447c879eb..9823e355f7d5f4539e6f933540fe1b495801e7a5 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -1772,7 +1772,7 @@ static void phys_page_for_each(CPUPhysMemoryClient *client)
     int i;
     for (i = 0; i < P_L1_SIZE; ++i) {
         phys_page_for_each_1(client, P_L1_SHIFT / L2_BITS - 1,
-                             l1_phys_map + 1);
+                             l1_phys_map + i);
     }
 }