From mboxrd@z Thu Jan 1 00:00:00 1970 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.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 4841EC34022 for ; Mon, 17 Feb 2020 19:15:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 167FA20801 for ; Mon, 17 Feb 2020 19:15:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vlFIESHN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 167FA20801 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3lrf-0005LO-6J for qemu-devel@archiver.kernel.org; Mon, 17 Feb 2020 14:15:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52920) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3lqU-0004V0-F8 for qemu-devel@nongnu.org; Mon, 17 Feb 2020 14:14:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3lqT-0001di-Gk for qemu-devel@nongnu.org; Mon, 17 Feb 2020 14:14:18 -0500 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:33201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3lqT-0001cM-AR for qemu-devel@nongnu.org; Mon, 17 Feb 2020 14:14:17 -0500 Received: by mail-pg1-x543.google.com with SMTP id 6so9718876pgk.0 for ; Mon, 17 Feb 2020 11:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zCSCIDCqEnp4VXY7Q3cgz5dsjX1P2gHTslBhjD/InX4=; b=vlFIESHNZa0JVsRvuN9AmBaZPItZfG7dXhIFay/8Ahr8lt3Pp2ECzPxHEraKEkDzM3 7JOoG1l/rQ2HRjaDYgBEcvFjcNrR0eluWUSiomi3XR7YWOdJsv+pJDgjUmgL01EkyUxh 41S0C6TMqp/66QuZuhYBm27v4xA/ZznYp5K54merB3d593CK3LnDojhFHTaT9DP/Tp48 ZiiPlUdDgzC6BtErczmbFL5hOsUchzqThchDnBtNmzPuZUqHJ7IQz+3oNo6bWIs+4V8L vpTMiwZBvqrVnLXJgv9xKZZU/HVYlB71GiqW05dBHMaelDLug6Fqxh+YA2He1kdsZFnX oKKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zCSCIDCqEnp4VXY7Q3cgz5dsjX1P2gHTslBhjD/InX4=; b=VQeTVUe3uZBL5CaBfFYzNhAYbG+cSqIp2FQzsMGVr+oET7RacSvZVQXH8pgOgmQoG/ p5UTsAV9WigPETtxN1lqzEz9q8D+yXH2U7UznYiNFhS3t3Pgn+h8opMiXcjGqdi4Zsz1 YyTUxDHojTtvJl36gGA7KNbbNwaknMpeBJd04pbciSnoXfcQ3y8utsXWv1WNC2WEOdl8 jeYSrbvaZseg53z6WPiJ/9ylfexPd5cz4jKWjh0bWEmbYb0XWNmmbLuniW1Kh0KfNhXT wZtEgP41GQ+cb+FaHa26tN6niRkZedbcCr6Pmx6p+hBwRi43GYc8ch20MTtIbaSPLN0Y wuhg== X-Gm-Message-State: APjAAAUIxKAniXVxkmwVPykyeZ1rrzGq7ASHfIaW3MI+x+SSFeaku99o Bt8Kxs/VXN/CHH/ZlkabUjwKIUov5HI= X-Google-Smtp-Source: APXvYqx4JpKTcO/tUDEw+aSl1vRW3N0ibh96pPIb1cu/qjYe7uUdHZ0gY6RwfM92xjyO6287naK9kQ== X-Received: by 2002:a63:7b5a:: with SMTP id k26mr15309780pgn.406.1581966856299; Mon, 17 Feb 2020 11:14:16 -0800 (PST) Received: from [192.168.1.11] (97-126-123-70.tukw.qwest.net. [97.126.123.70]) by smtp.gmail.com with ESMTPSA id a2sm516911pfi.30.2020.02.17.11.14.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Feb 2020 11:14:15 -0800 (PST) Subject: Re: [PATCH v5 27/79] arm/palm: use memdev for RAM To: Igor Mammedov , qemu-devel@nongnu.org References: <20200217173452.15243-1-imammedo@redhat.com> <20200217173452.15243-28-imammedo@redhat.com> From: Richard Henderson Message-ID: <1ab391d4-743d-f4ee-2c1f-87d89d7c8af5@linaro.org> Date: Mon, 17 Feb 2020 11:14:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200217173452.15243-28-imammedo@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 2/17/20 9:34 AM, Igor Mammedov wrote: > memory_region_allocate_system_memory() API is going away, so > replace it with memdev allocated MemoryRegion. The later is > initialized by generic code, so board only needs to opt in > to memdev scheme by providing > MachineClass::default_ram_id > and using MachineState::ram instead of manually initializing > RAM memory region. > > PS: > while at it add check for user supplied RAM size and error > out if it mismatches board expected value. > > Signed-off-by: Igor Mammedov > Reviewed-by: Andrew Jones > --- Reviewed-by: Richard Henderson r~