Message ID | 1433256507-7856-20-git-send-email-shannon.zhao@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCOL5N4BVYCBBVUFW6VQKGQE5ECTBFY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BBDE120BD1 for <linaro@patches.linaro.org>; Tue, 2 Jun 2015 14:51:02 +0000 (UTC) Received: by wifx6 with SMTP id x6sf31798323wif.1 for <linaro@patches.linaro.org>; Tue, 02 Jun 2015 07:51:02 -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=EDdnaR6ld18nWWVWyeboO0wGys6Msh4yrOHGDnFI7dI=; b=MGvuiq8T1+C7DxrZOapU49zfXvagUxkTZ4G4HyH4N4yaFxqZb1IW3nCfVXEc4Zt9mz 9pFhy6KhPlRwtTewcXLOUlb/GbXGniJ3CnaqWB4P10dPjT+YtOsAtQbiUgDSBF+BIlbw 6mem5jU1ttFdNzCpUVm+5TZm5kFRQ09lUCfCECJ35VcysZl9LBxJ9Uq4h8IWmrhIn8ej IJFH300c6P0Gm4z+8oGwnJwojgPymHw4l75qI6HitC5S9xWqw6aSeo04Ii/Ijq+3utMf zbPzO0kkQY3G1X6+PTLi56McDHut0qn/gGmB7lhVaLEIIJg3JSP8kV61S92N39bJ3oEC ytXw== X-Gm-Message-State: ALoCoQkifVJ4+H8klCf1Pd8ZAipV/9ixhHyz1pA5LhzHoVZ2YMGsMFZlamQLKalDSJM+sFdn6VNG X-Received: by 10.194.47.179 with SMTP id e19mr26076156wjn.4.1433256662063; Tue, 02 Jun 2015 07:51:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.105 with SMTP id 9ls154698lal.17.gmail; Tue, 02 Jun 2015 07:51:01 -0700 (PDT) X-Received: by 10.112.119.198 with SMTP id kw6mr274413lbb.97.1433256661888; Tue, 02 Jun 2015 07:51:01 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id j18si15296889lbl.25.2015.06.02.07.51.01 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 07:51:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbqq2 with SMTP id qq2so106012480lbb.3 for <patchwork-forward@linaro.org>; Tue, 02 Jun 2015 07:51:01 -0700 (PDT) X-Received: by 10.112.150.167 with SMTP id uj7mr19052348lbb.112.1433256661777; Tue, 02 Jun 2015 07:51:01 -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.108.230 with SMTP id hn6csp3129409lbb; Tue, 2 Jun 2015 07:51:00 -0700 (PDT) X-Received: by 10.70.49.73 with SMTP id s9mr49927647pdn.149.1433256659769; Tue, 02 Jun 2015 07:50:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hv8si26697315pdb.173.2015.06.02.07.50.58; Tue, 02 Jun 2015 07:50:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932438AbbFBOu6 (ORCPT <rfc822;shannon.zhao@linaro.org> + 2 others); Tue, 2 Jun 2015 10:50:58 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]:34890 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932338AbbFBOu5 (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 2 Jun 2015 10:50:57 -0400 Received: by obcnx10 with SMTP id nx10so123931573obc.2 for <stable@vger.kernel.org>; Tue, 02 Jun 2015 07:50:57 -0700 (PDT) X-Received: by 10.182.47.225 with SMTP id g1mr22943156obn.82.1433256656781; Tue, 02 Jun 2015 07:50:56 -0700 (PDT) Received: from localhost ([167.160.116.34]) by mx.google.com with ESMTPSA id d74sm9616729oic.9.2015.06.02.07.50.54 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Jun 2015 07:50:55 -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 19/32] arm64: KVM: fix unmapping with 48-bit VAs Date: Tue, 2 Jun 2015 22:48:14 +0800 Message-Id: <1433256507-7856-20-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1433256507-7856-1-git-send-email-shannon.zhao@linaro.org> References: <1433256507-7856-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.169 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 2206385..f574732 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); }