Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3647638imm; Mon, 2 Jul 2018 03:03:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLvSCWon2EXd7GdagsDuXyVb6CCj3tuFck+86ZJCdQyeaBrSzlWrO3WpIAnKh/G73esOiMl X-Received: by 2002:a65:5307:: with SMTP id m7-v6mr21754336pgq.431.1530525819250; Mon, 02 Jul 2018 03:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530525819; cv=none; d=google.com; s=arc-20160816; b=Gk6HtMp3XzoPO3Dq2t8Y0XXKHv8OGC/dLdTO51NBLdY3adfkUBNHS1D1L7P6zfWGgA 5qibwW2So8kNFVdhQk7EROJlbEwBf9vi4C4QsRygnguY3ByFRpSkl65h047Aj6saDLZQ tE4qUZk4zcskKU9/qUesXoLurgfsl/9lLh3OopXVAiiC4uttPNYx7H8FNhgnldxUEFhv LT/ow4tI9oFNIE7TbHJx7H9MLH7ymEwaQca/l+w/mZU2f6vaJxJ9pynhKIpiwd7ZeLf0 0YTWknbQAlLXu6z5xaKrz1SOdKSeNiJLBWzEapdVOFRIsoUqWARdOmKLYuoeyt5a4A7F eAkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=J8w4x12oH9rrsQi728ih/ZcISG17vmqMx+KnFVMTKvI=; b=l2O1eaNjvo0QGog94eRuQdWHhVOnbeDhO57YrlZOUgr+YfYKM06MSdazaXc73iV59e P12Lw9PjFRqNTlZYfNn8ZZQb9S2qtnftHbxneiHwHuyWLhGtMBwpu7lHan9QLYgVrNkN ygRZapRMUKgSGlQMsdpMRaFXRLCwe6tJ+F5S64b8+Woc00FPVwMiefVmmgL9bJUyHldI uHKCuUo1pagZokBenCpcIuhCVIIHzR2HRtjdc5LS9JIYgGMFJ1kv7CIM9iPDt5YybLxk 2JuTo5jfH7lVWDB6dUIeVTl0peAtrMiEZewQPw5XG9QYyTimWgusrLBtxQCAYmlw0V6w z0wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f185-v6si5580094pgc.625.2018.07.02.03.03.24; Mon, 02 Jul 2018 03:03:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754533AbeGBKB7 (ORCPT + 99 others); Mon, 2 Jul 2018 06:01:59 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56456 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933917AbeGBKBy (ORCPT ); Mon, 2 Jul 2018 06:01:54 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 97AC11529; Mon, 2 Jul 2018 03:01:54 -0700 (PDT) Received: from [10.1.206.75] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7E6BC3F5C0; Mon, 2 Jul 2018 03:01:52 -0700 (PDT) Subject: Re: [PATCH v3 06/20] kvm: arm/arm64: Remove spurious WARN_ON To: Suzuki K Poulose , linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, james.morse@arm.com, cdall@kernel.org, eric.auger@redhat.com, julien.grall@arm.com, will.deacon@arm.com, catalin.marinas@arm.com, punit.agrawal@arm.com, qemu-devel@nongnu.org References: <1530270944-11351-1-git-send-email-suzuki.poulose@arm.com> <1530270944-11351-7-git-send-email-suzuki.poulose@arm.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Mon, 2 Jul 2018 11:01:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1530270944-11351-7-git-send-email-suzuki.poulose@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/06/18 12:15, Suzuki K Poulose wrote: > On a 4-level page table pgd entry can be empty, unlike a 3-level > page table. Remove the spurious WARN_ON() in stage_get_pud(). > > Cc: Marc Zyngier > Acked-by: Christoffer Dall > Signed-off-by: Suzuki K Poulose > --- > virt/kvm/arm/mmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c > index 061e6b3..308171c 100644 > --- a/virt/kvm/arm/mmu.c > +++ b/virt/kvm/arm/mmu.c > @@ -976,7 +976,7 @@ static pud_t *stage2_get_pud(struct kvm *kvm, struct kvm_mmu_memory_cache *cache > pud_t *pud; > > pgd = kvm->arch.pgd + stage2_pgd_index(addr); > - if (WARN_ON(stage2_pgd_none(*pgd))) { > + if (stage2_pgd_none(*pgd)) { > if (!cache) > return NULL; > pud = mmu_memory_cache_alloc(cache); > Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...