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=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 142BAC47082 for ; Mon, 7 Jun 2021 08:07:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D017C611C0 for ; Mon, 7 Jun 2021 08:07:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D017C611C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Fa/+vUj4thZ5pXherEOih5y2Y6LkoTN8ax7DX/b/S80=; b=TaClBiAOC26IFS wL8fjLDXUYcK9aTqvKROTOi6bquwT0O/ChBA99HQdQUJUZJnbHWWXXGADFE6LFQLDfL3KQLHoSFwe Ejv5d7OrItKpbW5AFTIE3kjQB/w2tpjfJqrvWnDl8jHvlkt+PhaAiREBBwMb5dP9wOIySwEGznUJJ I/fvNA17WLq9Eh7Pl1+MVYrYKR8hPCkGRZPAdphc2d20VkqsFCZPOI9Jo2JbIrgnIQj4NiRU8uCEM AuMKb04bIJ/1kMFe89rQZ0fGZYs6D+wOoasvOResQSntNGZ6tgBkAixj2rSZVROXecZ6Bf32EwjN9 6y73Rqejm82vJuR1AEIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqAGs-002BZc-HR; Mon, 07 Jun 2021 08:06:06 +0000 Received: from mail-wm1-f41.google.com ([209.85.128.41]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqAGm-002BYM-Hx for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 08:06:04 +0000 Received: by mail-wm1-f41.google.com with SMTP id t4-20020a1c77040000b029019d22d84ebdso11968188wmi.3 for ; Mon, 07 Jun 2021 01:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=45tZHTOhPWrMm2QuGwxst35nsbkg8Cc+rbe4pv2DS3s=; b=kIsPzVm/6HfQ2rSo6tvkvnj7PQ6cJswWvGgwdkdgaH6igE7n3GHPEMG2vp4Z472uwB +KsYt5wzp2s9ftXX/i4EIBLcJJxmFL4qHM5xrQibJ27PSXZLrogYgU+O7HQZGR+iyAcp ENqqFR0FScR0zbmHj60qWp3rM2QnSbnXLNJCCWzx48KNOVPLofYBkXxm2MKyVbnpoaEi VJ0S4j/02+fK0RKfpkMJgSC1sOAzhVdo9mdLOvhwevYnuhSQzcP/zVsLUUlTiGrBi8mP Z7vBYKauVcdW7lLENQosyuNUX/zVoCIl0Ac6KBIXKDIAfV+f1nQstXLthFWW2QDqXWoB sxHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=45tZHTOhPWrMm2QuGwxst35nsbkg8Cc+rbe4pv2DS3s=; b=ElDTOrWPq+ULvpfBOnCQY2v3vZT83l2SwalwVohjw3rTpfUBlU/90r0duxxWtGYl58 XCpK2Q7osmbOYijU4HJa4I6GUXjtV91pR6GHnNOrEb0rPKzqYqR41SaT6ip+5OMOkDaZ rILkha0rUDTvzOF6dxXm03CO0vnhbY7LE56Iuy4cj19dFg5F96sKCKNiN4ZfWHAD+G0H /gN0KC413DfjHLVAhnnmxGyGEI3Plu/ggbcyCimhJyMaw00WT+cZQ9SmV1IaWbKEa62d jvUJF2mQStpyEb2Nd0dRr19dJ9rj6CGazQmhb0WMLdiJScPgC5tpjUPW3i6Gxle7VXCc EfcA== X-Gm-Message-State: AOAM533X1+wVLyvVdQ7ZelwOLt+PG/jXuqQYwPmGkv3k8AryeeBwoHA4 1x4rn/YSCs+m9X2RHE4jCe47Yw== X-Google-Smtp-Source: ABdhPJxhLwD0/g3fyDKT04YjO9SBSS50dsCkWXljDRLq8PTa8wtbKxGm26XKKJlsPURCnhuE70CeEQ== X-Received: by 2002:a7b:c098:: with SMTP id r24mr15440340wmh.35.1623053096135; Mon, 07 Jun 2021 01:04:56 -0700 (PDT) Received: from google.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id k5sm275646wmk.11.2021.06.07.01.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 01:04:55 -0700 (PDT) Date: Mon, 7 Jun 2021 08:04:52 +0000 From: Quentin Perret To: Marc Zyngier Cc: will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, catalin.marinas@arm.com, suzuki.poulose@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/7] KVM: arm64: Unify MMIO and mem host stage-2 pools Message-ID: References: <20210602094347.3730846-1-qperret@google.com> <20210602094347.3730846-5-qperret@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210607_010600_635084_66E97E39 X-CRM114-Status: GOOD ( 20.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sunday 06 Jun 2021 at 11:31:20 (+0100), Marc Zyngier wrote: > On 2021-06-02 10:43, Quentin Perret wrote: > > We currently maintain two separate memory pools for the host stage-2, > > one for pages used in the page-table when mapping memory regions, and > > the other to map MMIO regions. The former is large enough to map all of > > memory with page granularity and the latter can cover an arbitrary > > portion of IPA space, but allows to 'recycle' pages. > > > > However, this split makes accounting difficult to manage as pages at > > intermediate levels of the page-table may be used to map both memory and > > MMIO regions. Simplify the scheme by merging both pools into one. This > > means we can now hit the -ENOMEM case in the memory abort path, but > > we're still guaranteed forward-progress in the worst case by unmapping > > MMIO regions. On the plus side this also means we can usually map a lot > > more MMIO space at once if memory ranges happen to be mapped with block > > mappings. > > > > Signed-off-by: Quentin Perret > > This patch fails to apply on top of -rc4. Did you use some more exotic > base or, as I suspect, a development tree? > > Please check and respin the series if necessary. I used kvmarm/next, but clearly an out-of-date one. I'll respin -- sorry about that. Thanks, Quentin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel