Received: by 10.223.164.202 with SMTP id h10csp2877563wrb; Tue, 28 Nov 2017 02:50:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMb0IzXTtypsTqHpd9yeUesuRLJ9ziTq+V0ciG8zDXWvJw3syQy8TLq4RPZO1FEeQI+M4axn X-Received: by 10.101.100.24 with SMTP id a24mr40835721pgv.239.1511866242863; Tue, 28 Nov 2017 02:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511866242; cv=none; d=google.com; s=arc-20160816; b=z1LAWpsUL3V34HFOUvWx94Uimz3GZiSwYy+OQRr3Z6OB4CLl+KheMS44bdW4F6NN/1 tolKdwxGsGhWg4p0ih5vjTTlcfNwNCYFOBORCmCK0Zg3P7rjOgZqvXFfytETNeRRt0Nn tmfgtnCVGupYn8nbKUGgOWWw4DOBQcPxZ9XofvSSDalTO0tBX6Ka/9IuMoyAbXXg8sbs HOwDXIca4F9/KvOouSuoj/eNxsbDhRDaJfz3VE56iu+65o37GHr1wBBfw0bq8hmHH+pu a092L1+ew6OADf5V0315KCcHXzYEATnM1QGhmvktXoZl4JrpyX32whUs2H4LxG6q/5Tc TtkQ== 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=+S6VRBqYVICh3y2+G/Syt9Ta2AGw3yqCpuJu0hPWMxg=; b=EsMpVHzM9JFhpbDU7VZuLlfFeI2cyrqRc++UoTWHY/oC8f1FzZ4zKP3yIOh1dHveit r50pt80rNHmD5xRBhWTBguzDcSDUEKLz7SU2Yxo0WWgGo56tjWslE7EYQ7dN9FbwLZdr 30Zj5JTS4HGhEMItGd+XG9Rzx6UZ8PIuRmbzOtRmGudYbjOD2+TEzkP3ylfcY5EPJQXt M58FoMtdQneCh0d4Bpl7cLufJFUwJEXhUx8DF6twNLo6h8q9fpAiokIq5awkngqSBMsW TzIn6sCGyv5LiXT/tLIDwD7NVhrTbaxx/wrU4C41tGWe7j/WzHqpV0BNbqlgB9s+BmLm WwWQ== 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 m7si24422033pgp.669.2017.11.28.02.50.31; Tue, 28 Nov 2017 02:50:42 -0800 (PST) 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 S933512AbdK1Ksr (ORCPT + 79 others); Tue, 28 Nov 2017 05:48:47 -0500 Received: from smtp.eu.citrix.com ([185.25.65.24]:45885 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755142AbdK1Ksm (ORCPT ); Tue, 28 Nov 2017 05:48:42 -0500 X-IronPort-AV: E=Sophos;i="5.44,467,1505779200"; d="scan'208";a="63831117" Date: Tue, 28 Nov 2017 10:48:38 +0000 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: Juergen Gross CC: , , , , , , , , , , Subject: Re: [Xen-devel] [PATCH 2/3] x86/acpi: take rsdp address for boot params if available Message-ID: <20171128104838.yke4zlgs45gieprj@MacBook-Pro-de-Roger.local> References: <20171128094400.25955-1-jgross@suse.com> <20171128094400.25955-3-jgross@suse.com> <20171128101834.fmiqygqpfh6wxrvv@MacBook-Pro-de-Roger.local> <072e88ef-dd61-8b7d-026a-5966b13ffed9@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <072e88ef-dd61-8b7d-026a-5966b13ffed9@suse.com> User-Agent: NeoMutt/20171027 X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL03.citrite.net (10.69.22.127) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2017 at 11:30:15AM +0100, Juergen Gross wrote: > On 28/11/17 11:18, Roger Pau Monn� wrote: > > On Tue, Nov 28, 2017 at 10:43:59AM +0100, Juergen Gross wrote: > >> In case the rsdp address in struct boot_params is specified don't try > >> to find the table by searching, but take the address directly as set > >> by the boot loader. > >> > >> Signed-off-by: Juergen Gross > >> --- > >> drivers/acpi/osl.c | 8 ++++++++ > >> 1 file changed, 8 insertions(+) > >> > >> diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c > >> index 3bb46cb24a99..3b25e2ad7d75 100644 > >> --- a/drivers/acpi/osl.c > >> +++ b/drivers/acpi/osl.c > >> @@ -45,6 +45,10 @@ > >> #include > >> #include > >> > >> +#ifdef CONFIG_X86 > >> +#include > >> +#endif > >> + > >> #include "internal.h" > >> > >> #define _COMPONENT ACPI_OS_SERVICES > >> @@ -195,6 +199,10 @@ acpi_physical_address __init acpi_os_get_root_pointer(void) > >> if (acpi_rsdp) > >> return acpi_rsdp; > >> #endif > >> +#ifdef CONFIG_X86 > >> + if (boot_params.hdr.acpi_rsdp_addr) > >> + return boot_params.hdr.acpi_rsdp_addr; > >> +#endif > > > > I'm struggling to figure out how was PVH getting the RSDP previously, > > because that should be removed now that it's in the zero-page. > > I don't think it should be removed, because this was the legacy case > (searching through memory). It was pure luck that Xen put it at the > right location. Oh, right. This is working out of pure luck then. Thanks, Roger. From 1585304719874351718@xxx Tue Nov 28 10:19:55 +0000 2017 X-GM-THRID: 1585302521989218363 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread