[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 09/16] arm/monitor: move d->monitor cleanup to monitor_cleanup_domain()
d->monitor is a monitor subsystem resource, clean it up in the proper stub. Signed-off-by: Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx> --- xen/include/asm-arm/monitor.h | 2 +- xen/include/asm-arm/vm_event.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/include/asm-arm/monitor.h b/xen/include/asm-arm/monitor.h index 5a0fc65..9a9734a 100644 --- a/xen/include/asm-arm/monitor.h +++ b/xen/include/asm-arm/monitor.h @@ -54,7 +54,7 @@ static inline int monitor_init_domain(struct domain *d) static inline void monitor_cleanup_domain(struct domain *d) { - /* No arch-specific domain cleanup on ARM. */ + memset(&d->monitor, 0, sizeof(d->monitor)); } static inline diff --git a/xen/include/asm-arm/vm_event.h b/xen/include/asm-arm/vm_event.h index 93fc4db..3a8f585 100644 --- a/xen/include/asm-arm/vm_event.h +++ b/xen/include/asm-arm/vm_event.h @@ -39,8 +39,6 @@ void vm_event_cleanup_domain(struct domain *d, struct vm_event_domain *ved) /* Uninitialize specified subsystem. */ if ( &d->vm_event->monitor == ved ) monitor_cleanup_domain(d); - - memset(&d->monitor, 0, sizeof(d->monitor)); } static inline void vm_event_toggle_singlestep(struct domain *d, struct vcpu *v) -- 2.5.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |