From: Vitaly Kuznetsov Date: Fri, 29 Jan 2016 16:50:41 +0000 (+0100) Subject: reset runstate_guest handles on soft reset X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7ff56b7e4d2d110db93124457cbbdb8c6bee08e6;p=people%2Fliuw%2Flibxenctrl-split%2Fxen.git reset runstate_guest handles on soft reset runstate_guest handles need to be reset to prevent update_runstate_area() corrupting guest's memory after we resume the guest. Signed-off-by: Vitaly Kuznetsov --- diff --git a/xen/common/domain.c b/xen/common/domain.c index 2979c1b70d..603b7188ad 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -1074,7 +1074,10 @@ int domain_soft_reset(struct domain *d) grant_table_warn_active_grants(d); for_each_vcpu ( d, v ) + { + set_xen_guest_handle(runstate_guest(v), NULL); unmap_vcpu_info(v); + } rc = arch_domain_soft_reset(d); if ( !rc )