Received: by 10.192.165.148 with SMTP id m20csp5333155imm; Wed, 9 May 2018 03:22:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpooqqSrwLllkuRKgT8YxS9nmvKfiz22Olrr3ACLfB+6exseAJU0kFHjmer7Qa7Cs1sOFP9 X-Received: by 2002:a63:774f:: with SMTP id s76-v6mr3480395pgc.403.1525861364234; Wed, 09 May 2018 03:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525861364; cv=none; d=google.com; s=arc-20160816; b=uaKN0igsQjKKL6FfOz2+m0ehNwYgPmwT6+bYeTKGuv4ssTicfREwyCi9UJBbZfY9oj PklIhpHQ0W7XoMe/43k/8vucQ3VGQBSQ2egk2iKIZdy/OJbA0cDK2Ib0obuuequaQ1Mf L9MVAPR/3ZDk/mfmqH74ElLZZ1Nr4LZK2fqQpxGi5K07lGJ65gTqv1SuEpLQwI1MUTLi JOQ+RJxkcHlWfEItRXp4m12W9aX6sI8HGgk3ra8abYJZIfqCrQWJ+FeZW1zsOeONQrzs 77bZeQQkiFEbu/+o8HQqrheCMwzh9nRMuW+vra1QbSindjCx85Xe5zSgZWUXUGbxCelJ Rw/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=tmm9hm+BBKWiNdJkldBi0YtsaXhS6/t0H73Ls5plIus=; b=vilaDfHLlomBsHjO1G8B9KY7vveIK3PDtB2jL3aLfufh6Pj/NHXkoJWwQQsqt+DRi5 0Y/wQDnPR9kRwQEliLuxLvbdN01Sji2C+7ndlN0wo830DiLp32T3BaKwos3fuYphQSlN cV7sFkEvhXN334XYZEAoFAy++UYs0v892OJgYQIIJ7Isg+kVi8RxwgoanrVX9amip0Lj XM2BerRw2ZNzGlQ7JioKeCPfnDr6K//C5eEkXL7y1N4Qffo6WClj/I3e15JRveGMeTcn 5HyqC1foWIMZmB4ZeuINedGCaVjsIVY2xhRnmMY5IBcAE03d3Q8WeO8hHX8h6cecMdMa 5DzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si22154988plk.433.2018.05.09.03.22.30; Wed, 09 May 2018 03:22:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934398AbeEIKWH (ORCPT + 99 others); Wed, 9 May 2018 06:22:07 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:16799 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934288AbeEIKVr (ORCPT ); Wed, 9 May 2018 06:21:47 -0400 X-IronPort-AV: E=Sophos;i="5.49,381,1520899200"; d="scan'208";a="54081120" From: Roger Pau Monne To: CC: Roger Pau Monne , Boris Ostrovsky , Juergen Gross , Subject: [PATCH v2 2/3] xen/store: do not store local values in xen_start_info Date: Wed, 9 May 2018 11:21:28 +0100 Message-ID: <20180509102129.14832-3-roger.pau@citrix.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509102129.14832-1-roger.pau@citrix.com> References: <20180509102129.14832-1-roger.pau@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no need to store the xenstore page or event channel in xen_start_info if they are locally initialized. This also fixes PVH local xenstore initialization due to the lack of xen_start_info in that case. Signed-off-by: Boris Ostrovsky Signed-off-by: Roger Pau Monné --- Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-devel@lists.xenproject.org --- drivers/xen/xenbus/xenbus_probe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index ec9eb4fba59c..f2088838f690 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c @@ -710,7 +710,7 @@ static int __init xenstored_local_init(void) if (!page) goto out_err; - xen_store_gfn = xen_start_info->store_mfn = virt_to_gfn((void *)page); + xen_store_gfn = virt_to_gfn((void *)page); /* Next allocate a local port which xenstored can bind to */ alloc_unbound.dom = DOMID_SELF; @@ -722,8 +722,7 @@ static int __init xenstored_local_init(void) goto out_err; BUG_ON(err); - xen_store_evtchn = xen_start_info->store_evtchn = - alloc_unbound.port; + xen_store_evtchn = alloc_unbound.port; return 0; -- 2.17.0