From patchwork Mon Dec 15 11:41:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 42234 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 750B821772 for ; Mon, 15 Dec 2014 11:44:23 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf7423029eek.8 for ; Mon, 15 Dec 2014 03:44:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=FMDKJD6c43h7FZ5widPMuT0yfdXjLvL/pfWu4V5KrVI=; b=LBnPzG2ubUbuYS28deKsRLxoVBbwe2fgDpqq2yOowfNywbmNhmvIRlFuN3Rzmj82I2 ElEueUQVQLPPnnJOs5NynYCbWzM0H/lzmlY1siSufXCk4azkF0plhVs7fUmDMfD/2h94 hKtaDs78m/bROAVKcvF2dPyL+6XTCEIvJUWdF+E5PxiFk/Oppm/LaCV7+PeYzSF+Lth0 fmxoce370ag5VdC5ZtJJBEwkkjQ1ZMxZsH5RPy1Nwv5uD3N5t3CT4pGO9Cl0g+WgNQRX h+YsNUVckfXkVAoFojtpLLYkZc8aaL/fHFOgp7BQCwapG1bvbuM3ESjWGV1hoMNbRdoK SYYw== X-Gm-Message-State: ALoCoQlo3BvBL+hTRvLrwaYmOok+5g28EdZ63YZesGjWD/aknoZpv0Gl5Z4MCNcWJLkVl5nDkIRm X-Received: by 10.180.82.34 with SMTP id f2mr2749578wiy.1.1418643862707; Mon, 15 Dec 2014 03:44:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls761699lao.83.gmail; Mon, 15 Dec 2014 03:44:22 -0800 (PST) X-Received: by 10.112.51.44 with SMTP id h12mr199281lbo.5.1418643862548; Mon, 15 Dec 2014 03:44:22 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id i7si10226560lbc.8.2014.12.15.03.44.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 03:44:22 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id q1so9422304lam.33 for ; Mon, 15 Dec 2014 03:44:22 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr29355129lbc.23.1418643862424; Mon, 15 Dec 2014 03:44:22 -0800 (PST) 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.142.69 with SMTP id ru5csp688354lbb; Mon, 15 Dec 2014 03:44:21 -0800 (PST) X-Received: by 10.70.47.129 with SMTP id d1mr50605605pdn.46.1418643860579; Mon, 15 Dec 2014 03:44:20 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id by7si13495184pab.179.2014.12.15.03.44.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Dec 2014 03:44:20 -0800 (PST) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y0U3A-0003Dh-TN; Mon, 15 Dec 2014 11:42:52 +0000 Received: from mail-lb0-f174.google.com ([209.85.217.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y0U2i-0002pQ-Pq for linux-arm-kernel@lists.infradead.org; Mon, 15 Dec 2014 11:42:25 +0000 Received: by mail-lb0-f174.google.com with SMTP id 10so8938437lbg.19 for ; Mon, 15 Dec 2014 03:42:02 -0800 (PST) X-Received: by 10.112.12.65 with SMTP id w1mr29736569lbb.68.1418643722096; Mon, 15 Dec 2014 03:42:02 -0800 (PST) Received: from localhost.localdomain (188-178-240-98-static.dk.customer.tdc.net. [188.178.240.98]) by mx.google.com with ESMTPSA id ug5sm2616126lac.38.2014.12.15.03.42.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 03:42:01 -0800 (PST) From: Christoffer Dall To: Paolo Bonzini , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [GIT PULL 01/12] arm/arm64: KVM: Don't clear the VCPU_POWER_OFF flag Date: Mon, 15 Dec 2014 12:41:48 +0100 Message-Id: <1418643719-25966-2-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty In-Reply-To: <1418643719-25966-1-git-send-email-christoffer.dall@linaro.org> References: <1418643719-25966-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141215_034225_041534_0DECB532 X-CRM114-Status: GOOD ( 10.55 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.174 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.217.174 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Marc Zyngier , Christoffer Dall , kvm@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@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.46 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 If a VCPU was originally started with power off (typically to be brought up by PSCI in SMP configurations), there is no need to clear the POWER_OFF flag in the kernel, as this flag is only tested during the init ioctl itself. Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall --- arch/arm/kvm/arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 9e193c8..b160bea 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -661,7 +661,7 @@ static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu *vcpu, /* * Handle the "start in power-off" case by marking the VCPU as paused. */ - if (__test_and_clear_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features)) + if (test_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features)) vcpu->arch.pause = true; return 0;