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=-7.7 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 8A0F7C43461 for ; Fri, 4 Sep 2020 14:48:26 +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 4E6BB206F2 for ; Fri, 4 Sep 2020 14:48:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="QA7mDrSi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E6BB206F2 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 localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kED0X-0004JD-0C; Fri, 04 Sep 2020 14:48:05 +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 1kED0W-0004J8-8b for xen-devel@lists.xenproject.org; Fri, 04 Sep 2020 14:48:04 +0000 X-Inumbo-ID: 1b0216d1-454d-432f-a8fc-1ba46df1447e Received: from esa5.hc3370-68.iphmx.com (unknown [216.71.155.168]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 1b0216d1-454d-432f-a8fc-1ba46df1447e; Fri, 04 Sep 2020 14:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1599230882; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=AwcEV+DDvvLma7jgty4ew2IxjyVepuebmQCqxcSDExg=; b=QA7mDrSicMo4/CxRBzpbxfZMfksnzjb4hEjZAyrjpPbL84lf1dYLMybQ Iynk8O30xdCDgdHN9UYeU9EW4hFYP4PcawL4jLmEAd9q/GTjmhjg1qVbM D4FWpLjYmaQVfrM+gmr+iBKPPxfScyzK2CLN8haYJNxmeY6pfSgN+xp90 U=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: YtxB0foHMHngAsjCL92imcDcZA4Yr6PXbNuYf1DNBFW9X5Mpo1+JWWUSi21oTx7cIENtr9UXbh Sj4J2QU6D0l9qwdscpUWm7XNy5Xp1j+fOkpZNrc5z0qRXecCiRvnCrNC+rv80Vi0V/CBZMkyDJ cCbgg7+yLg7vu2EJezHrcpWyqMzfGnGV6R0W4+2RQqZ2LYmoa4UvVGRPYDDYJhMHdSMmWX2/P3 8J3PyRZp0x1bU/H67m8kzbvYOxQ4BebP1CwTSSZyyGrGk1U0ze5FvhmwRk/jM995EmgM6tgRDB YQc= X-SBRS: 2.7 X-MesageID: 26142618 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.76,389,1592884800"; d="scan'208";a="26142618" Subject: Re: [PATCH v2.1] hvmloader: indicate dynamically allocated memory as ACPI NVS in e820 To: Jan Beulich CC: , , , , References: <1598928634-30849-1-git-send-email-igor.druzhinin@citrix.com> <17fb8575-8a05-9c31-b777-292b66b0e7e1@citrix.com> <07811cc2-2780-b807-7669-80ae20fd9263@suse.com> From: Igor Druzhinin Message-ID: <885f0f9b-14d1-3246-1d5b-a60356fb42f2@citrix.com> Date: Fri, 4 Sep 2020 15:47:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <07811cc2-2780-b807-7669-80ae20fd9263@suse.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 04/09/2020 15:40, Jan Beulich wrote: > On 04.09.2020 13:49, Igor Druzhinin wrote: >> On 04/09/2020 09:33, Jan Beulich wrote: >>> On 01.09.2020 04:50, Igor Druzhinin wrote: >>>> Guest kernel does need to know in some cases where the tables are located >>>> to treat these regions properly. One example is kexec process where >>>> the first kernel needs to pass firmware region locations to the second >>>> kernel which is now a requirement after 02a3e3cdb7f12 ("x86/boot: Parse SRAT >>>> table and count immovable memory regions"). >>> >>> I'm still struggling with the connection here: Reserved regions >>> surely are "immovable" too, aren't they? >> >> "Immovable" regions here are RAM that doesn't go away by hot-unplug. That change >> was necessary in Linux to avoid image randomized placement to these regions. >> >>> Where's the connection to >>> the E820 map in the first place - the change cited above is entirely >>> about SRAT? And I can't imagine kexec getting away with passing on >>> ACPI NVS regions, but not reserved ones. >>> >> >> They got away with it for as long as kexec exists I think. The point was that >> those reserved regions were not accessed during early boot as long as kexec kernel stays >> at transition tables. Now ACPI portion of it is accessed which highlighted our >> imprecise reporting of memory layout to the guest - which I think should be fixed >> either way. > > Is this to mean they map ACPI regions into the transition page tables, > but not reserved regions? Yes. > If so, perhaps that's what the description > wants to say (and then possibly with a reference to the commit > introducing this into Linux, instead of the seemingly unrelated SRAT > one)? The referenced commit is not unrelated - it's the commit introducing the access causing kexec transition to fail. But I can add another one pointing to the mapping of ACPI tables that was supposed to fix the failure caused by the first one. Igor