Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp895652imm; Fri, 29 Jun 2018 08:05:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJh+gxpzmoLktSzoSxYRGwvrPzjpy9+HXhHd4YoMtI7uUffLUeVhh1EwTWlNYxkWZ/PQmGu X-Received: by 2002:a65:43c9:: with SMTP id n9-v6mr12716263pgp.399.1530284757530; Fri, 29 Jun 2018 08:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530284757; cv=none; d=google.com; s=arc-20160816; b=0QR9SrmqA/tuZWihPwkqTKQvWVTfwvOPu6TIS4xeWbnS3xMcve8ZzNvhdg37TwSOPQ XvOcb2mB81/8tQUSwNyUseSWOxRPk/HAQyqV+SIruHFfQbi1wb18ZwbOOpejWYMSJ4Fu C7it9vpU3TlS0qfuRkIpdsks+cUZwVPCblXDoyx5VVH/bZMIADBF0NRdKjhffMnQlE8g OcRX+ysVkREnlnHLeUqwJWZjEX84GpSh3ebEw2xFEnJdAffcC9AkIucZ8nng+nI8Cx3M HcW8c8F+5/fOUl6B07fCQgpbwswbZmCyISYewIDQAd5h5rVabbVE7zr5IV7UjnpebJ8g x92A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tLtueWyqWdFsJdAgspjlEFEpRI+XSq9V3hjsbZce1UQ=; b=nAQpoGBpe1qe8c78WIUn9XPMpoLviCyJC105DK3Cn7C3upmpILcu6H94AEr7Eau7lI QpFVjvQratzwhZOKRNReHXfyM+SZG0+RWfsszsTi6b4dwffVi7Jr8DIfCqpJURtGLARX ro5uqiw6Y+sVIc2Ja/yDy34+2+YhljzjTu4F1+cadYPDjwfzJYuqQ/kj1BU4iaTFMyK1 k/+3XiH6nI4GJg5ABZe9lqnakrBd1ydKHNcwXhzU88lGqt0rVTQEuZ6MOSNdEwonhP17 wZRaU27IVJ5aWdl/pfbKy3m3lP0VtS39Sun4wTGBMsiuQxSeac19wlS4zvhnuSPfM1A7 42Dg== 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 z2-v6si9481009pfz.241.2018.06.29.08.05.34; Fri, 29 Jun 2018 08:05:57 -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 S965057AbeF2LQe (ORCPT + 99 others); Fri, 29 Jun 2018 07:16:34 -0400 Received: from foss.arm.com ([217.140.101.70]:60100 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755240AbeF2LQa (ORCPT ); Fri, 29 Jun 2018 07:16:30 -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 AE7EE18A; Fri, 29 Jun 2018 04:16:29 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.206.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4DD553F266; Fri, 29 Jun 2018 04:16:27 -0700 (PDT) From: Suzuki K Poulose To: 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, marc.zyngier@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, Suzuki K Poulose Subject: [PATCH v3 06/20] kvm: arm/arm64: Remove spurious WARN_ON Date: Fri, 29 Jun 2018 12:15:26 +0100 Message-Id: <1530270944-11351-7-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530270944-11351-1-git-send-email-suzuki.poulose@arm.com> References: <1530270944-11351-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.7.4