aboutsummaryrefslogtreecommitdiff
path: root/system/xen/patches/xen-4.7-regression-when-saving-a-pv-guest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/xen/patches/xen-4.7-regression-when-saving-a-pv-guest.patch')
-rw-r--r--system/xen/patches/xen-4.7-regression-when-saving-a-pv-guest.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/xen/patches/xen-4.7-regression-when-saving-a-pv-guest.patch b/system/xen/patches/xen-4.7-regression-when-saving-a-pv-guest.patch
new file mode 100644
index 0000000000000..457fa51f23a6e
--- /dev/null
+++ b/system/xen/patches/xen-4.7-regression-when-saving-a-pv-guest.patch
@@ -0,0 +1,12 @@
+diff --git a/tools/libxc/xc_sr_save_x86_pv.c b/tools/libxc/xc_sr_save_x86_pv.c
+index 4a29460..7043409 100644
+--- a/tools/libxc/xc_sr_save_x86_pv.c
++++ b/tools/libxc/xc_sr_save_x86_pv.c
+@@ -430,6 +430,8 @@ static int map_p2m_list(struct xc_sr_context *ctx, uint64_t p2m_cr3)
+
+ if ( level == 2 )
+ {
++ if ( saved_idx == idx_end )
++ saved_idx++;
+ max_pfn = ((xen_pfn_t)saved_idx << 9) * fpp - 1;
+ if ( max_pfn < ctx->x86_pv.max_pfn )