From patchwork Mon May 8 11:54:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9716137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 06ADC60234 for ; Mon, 8 May 2017 11:55:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E201B223C7 for ; Mon, 8 May 2017 11:55:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D600E268AE; Mon, 8 May 2017 11:55:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BBC1223C7 for ; Mon, 8 May 2017 11:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5/rC+Ssl+fOSU7TSLjs9GLA8nXXvRoBXs82vs/sNPc8=; b=Iz/Gq0mgUH7yV9jlVmDFHcMyRe UdTxGKo+7/nDSsitc/JggoCc9gwo8ceWJAHlap/URV2Ul+oCUAS+ZaQmLA2M77dbdNeJ0cyuX7IRF UmgNfPfAZVwt1vBgrsrSprNQazJ82OkXnYhbyoRLRxcp9FLnj7RE0NO66Yl7v3FeuqJpIrfdH9azb NgYkMY88rSr5U4ofHwGCFXM+YdbqF9dG1Ni5H/k3xlT3lrnLX0KYpDLzOzKFZI4yKABmUji2CSXxB +hDe0PAcOvzLqcCze2DOPBTO8cvcOoucEj5NhlhDnBBhbG4vRA9mS4QkoGxXTGSx5HgUOj8bWWcwj feNpbW5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d7hGZ-0006yN-Oz; Mon, 08 May 2017 11:55:51 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d7hG8-0005Kh-0M for linux-arm-kernel@lists.infradead.org; Mon, 08 May 2017 11:55:26 +0000 Received: by mail-wm0-x230.google.com with SMTP id 142so62136800wma.1 for ; Mon, 08 May 2017 04:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Pn87nBTi357O+49zOKlzxNGkhenKAliwXOU41pCYDo4=; b=HBg8P1KGd5GVq9iC7Q80Lm+VMlJxJZo0OHRXzR7oSemmcAt+FGj1RpmA6azuXj7cvr PaDtg/YkJCrGmq4LiZsuzA0QfS2f/M4JP4wjFIofnn8kUK6Io2Ki/IyLLgwM+ny5Gp9n VaT6saUoqbvf5aq7Dg2H/H1MGQMfsyKYRtE10= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Pn87nBTi357O+49zOKlzxNGkhenKAliwXOU41pCYDo4=; b=Xb7RRLRNaMuCXVkJ1YkOrC1jZYL/8olSMIKYjeHih5OU5p1fWERQMGnmu1aHbRf6Em 7OaWkOiy+SvOeczNmWgAu5EGkVLMO/Bnt/0Faeb+5USvQE5uTKAZNSb6bI8DybLHbGs0 KTkH8jioql9zmn49mjqhZFtskODAm9KjLe5D6yPRRqqMtYkQkjc+rK85gIFj1T0DfauT TgW5fKk9XzZeSgcnDWVv+bbKEqW8ntay/hBnS4zi/yyP97+keBIjuCKxvDjS56J78rMb XtXUStf481BQZ3OA0YGrSxKriulTf4ySyRitR3pwvWasosJc6YxlOW1WukzCzNNYC2t9 9Rqw== X-Gm-Message-State: AN3rC/6s+DcDVolTO7Xh92Alwarvv1WTjdtgUtkmYsKQxM50rPZcOh1e V1QnpgbwLVdkCJei X-Received: by 10.80.174.131 with SMTP id e3mr16082839edd.166.1494244502525; Mon, 08 May 2017 04:55:02 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id k43sm3483411ede.1.2017.05.08.04.55.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 May 2017 04:55:02 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/8] KVM: arm/arm64: vgic: Rename kvm_vgic_vcpu_init to kvm_vgic_vcpu_enable Date: Mon, 8 May 2017 13:54:48 +0200 Message-Id: <20170508115454.5075-3-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170508115454.5075-1-cdall@linaro.org> References: <20170508115454.5075-1-cdall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170508_045524_195389_BE37CCAF X-CRM114-Status: GOOD ( 11.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Eric Auger , kvm@vger.kernel.org, Christoffer Dall MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This function really doesn't init anything, it enables the CPU interface, so name it as such, which gives us the name to use for actual init work later on. Signed-off-by: Christoffer Dall Reviewed-by: Eric Auger --- virt/kvm/arm/vgic/vgic-init.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/kvm/arm/vgic/vgic-init.c index 87de048..0ea64a1 100644 --- a/virt/kvm/arm/vgic/vgic-init.c +++ b/virt/kvm/arm/vgic/vgic-init.c @@ -226,11 +226,7 @@ static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) return 0; } -/** - * kvm_vgic_vcpu_init() - Enable the VCPU interface - * @vcpu: the VCPU which's VGIC should be enabled - */ -static void kvm_vgic_vcpu_init(struct kvm_vcpu *vcpu) +static void kvm_vgic_vcpu_enable(struct kvm_vcpu *vcpu) { if (kvm_vgic_global_state.type == VGIC_V2) vgic_v2_enable(vcpu); @@ -269,7 +265,7 @@ int vgic_init(struct kvm *kvm) dist->msis_require_devid = true; kvm_for_each_vcpu(i, vcpu, kvm) - kvm_vgic_vcpu_init(vcpu); + kvm_vgic_vcpu_enable(vcpu); ret = kvm_vgic_setup_default_irq_routing(kvm); if (ret)