Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 999A4C433DF for ; Wed, 14 Oct 2020 00:42:41 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4717B20EDD for ; Wed, 14 Oct 2020 00:42:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="UB3Gy77T" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4717B20EDD Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.6419.17096 (Exim 4.92) (envelope-from ) id 1kSUs1-0007sy-Uc; Wed, 14 Oct 2020 00:42:21 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 6419.17096; Wed, 14 Oct 2020 00:42:21 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSUs1-0007sr-RK; Wed, 14 Oct 2020 00:42:21 +0000 Received: by outflank-mailman (input) for mailman id 6419; Wed, 14 Oct 2020 00:42:21 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSUs1-0007sm-4U for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 00:42:21 +0000 Received: from esa4.hc3370-68.iphmx.com (unknown [216.71.155.144]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 5796dabe-4ae8-4bc7-afe0-1f236be85f18; Wed, 14 Oct 2020 00:42:19 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSUs1-0007sm-4U for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 00:42:21 +0000 X-Inumbo-ID: 5796dabe-4ae8-4bc7-afe0-1f236be85f18 Received: from esa4.hc3370-68.iphmx.com (unknown [216.71.155.144]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 5796dabe-4ae8-4bc7-afe0-1f236be85f18; Wed, 14 Oct 2020 00:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1602636139; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=4YyvTEpfSD9d9EHo8mi7qbI8RZCQtnkGVyDKCF0dWu4=; b=UB3Gy77Tf4kMOfBhK5GSV6PhP5avF9m+Unbjt8L7kxgidM4JroR/b9QE GFZyfTMcei+37ahg6Q25pYJu6dBjFe5zfwW8kA0083PSS/n8GAuiMalle KyyxMzxWtEYNTYjyKYly1TxdrJgEvwyT/wxogOdQu8hCVpCxaQABKwJiG Q=; Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: Wwh1x4Wxwz+U54MzjqMciC9ZQoaju3/DDoCRzXM59RI4J1ilVPFW79SJvEhi8vq4JoLBGPZhTK SnLwNizzVNl3jhi0RTP1ldq7ChVpn7J50tu907QKBIe0mmx+VpvlP6AqLt8MZyrrsDAdlK1omD GrTE0YBj1KkY/RczRGmKQ+CpLZcwabAUFuvJtllM8qV63h07PaJZphBKJK4iVvqL+j0wwj168L UvpN8BVUPeI1ws2igmxJq22gDJRWJO70xWQf+2PuNXbIH9vUM/RDuK8z4YmEXpxKwmEsTvllsT e6k= X-SBRS: 2.5 X-MesageID: 29978529 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.77,372,1596513600"; d="scan'208";a="29978529" Subject: Re: [PATCH] hvmloader: flip "ACPI data" to ACPI NVS type for ACPI table region To: Jan Beulich CC: , , , , References: <1602586216-27371-1-git-send-email-igor.druzhinin@citrix.com> <56bea9a9-2509-cc39-a6fd-fb7db3e54d71@suse.com> <83f567a1-35f3-a227-830b-a59b53217f3b@citrix.com> <5d7bf2ce-1acb-05ff-a57b-d698e15c4dd1@suse.com> From: Igor Druzhinin Message-ID: <74ad734a-634b-d6f0-3829-fb3895e7d9e5@citrix.com> Date: Wed, 14 Oct 2020 01:42:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5d7bf2ce-1acb-05ff-a57b-d698e15c4dd1@suse.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit On 13/10/2020 16:54, Jan Beulich wrote: > On 13.10.2020 17:47, Igor Druzhinin wrote: >> On 13/10/2020 16:35, Jan Beulich wrote: >>> On 13.10.2020 14:59, Igor Druzhinin wrote: >>>> On 13/10/2020 13:51, Jan Beulich wrote: >>>>> As a consequence I think we will also want to adjust Xen itself to >>>>> automatically disable ACPI when it ends up consuming E801 data. Or >>>>> alternatively we should consider dropping all E801-related code (as >>>>> being inapplicable to 64-bit systems). >>>> >>>> I'm not following here. What Xen has to do with E801? It's a SeaBIOS implemented >>>> call that happened to be used by QEMU option ROM. We cannot drop it from there >>>> as it's part of BIOS spec. >>> >>> Any ACPI aware OS has to use E820 (and nothing else). Hence our >>> own use of E801 should either be dropped, or lead to the >>> disabling of ACPI. Otherwise real firmware using logic similar >>> to SeaBIOS'es (but hopefully properly accounting for holes) >>> could make us use ACPI table space as normal RAM. >> >> It's not us using it - it's a boot loader from QEMU in a form of option ROM >> that works in 16bit pre-OS environment which is not OS and relies on e801 BIOS call. >> I'm sure any ACPI aware OS does indeed use E820 but the problem here is not an OS. >> >> The option ROM is loaded using fw_cfg from QEMU so it's not our code. Technically >> it's one foreign code (QEMU boot loader) talking to another foreign code (SeaBIOS) >> which provides information based on E820 that we gave them. >> >> So I'm afraid decision to dynamically disable ACPI (whatever you mean by this) >> cannot be made by sole usage of this call by a pre-OS boot loader. > > I guess this is simply a misunderstanding. I'm not talking about > your change or hvmloader or the boot loader at all. I was merely > noticing a consequence of your findings on the behavior of Xen > itself: Use of ACPI and use of E801 are exclusive of one another. Sorry, yes. I forgot e801 is also used by Xen as an alternative to e820. Igor