From 45f33f01f359d6028ec4b4018a2bf2ff53806e11 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Fri, 22 Jun 2012 15:21:07 +0200 Subject: Maintain the number of dirty pages Calculate the number of dirty pages takes a lot on hosts with lots of memory. Just maintain how many pages are dirty. Signed-off-by: Juan Quintela --- cpu-all.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cpu-all.h') diff --git a/cpu-all.h b/cpu-all.h index 9dc249a165..82ba1d7cd5 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -486,6 +486,7 @@ typedef struct RAMBlock { typedef struct RAMList { uint8_t *phys_dirty; QLIST_HEAD(, RAMBlock) blocks; + uint64_t dirty_pages; } RAMList; extern RAMList ram_list; -- cgit v1.2.1