From nobody Fri Dec 19 04:27:43 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1551805204686758.7667482049839; Tue, 5 Mar 2019 09:00:04 -0800 (PST) Received: from localhost ([127.0.0.1]:45829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1DQ6-0000Md-Ia for importer@patchew.org; Tue, 05 Mar 2019 11:59:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1DHf-0001gv-J1 for qemu-devel@nongnu.org; Tue, 05 Mar 2019 11:51:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1DHe-00011v-QM for qemu-devel@nongnu.org; Tue, 05 Mar 2019 11:51:15 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:36419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1DHe-0000zo-Ig for qemu-devel@nongnu.org; Tue, 05 Mar 2019 11:51:14 -0500 Received: by mail-wr1-x436.google.com with SMTP id o17so10263426wrw.3 for ; Tue, 05 Mar 2019 08:51:14 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id 2sm10071495wrg.89.2019.03.05.08.51.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 08:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=rRmkZleKI++MqHShCtVmRFNz1qokS1bAI2Uo/wNIcOI=; b=pPReLF1cX3rPvmewBNBNJjYY5kF4UHtK/nwvDidaanwflaCdGRsT18wMw/pCYGtXIz NLtpMM/ahSjUrQDMo94iEArGoYgn3Jq2nOGVx5kXnkn4ThMyRvt4Z12CIFGF56Qs45My H/5ne+JTTjxwZFJe93plYiqn9UqLpQn3+h5iaJlLuU2X6vKWi2d3TbQ+5nViMSvH2gae MniEUyv7xexWPKRLEsptTFN4r8bmC+wy74aOgNkfV+i7QPndR0dgzlH90eMYD5eDMHc9 23FJfYRgKNHtIwjdPl/doT393drz+6fGrpd2E8jMUv98sgC9frRPr74cT2iJ4l7wRaEs 2BxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rRmkZleKI++MqHShCtVmRFNz1qokS1bAI2Uo/wNIcOI=; b=jsbh5Xn8C2T7sJbIvVsXP/EIPzZeM2/phBEb1on5ar39WIifGwGZFcg6zM1fJFcdll wBo5DpEDRKg3bpfLVuASp5GlmbqqSnBcYNPXKjtZfE7UfBGNzLnUxWzmTPCKyZNs5ADc uQP1rJxDYto1FZqoDLEWYk3Wf6en1Osu6IdGKW2OblBYuHBG+cVyMLaZ2SyUUE/Rga6A uCG9YM3ewFGimNeSpwix+xIomVkPVUeEaDG0iHeiITYbIfM8y/fA8uifPBhpFyOeQr6H MEWWmHtwKVhEZ9P1ZPNRavJe5xY54kOcrB7rtsv86SJWso3nCzFx2wWht8FszY0Fbfx+ +4Bg== X-Gm-Message-State: APjAAAVQRZV7DqRFoHrizeMehuRjwMQs7qCxxTtfsEWp9CjU0KZ+RURV Uw4XOklVdxXWX6f5Y0KrhEbiXSSl4ak= X-Google-Smtp-Source: APXvYqxnO4EMnPkgGuqGMN1cP1/ZcBQxSlKz5Yj4L6/eAhqhAx/3fQCnuGzADwUhwgnK2hqtvqmBNg== X-Received: by 2002:adf:f691:: with SMTP id v17mr17600194wrp.66.1551804673401; Tue, 05 Mar 2019 08:51:13 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 5 Mar 2019 16:50:46 +0000 Message-Id: <20190305165051.26860-18-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190305165051.26860-1-peter.maydell@linaro.org> References: <20190305165051.26860-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::436 Subject: [Qemu-devel] [PULL 17/22] vl: Set machine ram_size, maxram_size and ram_slots earlier X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Eric Auger The machine RAM attributes will need to be analyzed during the configure_accelerator() process. especially kvm_type() arm64 machine callback will use them to know how many IPA/GPA bits are needed to model the whole RAM range. So let's assign those machine state fields before calling configure_accelerator. Signed-off-by: Eric Auger Reviewed-by: Peter Maydell Reviewed-by: Igor Mammedov Message-id: 20190304101339.25970-7-eric.auger@redhat.com Signed-off-by: Peter Maydell --- vl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 502857a1769..fd0d51320d8 100644 --- a/vl.c +++ b/vl.c @@ -4239,6 +4239,9 @@ int main(int argc, char **argv, char **envp) machine_opts =3D qemu_get_machine_opts(); qemu_opt_foreach(machine_opts, machine_set_property, current_machine, &error_fatal); + current_machine->ram_size =3D ram_size; + current_machine->maxram_size =3D maxram_size; + current_machine->ram_slots =3D ram_slots; =20 configure_accelerator(current_machine, argv[0]); =20 @@ -4434,9 +4437,6 @@ int main(int argc, char **argv, char **envp) replay_checkpoint(CHECKPOINT_INIT); qdev_machine_init(); =20 - current_machine->ram_size =3D ram_size; - current_machine->maxram_size =3D maxram_size; - current_machine->ram_slots =3D ram_slots; current_machine->boot_order =3D boot_order; =20 /* parse features once if machine provides default cpu_type */ --=20 2.20.1