Displaying 2 results from an estimated 2 matches for "map_foreign".
2007 Mar 24
5
memsize for HVM save/restore
As you know, HVM save/restore broke recently because restored config miss guest
memsize that used by xc_hvm_restore to locate some pfn.
After discussion, we decided to remove the pfn deduction logic from restore side
by adding a general memory layout. I have a patch for it.
But then qemu broke, because it also require the memsize to locate the share
page. We can''t use the previous
2007 Jan 11
0
[PATCH 6/8] HVM save restore: guest memory handling
...ERROR("Max batch size exceeded. Giving up.");
+ goto out;
+ }
+
+ if (!read_exact(io_fd, region_pfn_type, j*sizeof(unsigned long))) {
+ ERROR("Error when reading region pfn types");
+ goto out;
+ }
+
+ region_base = xc_map_foreign_batch(
+ xc_handle, dom, PROT_WRITE, region_pfn_type, j);
+
+ for ( i = 0; i < j; i++ )
+ {
+ void *page;
+
+ pfn = region_pfn_type[i];
+ if ( pfn > max_pfn )
+ {
+ ERROR("pfn out of range");
+...