Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1057413imm; Fri, 8 Jun 2018 09:18:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLHO4XApE5epIz5yCYvprag1tad9rR9bZhTgJxkKNyZB5dzImsPc+PPdMHiwQtcHMJ/0wcw X-Received: by 2002:a62:c16:: with SMTP id u22-v6mr6669049pfi.177.1528474691757; Fri, 08 Jun 2018 09:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528474691; cv=none; d=google.com; s=arc-20160816; b=ZeJRnd8kDWyk7WXJg7r5gFkPoOC4kFhnQKj++hCEbxjWJeYrN1hj11j+ZQY5BNQnXx AW6ZAq5UcCAjFZVtJyuttb8+L7MM9vHyofTEmJIEs8nZ9+18sBz1ripP55jBS+RxTuUw FvAqFIdyU5NRg6LxO6NPScpzeNEQeG3/dr82AXmCR1PUWqWX//2wWqP4dqtCJlgPE6F7 HMeDwY6KOq6cZLvR6EJBzNYUi0vBdFOB385jgD8VqVSGrjvr14Wv+WUpp+Vm3aMVDkEr WsRxgRlvFvPL9hUwpPDT1U/kFy7/eeWD1c0q2w9NnKD25NyNtf62v60jD3sM07QLOxnO jnvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=7BdspUfLNFC3zY+/aPg5iSJaNTYLKKbY02ehUsyXsxk=; b=G/Hy1BMDmDUMmYGSsqO15ju26165DKRKQI0gnUC1zrpvoThWIU7x435C94TAJlJScL 0qRMN/EVmcmjp1T/muaevceCHF7CL+0LtGUgPUtsQgmgAQZAZ/2eWXFW+TKJb9VUXZGm Mb6JxbRQGsOY4b7snbr8Mi1r9u8FIpDI9VTPYvaaoACNr2W+CEeF9qEsWo5mRZ5XjJEs Xwr5aI2A/dBs9NkgB11hS/BpQzXKTSsS9pIIdZ+qw7sSTAL0vZCrkOWl/FkksElHQhUE 3ptygWxB42SiUfFVJF44DDiS/K7I7VArtwF8UFKQpQ0xp3PWMX84TDljhelDQxxK2lol 1cWg== 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 s136-v6si18601563pfc.222.2018.06.08.09.17.56; Fri, 08 Jun 2018 09:18:11 -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 S1752604AbeFHQRe (ORCPT + 99 others); Fri, 8 Jun 2018 12:17:34 -0400 Received: from smtp.eu.citrix.com ([185.25.65.24]:51241 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbeFHQRd (ORCPT ); Fri, 8 Jun 2018 12:17:33 -0400 X-IronPort-AV: E=Sophos;i="5.49,490,1520899200"; d="scan'208";a="74372451" Date: Fri, 8 Jun 2018 18:17:19 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Stefano Stabellini CC: , Boris Ostrovsky , Juergen Gross , Subject: Re: [PATCH v3] xen: share start flags between PV and PVH Message-ID: <20180608161719.3zyns6dnr7w2nez4@mac> References: <20180608084038.19344-1-roger.pau@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180512 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 On Fri, Jun 08, 2018 at 09:12:25AM -0700, Stefano Stabellini wrote: > On Fri, 8 Jun 2018, Roger Pau Monne wrote: > > Use a global variable to store the start flags for both PV and PVH. > > This allows the xen_initial_domain macro to work properly on PVH. > > > > Note that ARM is also switched to use the new variable. > > > > Signed-off-by: Boris Ostrovsky > > Signed-off-by: Roger Pau Monn? > > As I already mentioned, the ARM part is OK. However, is the issue that > xen_start_info is not available on PVH? We had the same problem on ARM > and solved it by faking a xen_start_info page, see the top of > arch/arm/xen/enlighten.c. > > I would love to get rid of that, but to do that, we also need to remove > the xen_start_info referece at drivers/tty/hvc/hvc_xen.c:255: > > if (!xen_start_info->console.domU.evtchn) > return -ENODEV; We could likely guard xen_pv_console_init (and other PV related console functions) with CONFIG_PV. HVM/PVH use xen_hvm_console_init. Roger.