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 <vkuznets@redhat.com>
This commit is contained in:
Vitaly Kuznetsov authored and Jan Beulich committed 2016-01-29 17:50:41 +01:00
1 parent b848dc83cc
commit 7ff56b7e4d
1 file changed
+3
+3
View File
@@ -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 )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.