From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: [PATCH 5/8] KVM: arm/arm64: Enforce PTE mappings at stage2 when needed Date: Tue, 02 Apr 2019 11:19:23 +0100 Message-ID: <8636n0676c.wl-marc.zyngier@arm.com> References: <20190328133608.110805-1-marc.zyngier@arm.com> <20190328133608.110805-6-marc.zyngier@arm.com> <496ad70d-eaa5-c46e-ddf0-d07607522eeb@redhat.com> <20190402094716.GA1082@en101> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 57E9E4A44D for ; Tue, 2 Apr 2019 06:19:34 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JBtKmUZ5XtPd for ; Tue, 2 Apr 2019 06:19:32 -0400 (EDT) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 7013B4A3A5 for ; Tue, 2 Apr 2019 06:19:32 -0400 (EDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Auger Eric Cc: kvm@vger.kernel.org, YueHaibing , Julien Grall , Zenghui Yu , Paolo Bonzini , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org List-Id: kvmarm@lists.cs.columbia.edu On Tue, 02 Apr 2019 11:07:28 +0100, Auger Eric wrote: > > Hi Suzuki, > > On 4/2/19 11:47 AM, Suzuki K Poulose wrote: > > On Mon, Apr 01, 2019 at 07:10:37PM +0200, Auger Eric wrote: > >> Hi Suzuki, > >> > >> On 3/28/19 2:36 PM, Marc Zyngier wrote: > >>> From: Suzuki K Poulose > >>> > >>> commit 6794ad5443a2118 ("KVM: arm/arm64: Fix unintended stage 2 PMD mappings") > >>> made the checks to skip huge mappings, stricter. However it introduced > >>> a bug where we still use huge mappings, ignoring the flag to > >>> use PTE mappings, by not reseting the vma_pagesize to PAGE_SIZE. > >>> > >>> Also, the checks do not cover the PUD huge pages, that was > >>> under review during the same period. This patch fixes both > >>> the issues. > >> > >> I face a regression with this patch. My guest gets stuck. I am running > >> on AMD Seattle. Reverting the patch makes things work again for me. I > >> run with qemu. In this scenario I don't use hugepages. I use 64kB page > >> size for both the host and guest. > > > > Hi Eric, > > > > Thanks for the testing. Does the following patch fix the issue for you ? > > Yes it does. Thanks for testing this. Suzuki, can you please resend this with Eric's TB, and a Fixes: tag? I'll queue it right away. Thanks, M. -- Jazz is not dead, it just smell funny.