Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2481871pxj; Sun, 6 Jun 2021 03:51:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2T8ZdovK6ksPEeIwWBBAqf2py5H8+fkzHJyPftcHFg0+ElydRRPT5JQn4juA7EemlBSxC X-Received: by 2002:a50:ff0a:: with SMTP id a10mr14748771edu.273.1622976687069; Sun, 06 Jun 2021 03:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622976687; cv=none; d=google.com; s=arc-20160816; b=WUuyM/uUfW5qb1JI5f0hbZSK9W2HVQoIVx4+5UVWwbfqwJWuwfVZRIAuGzq2+zdRc9 ELYlVtJ16ip8+FM7A18DcOWZNYyT7LpC+N75PHAjX3BPfOKRNkNBeJtxKHUq1e1xp8Yx c08xjeg6Bk0bAtb+yf3KH2GL9I4Xes6dkZp6UXmmTT3NA8kWdLihJfa/RWHGq0OgVelX E3ZRX5F6Xb47GMH0WCf0+Nl1xPvKIWZPFCAOIF7eYzMi/ETmRbKM9mS3NevG4uT8rt2o 3ZnBUb2jUEShP6ZshWRbhZWjUZb6FNh50qCjQCe6NOAcXW5W/NLYoYp4g0M6JcV/TtkV 3HLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=Dic96cyH2lv67NR3wJCVA6T6TvYLmThGtpVoskLxONs=; b=GLxPHunnZqpGjpzadlvCmkDglCS1ub4YM0abeDVqtKUYEwQ5U/8VzoJMQ7uwn8eqvx tiOmE3UzUn8m0AgdsjIl+WSURxrhVnb/9lUPIatDNvpfWtfqG/gIY8eZ72Dcgq96HVQq Igps57nR7fzHMF7NzclaYjBpXkk91jCFPoxAWZ2pnvkCi4cGYEwJ0ZMoRSHwZVt2ECXA wUEV2+GP+nFZmAc3z6wmTFYMqTVThF8bWWykugBR8QFPGhFOkEg3FWeBsMAGLsfS5I3H 5cJZA1e5FBaOHQbn5RpOWjdE8UsjxuSofCt2UEr9qCGD06xjVednDLg9IuRwSg2qINch GV+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si9094610edi.208.2021.06.06.03.51.04; Sun, 06 Jun 2021 03:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbhFFKdN (ORCPT + 99 others); Sun, 6 Jun 2021 06:33:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:47302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229465AbhFFKdM (ORCPT ); Sun, 6 Jun 2021 06:33:12 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 01CE4613EF; Sun, 6 Jun 2021 10:31:23 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lpq3s-005kHi-V4; Sun, 06 Jun 2021 11:31:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 06 Jun 2021 11:31:20 +0100 From: Marc Zyngier To: Quentin Perret 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 In-Reply-To: <20210602094347.3730846-5-qperret@google.com> References: <20210602094347.3730846-1-qperret@google.com> <20210602094347.3730846-5-qperret@google.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: qperret@google.com, 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 X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. M. -- Jazz is not dead. It just smells funny...