[CRIU] [PATCH 6/8] cr: use uint64_t to represent a virtual address

Alexander Kartashov alekskartashov at parallels.com
Fri Jan 18 02:08:37 EST 2013


The patch reverts the commit 58064d9b723bd5a5e5910ed752fb3b19cc962fa8.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 cr-restore.c   |    2 +-
 pie/parasite.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 309a548..fb4aace 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -278,7 +278,7 @@ static int restore_priv_vma_content(pid_t pid)
 	 * Read page contents.
 	 */
 	while (1) {
-		unsigned long va, page_offset;
+		uint64_t va, page_offset;
 		char buf[PAGE_SIZE];
 		void *p;
 
diff --git a/pie/parasite.c b/pie/parasite.c
index 3e444ea..c344779 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -190,7 +190,7 @@ static int dump_pages(struct parasite_dump_pages_args *args)
 
 	ret = 0;
 	for (pfn = 0; pfn < nrpages; pfn++) {
-		unsigned long vaddr;
+		uint64_t vaddr;
 
 		if (should_dump_page(&args->vma_entry, map[pfn])) {
 			/*
-- 
1.7.10.4



More information about the CRIU mailing list