Received: by 10.223.176.5 with SMTP id f5csp1757894wra; Thu, 8 Feb 2018 03:01:58 -0800 (PST) X-Google-Smtp-Source: AH8x225hyMPxPOWsK8WHjLgeeJGk1Rii7hLGMuOrwHVG9p5O6dasLUUbGp6NEQwJjEQFV32JSYEt X-Received: by 10.99.56.79 with SMTP id h15mr219251pgn.402.1518087718835; Thu, 08 Feb 2018 03:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518087718; cv=none; d=google.com; s=arc-20160816; b=Lmqyvuu5wFiPjRsajda7FUCqnw07bzcYt+mz8yNnHOVDNDGpJAJu/hWduJ94ZDNlX/ wTUs9UjlNvninDbKifN+dt8Nnm066CDc3j+XZN7ZSHdTnAwKINr2hIeY7kwT9Z6ksqUO alRVyP8xyz6s1gO5d9CJ4yyxuyEhKGZANGnfWwkBRxPmmOksF4u70x6LBz/7Fnp01Tkk 8oSKrIvqgqKkCvnmAw6nDrGiGJfxWjiJ5oLVuBOLtW5PYakTCjZw71zRAEQZQzk+iXSj 0uu0balRexsqNKSeV+aXP7QnfUZXMBgtL6Hu3TaOosSxaNgeiTiTA6c2PJU70QgZK5QI wwHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=FZn1N91pfJkCqTuI5BWrQ+2tChlxRdBj68bsoUkLqpc=; b=ghVbXU5AnRNKS6RAyp1GTRf5OHs69zzB2h+CTbw0dM65OQnJa+YxRIEyBDyiaIU+e1 zn0u89ckmrIdGjhAVkDXAYZCVgJzOj3Ws0wD3Icezi7THY/4CGkk3grWBc4PT4yQ4kYk pl6uusonOutfxaeUhZ9MODMAbr7IY7O8gVbMcUnlzMwvqAn191AFwo0CbEHF/Uzu9mx3 Vi+MLUjV2xw+BCPDg3a6KKCtyqNehg+jkYnydc2Zz9q/K6jLS58p+phseFKPZYG0jQZO lVtw3R1qWW5q2lOtPgfLnUwyk1wgiNe7mAK/UlpCZUAlBHwk/MOcPOqZ9RF5NHdRLZq0 rPrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DuAboIPc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b129si1023434pgc.89.2018.02.08.03.01.45; Thu, 08 Feb 2018 03:01:58 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=DuAboIPc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752319AbeBHLA6 (ORCPT + 99 others); Thu, 8 Feb 2018 06:00:58 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55492 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752233AbeBHLAz (ORCPT ); Thu, 8 Feb 2018 06:00:55 -0500 Received: by mail-wm0-f66.google.com with SMTP id 143so8663582wma.5 for ; Thu, 08 Feb 2018 03:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FZn1N91pfJkCqTuI5BWrQ+2tChlxRdBj68bsoUkLqpc=; b=DuAboIPczy2pomo5t4Btvlp7QmPbPyHMtqwCrjGMAFhj5gFDavp/+tlQddPSSFNBM8 izkiuEhs24n3pgPXNV2qzQoFeGoSAih1d+QiaWamPNE5CspKfnXj48zuNArKB7nuQJaC mFCEaNfP3bklfrjnsC+WDjJvzBYIFmWIJe1jw= 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:user-agent; bh=FZn1N91pfJkCqTuI5BWrQ+2tChlxRdBj68bsoUkLqpc=; b=h6K+xAz+mjvqZ4IsV0+JR+ZnZmy+uP7OzSA5iN4p1DgkA5IY5IBNozlUK1dHJoFiwX ZsXg324Y4NU6UuYyb/Ej1EO4PKO+487Z5FN/C6HzqbolqjY0cxesywgwZqiXBIqi0KBq 7WIK3lgaGT9bonO9DCXUnbNpiPokG0tmyIvasQzncj7JPJZ1ailQEbSurNLevc3fMt6A IBAzUavO9Kdfnn4JfurxhY+J2aiH+VhGfCBDHaVbLz0RLrBfXDyqh4jFW5upXkyF3tof XiGqWqB7HYn4IO2+uOWxOlqTeOj7ebL/jL1gNHaby90YOGIW0M249YaRBoeYlAqe2if2 n7+A== X-Gm-Message-State: APf1xPDyzLCHAGqRpW156DUmN5ZeeQ0X/IC+Yrd5tYS9tTrMcFbWBISd EitkPgQ82rQRDgWMv79kHlRfIJcn5QM= X-Received: by 10.80.141.197 with SMTP id s5mr990463edh.0.1518087653946; Thu, 08 Feb 2018 03:00:53 -0800 (PST) Received: from localhost (x50d2404e.cust.hiper.dk. [80.210.64.78]) by smtp.gmail.com with ESMTPSA id p14sm2787849edj.46.2018.02.08.03.00.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 03:00:53 -0800 (PST) Date: Thu, 8 Feb 2018 12:00:52 +0100 From: Christoffer Dall To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, kristina.martsenko@arm.com, peter.maydell@linaro.org, pbonzini@redhat.com, rkrcmar@redhat.com, will.deacon@arm.com, ard.biesheuvel@linaro.org, mark.rutland@arm.com, catalin.marinas@arm.com, Christoffer Dall Subject: Re: [PATCH v1 07/16] kvm: arm/arm64: Remove spurious WARN_ON Message-ID: <20180208110052.GJ29286@cbox> References: <20180109190414.4017-1-suzuki.poulose@arm.com> <20180109190414.4017-8-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180109190414.4017-8-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 09, 2018 at 07:04:02PM +0000, 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(). Acked-by: Christoffer Dall > > Cc: Marc Zyngier > Cc: 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 e6548c85c495..78253fe00fc4 100644 > --- a/virt/kvm/arm/mmu.c > +++ b/virt/kvm/arm/mmu.c > @@ -870,7 +870,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.13.6 >