There's no need to execute any instructions for doing so. Signed-off-by: Jan Beulich <jbeul...@suse.com> --- I wonder whether mem_sharing_init() shouldn't go away altogether then.
--- a/xen/arch/x86/mm/mem_sharing.c +++ b/xen/arch/x86/mm/mem_sharing.c @@ -65,8 +65,8 @@ static DEFINE_PER_CPU(pg_lock_data_t, __ #if MEM_SHARING_AUDIT -static struct list_head shr_audit_list; -static spinlock_t shr_audit_lock; +static LIST_HEAD(shr_audit_list); +static DEFINE_SPINLOCK(shr_audit_lock); static DEFINE_RCU_READ_LOCK(shr_audit_read_lock); /* RCU delayed free of audit list entry */ @@ -1654,9 +1654,5 @@ int mem_sharing_domctl(struct domain *d, void __init mem_sharing_init(void) { printk("Initing memory sharing.\n"); -#if MEM_SHARING_AUDIT - spin_lock_init(&shr_audit_lock); - INIT_LIST_HEAD(&shr_audit_list); -#endif } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel