From patchwork Tue Jul 9 07:49:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viktor Mitin X-Patchwork-Id: 11036595 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7148A112C for ; Tue, 9 Jul 2019 07:51:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 649F8286D5 for ; Tue, 9 Jul 2019 07:51:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5820B286DA; Tue, 9 Jul 2019 07:51:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0529E286D5 for ; Tue, 9 Jul 2019 07:51:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hkksj-0002Qz-Ny; Tue, 09 Jul 2019 07:49:45 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hkksj-0002Qu-0c for xen-devel@lists.xenproject.org; Tue, 09 Jul 2019 07:49:45 +0000 X-Inumbo-ID: 1cc61b85-a21e-11e9-8980-bc764e045a96 Received: from mail-lj1-x244.google.com (unknown [2a00:1450:4864:20::244]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 1cc61b85-a21e-11e9-8980-bc764e045a96; Tue, 09 Jul 2019 07:49:43 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id p17so18614992ljg.1 for ; Tue, 09 Jul 2019 00:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XrcNnvi02p1qwScg1CK4rrEfhSUknr/DN383no2oZM4=; b=ILOZM3RYgnIyqaSZA25hJ+9VfKLdh+yHPL5F33kniF7t/PLzxMOiaOgsXASJAJOuxG PXtsyQatyp7LaFaTRlq6TuNo7+DEq6/iNn6igrXudtGYZrPj05Aeuquo7VCTuQdTHQnI KsfcgMljy201l5GnrQrHO01LEK5Uu+iSyWN4BY+QOeEq86Z2uPNo7vrgaRge8ggsvCag kap3b6MCyw8OwbLqTDzwaYwENrERjKCIhunedD7sbMS+mFZpxW9N4AhTMG29dOsZaFr2 YPzvSX8xIFyoNWsQIHLQSFrIqc+TlUiBhVM+ygWLhIK6+0XYaLIH2b5PJeKmWULNW3SH GGmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XrcNnvi02p1qwScg1CK4rrEfhSUknr/DN383no2oZM4=; b=DV8dji7kDBS71cA6QK3Xb15HHHGo13d1mFJ8LKoqBjkAo8DjEybIcmYS1r2KlAhQ9s OsQof/dN4YtqZDSakc9hG4TqEbIv7xO61U1o17iS8Iuy2lrFtLuomuv9Kkg2/Y/wo1x0 +O4I6mLhihd4/JF0TV08FdgWjCPEmi4E8889AC4QJ/hk0+hjc7Ur6mrC0LUjVla1GXWT bW5+Fnd1RhQBWdl/dk6YoZDRRGiLBbmSCa6dFWYd8Wo3ThY6tVgBoaOoRfdhkA5QdKLf L2zY4Ttxu5K1BMWIUNsmoQnWEEsJNtuTTySuCMl4syVo90jMQDAZG9LF2fvwgAtD8nKr 1p/Q== X-Gm-Message-State: APjAAAUFXDJQwUFaNRWp9siRMDN/jNSOwNmrV5udj653t1avCo8Fi8yB p3fnepIcm7WGU0xZ9zVLWUPK9KQsvmk= X-Google-Smtp-Source: APXvYqzeVqyZ75C6EfFLOEV6+6khub+kg9WP9oUwrzxaTU/PPS82ZBfnrjpHq0ulb1TRigfjLWtX1w== X-Received: by 2002:a05:651c:c6:: with SMTP id 6mr10903690ljr.127.1562658581453; Tue, 09 Jul 2019 00:49:41 -0700 (PDT) Received: from 3489.kyiv.epam.com (ll-22.209.223.85.sovam.net.ua. [85.223.209.22]) by smtp.gmail.com with ESMTPSA id d21sm2363403lfc.73.2019.07.09.00.49.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 00:49:40 -0700 (PDT) From: Viktor Mitin To: xen-devel@lists.xenproject.org Date: Tue, 9 Jul 2019 10:49:03 +0300 Message-Id: <20190709074903.8042-1-viktor.mitin.19@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Xen-devel] [PATCH] xen/arm: change DomU memory property size from u64 to u32 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Volodymyr Babchuk , Julien Grall , Stefano Stabellini , Viktor Mitin , Viktor Mitin MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP While checking xen dom0less documentation it has been found that domU memory property requires extra 0x0 in case of arm64. There is no need to keep memory size in u64, 32 bits is enough for domU memory size. Tested that in case of arm64 dom0less domU works without adding extra 0x0 to domU memory property with this patch. Signed-off-by: Viktor Mitin --- xen/arch/arm/domain_build.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index d9836779d1..2c1a8c243e 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -2012,9 +2012,9 @@ static int __init construct_domU(struct domain *d, { struct kernel_info kinfo = {}; int rc; - u64 mem; + u32 mem; - rc = dt_property_read_u64(node, "memory", &mem); + rc = dt_property_read_u32(node, "memory", &mem); if ( !rc ) { printk("Error building DomU: cannot read \"memory\" property\n"); @@ -2022,7 +2022,7 @@ static int __init construct_domU(struct domain *d, } kinfo.unassigned_mem = (paddr_t)mem * SZ_1K; - printk("*** LOADING DOMU cpus=%u memory=%"PRIx64"KB ***\n", d->max_vcpus, mem); + printk("*** LOADING DOMU cpus=%u memory=%"PRIx32"KB ***\n", d->max_vcpus, mem); kinfo.vpl011 = dt_property_read_bool(node, "vpl011");