diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2011-05-03 12:36:32 -0600 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-05-05 16:21:46 +0300 |
commit | c2f42bf003eac96ee4093faaf44cbf784ac64398 (patch) | |
tree | 9573e8935a719ab7eede1e4f4bb18693646a3271 | |
parent | 602ef4d917f78cee8e1057ca85bdc8888a1f7087 (diff) |
CPUPhysMemoryClient: Fix typo in phys memory client registration
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>
-rw-r--r-- | exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |