Message ID | 1435661350-8060-6-git-send-email-shannon.zhao@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCOL5N4BVYCBB2HIZGWAKGQEPRJM5TY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9AAEC229DF for <linaro@patches.linaro.org>; Tue, 30 Jun 2015 10:50:17 +0000 (UTC) Received: by wguu7 with SMTP id u7sf2507564wgu.0 for <linaro@patches.linaro.org>; Tue, 30 Jun 2015 03:50:16 -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=NWDNXhFhFci9Z4dkv/ETwb6RG2uCbRFCTJVRY7VT4+g=; b=E+xXOgUUtodiFG7j5HZrNrS/pYBm6is4PnUFMP2sODjuYebLhyLBsMiDQSuDTNFjSX drcBWkUAMkrLHhhrhnyVDd3kQVL5Eaa7QOMMatgMiDoI6ATojUrngI+u3gCs9v2WXeoi ev2TOJQp4mTQ5IFCjzNi8LawvSPgK9KMZHa3ceS/VNR5VAcWbrgnMi0dRMyQa08M/H6X AE7fIWcmBnM7rMW+OtJFKNtzPpDybaO5aDaV0EggH3F+ouvvIYuOjqGyMUJ00Wz0PItv ntG/pAaV90QzKDPwuSYRy5+MDpiK5cxa18NqFen/TDNVSRhQB487wZNPbau2f6K81TJk jS4Q== X-Gm-Message-State: ALoCoQkSq6OQjTDBz/pMVPcyDiOJeK9taRMXD+niux/Usqgwpuu3GxW/7ZtoJpKCxPpdcmHq0+wM X-Received: by 10.112.26.5 with SMTP id h5mr13792765lbg.4.1435661416584; Tue, 30 Jun 2015 03:50:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.103 with SMTP id r7ls21620lah.106.gmail; Tue, 30 Jun 2015 03:50:16 -0700 (PDT) X-Received: by 10.152.23.167 with SMTP id n7mr18973868laf.108.1435661416365; Tue, 30 Jun 2015 03:50:16 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id j5si37758673laf.127.2015.06.30.03.50.16 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 03:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagh6 with SMTP id h6so8087982lag.2 for <patchwork-forward@linaro.org>; Tue, 30 Jun 2015 03:50:16 -0700 (PDT) X-Received: by 10.152.179.234 with SMTP id dj10mr19003164lac.73.1435661415990; Tue, 30 Jun 2015 03:50: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.108.230 with SMTP id hn6csp2352615lbb; Tue, 30 Jun 2015 03:50:14 -0700 (PDT) X-Received: by 10.67.4.201 with SMTP id cg9mr42475479pad.53.1435661414166; Tue, 30 Jun 2015 03:50:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si66313267par.87.2015.06.30.03.50.13; Tue, 30 Jun 2015 03:50:14 -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 S1751269AbbF3KuM (ORCPT <rfc822;shannon.zhao@linaro.org> + 2 others); Tue, 30 Jun 2015 06:50:12 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:33472 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbbF3KuL (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 30 Jun 2015 06:50:11 -0400 Received: by pdjd13 with SMTP id d13so4337251pdj.0 for <stable@vger.kernel.org>; Tue, 30 Jun 2015 03:50:10 -0700 (PDT) X-Received: by 10.68.69.11 with SMTP id a11mr11118315pbu.169.1435661410806; Tue, 30 Jun 2015 03:50:10 -0700 (PDT) Received: from localhost ([120.136.36.232]) by mx.google.com with ESMTPSA id yn5sm45606895pac.48.2015.06.30.03.50.08 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 30 Jun 2015 03:50: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, Vladimir Murzin <vladimir.murzin@arm.com> Subject: [PATCH for 3.14.y stable 05/22] arm: kvm: fix CPU hotplug Date: Tue, 30 Jun 2015 18:48:53 +0800 Message-Id: <1435661350-8060-6-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1435661350-8060-1-git-send-email-shannon.zhao@linaro.org> References: <1435661350-8060-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.215.45 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/arm.c b/arch/arm/kvm/arm.c index 55c1ebf..fb9c291 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -825,7 +825,8 @@ static int hyp_init_cpu_notify(struct notifier_block *self, switch (action) { case CPU_STARTING: case CPU_STARTING_FROZEN: - cpu_init_hyp_mode(NULL); + if (__hyp_get_vectors() == hyp_default_vectors) + cpu_init_hyp_mode(NULL); break; }