Message ID | 1430704362-6292-35-git-send-email-shannon.zhao@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCOL5N4BVYCBBP5DTOVAKGQES5JFUCI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9C23A2121F for <linaro@patches.linaro.org>; Mon, 4 May 2015 01:56:16 +0000 (UTC) Received: by lbos2 with SMTP id s2sf38744732lbo.2 for <linaro@patches.linaro.org>; Sun, 03 May 2015 18:56:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=sMR5x4yX4WvRl8c78r3Y9zkhlMv9I1/g+RBFsJG+nvE=; b=e/yuO5byomw9MbzIp+FV9GCWvGE+pQbDp5lf8i0sdAsST/kJ/nYgyfOnzEZ76ILr7R wooXyroUCSm31s1O5tdSFsMG1t+01maD6vn1E3Uew+59+Ob1Kv+LH0Ei3ebWa0vI8GGI Dvr0/+C1qMU3VHHp0qAGyVY65KyBrKp9Zwf9EBHyDHgDG24xcDOtAmJH4gyICcO0lx4c Q4+h7fsKQ1wcLakYr4MGmHKKoJb9hu8AJw6jZ8wE2kSOXMzwwBSZW5rb6UY/TsVhw1+w wwnHIPT0u0vzAuxtONOhlLZ7uVVzdAZ3My5NYQLAlKOE0jZlgKO9QZgbr+fg7YyoYid8 ocjg== X-Gm-Message-State: ALoCoQljO8/NTN9JqcyKSTPhauDxWRsF37drmoNdJTxMSU2S2Xl5yvOeCM8EgsdihbBbPqwK2f2N X-Received: by 10.152.4.194 with SMTP id m2mr16966921lam.1.1430704575508; Sun, 03 May 2015 18:56:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.8.171 with SMTP id dl11ls645068lad.55.gmail; Sun, 03 May 2015 18:56:15 -0700 (PDT) X-Received: by 10.152.87.204 with SMTP id ba12mr17958029lab.35.1430704575361; Sun, 03 May 2015 18:56:15 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id dn7si9094310lbb.71.2015.05.03.18.56.15 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2015 18:56:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbuc2 with SMTP id uc2so95614287lbb.2 for <patchwork-forward@linaro.org>; Sun, 03 May 2015 18:56:15 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr18125957lai.32.1430704575244; Sun, 03 May 2015 18:56:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1413153lbt; Sun, 3 May 2015 18:56:14 -0700 (PDT) X-Received: by 10.68.132.103 with SMTP id ot7mr37596054pbb.81.1430704573436; Sun, 03 May 2015 18:56:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ix6si17838787pac.46.2015.05.03.18.56.12; Sun, 03 May 2015 18:56:13 -0700 (PDT) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751962AbbEDB4M (ORCPT <rfc822;shannon.zhao@linaro.org> + 2 others); Sun, 3 May 2015 21:56:12 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:33851 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbbEDB4L (ORCPT <rfc822;stable@vger.kernel.org>); Sun, 3 May 2015 21:56:11 -0400 Received: by pdbqa5 with SMTP id qa5so149971280pdb.1 for <stable@vger.kernel.org>; Sun, 03 May 2015 18:56:10 -0700 (PDT) X-Received: by 10.68.110.3 with SMTP id hw3mr37727368pbb.128.1430704570662; Sun, 03 May 2015 18:56:10 -0700 (PDT) Received: from localhost ([180.150.153.1]) by mx.google.com with ESMTPSA id ry9sm7905294pab.2.2015.05.03.18.56.08 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 03 May 2015 18:56:09 -0700 (PDT) From: shannon.zhao@linaro.org To: stable@vger.kernel.org Cc: gregkh@linuxfoundation.org, christoffer.dall@linaro.org, shannon.zhao@linaro.org, Mark Rutland <mark.rutland@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Jungseok Lee <jungseoklee85@gmail.com>, Marc Zyngier <marc.zyngier@arm.com>, Paolo Bonzini <pbonzini@redhat.com> Subject: [PATCH for 3.14.y stable 34/47] arm64: KVM: fix unmapping with 48-bit VAs Date: Mon, 4 May 2015 09:52:29 +0800 Message-Id: <1430704362-6292-35-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1430704362-6292-1-git-send-email-shannon.zhao@linaro.org> References: <1430704362-6292-1-git-send-email-shannon.zhao@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: shannon.zhao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 8a998e0..6b30b1b 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -197,7 +197,8 @@ static void unmap_range(struct kvm *kvm, pgd_t *pgdp, pgd = pgdp + pgd_index(addr); do { next = kvm_pgd_addr_end(addr, end); - unmap_puds(kvm, pgd, addr, next); + if (!pgd_none(*pgd)) + unmap_puds(kvm, pgd, addr, next); } while (pgd++, addr = next, addr != end); }