Received: by 10.192.165.148 with SMTP id m20csp1936701imm; Thu, 3 May 2018 07:47:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr+2dZRsw2Dro/szrSARBt+sZR8qKAucnOyk8Q/T1Ys+5qk/SyGww7ia0F72eOZkZN0FxlO X-Received: by 2002:a65:4d8f:: with SMTP id p15-v6mr15378562pgq.305.1525358843759; Thu, 03 May 2018 07:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525358843; cv=none; d=google.com; s=arc-20160816; b=lB8XHiPzTR4yhxIX7r7mtVK2eVQlZf42em+4vj4z3IhJez7m5YULbBIwYK7fEfRNSs /m3UaMNMLMZQBQ8VUpzDdez6rdup45TPc3pO0DZfRKgaTuwZ9ollV6d7+yX/jXKKfKlF dpsqJtk+RdQ76mLKmJyOQz57T49vfe6vSh7ZIP6ju26t/CMIoJF58gon7sgvB27Y0vQ/ i+IU+pdHx804uDJip/QJmAqnriUqzmiiXZa21yCGKtd99GcuyCbqBcVuTtHmbVrR5V5g 7AIJ5KmyM6vNaza8C4ZpJyhVSi8y1DeFTC+Hw4bnWOsQ+i1uqrmxaVV1cXdKN2ysOaQP HNHg== 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=RmG5jkerYFOvbLOInmyu3BJF13MDGgtZwzI1fV2Sz6d3aXn0ArKXC2sCorMzE/4khT /mkETbaL8TNcRlVMfnJ1CkERMvhOp9JuZOHrC3xG8vv+v7szCh7NczE/YUzz5f6/ZpZU 15qhTO4wBeo9R3UbL4ZUhdsHdtGznrmh7iDoMWwBbepIr8O3wT9YsLWzLHqijgWYqSvj WQc4PRVU/9Ps0oFVX8EjN1vmLkpfE+rbchdj493IaegpvYV7Jpep7bKog27hvK61FsGg Ye1SMqLL9U4ro5DCaD6QT4O2DeUkuGPIvzBX/jnbzImAQuDR7U9hZNG0R58ql9f3kpku OUcw== 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 e129si2662554pfa.217.2018.05.03.07.47.09; Thu, 03 May 2018 07:47:23 -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 S1751508AbeECOqU (ORCPT + 99 others); Thu, 3 May 2018 10:46:20 -0400 Received: from smtp.ctxuk.citrix.com ([185.25.65.24]:63202 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751307AbeECOpx (ORCPT ); Thu, 3 May 2018 10:45:53 -0400 X-IronPort-AV: E=Sophos;i="5.49,358,1520899200"; d="scan'208";a="72566491" From: Roger Pau Monne To: CC: Roger Pau Monne , Boris Ostrovsky , Juergen Gross , Subject: [PATCH 2/3] xen/store: do not store local values in xen_start_info Date: Thu, 3 May 2018 15:45:25 +0100 Message-ID: <20180503144525.61065-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180503143646.60747-1-roger.pau@citrix.com> References: <20180503143646.60747-1-roger.pau@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) 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