@@ -80,6 +80,9 @@ void monitor_cleanup_domain(struct domain *d)
memset(&d->arch.monitor, 0, sizeof(d->arch.monitor));
memset(&d->monitor, 0, sizeof(d->monitor));
+
+ d->arch.mem_access_emulate_each_rep = 0;
+
d->monitor.initialised = 0;
}
@@ -68,8 +68,6 @@ void vm_event_cleanup_domain(struct domain *d, struct vm_event_domain *ved)
/* Per-vcpu uninitializations. */
for_each_vcpu ( d, v )
vm_event_cleanup_vcpu_destroy(v);
-
- d->arch.mem_access_emulate_each_rep = 0;
}
void vm_event_toggle_singlestep(struct domain *d, struct vcpu *v)
Move cleanup of mem_access_emulate_each_rep to monitor_cleanup_domain() as the field is part of the monitor subsystem's resources. Signed-off-by: Corneliu ZUZU <czuzu@bitdefender.com> --- xen/arch/x86/monitor.c | 3 +++ xen/arch/x86/vm_event.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-)