From patchwork Tue May 9 10:44:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9717609 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 F066560237 for ; Tue, 9 May 2017 10:52:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4E0322BF1 for ; Tue, 9 May 2017 10:52:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D95F02833C; Tue, 9 May 2017 10:52:11 +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 6937C22BF1 for ; Tue, 9 May 2017 10:52:11 +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=SCuNJyAnLWzYtR5IEfv3scpR47q2hNYO7awsuIWre44=; b=boDo/9esgK5ImSDMJnziM+t2XY ofsZiQdVYf+fXme5yooQ1E5slPFcCRwlwgK5O/ON10sJmwVHWdtOqhRqwmaB26wHKwmnqG1gnIoLx RAF98Zp2xMjLP7ZWg1rj6gaUfkXxvfUbhwGZt5HE/TT/LccfJ7/5/t5j9DfEmxx46etpl6lF9qyHt rNro9y60PfJnvDiLGFnX/6EIYqkgxBByW595aklaKSeXkSdej34XgfwoJLXziTUERjFjUy3XYJYJw Y6FaipYAx542BCFpdAhVkv6GtaouYDx67+nLwcPCR60oqZeCIZgcymmr4LQAgfTwtAU7t9XXnEORu 1qpcrGSA==; 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 1d82kU-0003Ab-ES; Tue, 09 May 2017 10:52:10 +0000 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d82eW-0002tP-2L for linux-arm-kernel@lists.infradead.org; Tue, 09 May 2017 10:46:06 +0000 Received: by mail-qk0-x235.google.com with SMTP id u75so75017741qka.3 for ; Tue, 09 May 2017 03:45:39 -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=ZwfOyUC50UTpOYOu+tVxpn/iSZ7MoXcAaASLzfuQPIA=; b=jbjwIi0oXDioG/aSjm77lCXNvtLCcJiSAj4nhvvWn4QSpRHLKngJnsSgIjyMQT33bw P3a7lrYOJbSI+nI/rAZ8hU6Mnb/rjDexnmxLY/ff3HJJpUrSFwYIjYvRnZs4/wrh/x4/ Z4sJv2aPoQqXVoZAtcqG5EI+7SwAni7fxryLA= 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=ZwfOyUC50UTpOYOu+tVxpn/iSZ7MoXcAaASLzfuQPIA=; b=a5+vmue5oiFuj8rtsd573IzU0O9GmMleRFAgjDOUAksWTShkAGwRQr+J/2g6a38q9D A8K1CJV/8DPqYKG3ioEfz2wsogmLt1Nx29NHTz1GUBpYLOCdNTcHLhM4Ja1QOas7Xm/A B9MuGc3XIq2uRBzrxEC8FbGAMWHUWFSXbNA7TxwCqyvOO7zfTfO8+U2Km5jGNUTHEBXr /ynhRZGBqcvaTu0GsgpqiltkA2HR3aYmaHM+GfaEsUPVu1Yba9L8NKbgb5K4vGzBu8rR nYYg7EWwtVnygb26JPvVuLvkg02xVbLxBir2eLdtpqOzPjD20icBl4Nl6B69ML7wRBEs 1Jsw== X-Gm-Message-State: AN3rC/7K7uYXYW1pzX795b20/q6ai913Pr1Ke50Mai+t50gRWvdZmLg4 5RxW6SR4W9Om+A0B X-Received: by 10.80.165.194 with SMTP id b2mr17279624edc.84.1494326739162; Tue, 09 May 2017 03:45:39 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id o30sm2331510edc.42.2017.05.09.03.45.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 May 2017 03:45:38 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PULL 28/37] KVM: arm/arm64: vgic: Rename kvm_vgic_vcpu_init to kvm_vgic_vcpu_enable Date: Tue, 9 May 2017 12:44:57 +0200 Message-Id: <20170509104506.30929-29-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170509104506.30929-1-cdall@linaro.org> References: <20170509104506.30929-1-cdall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170509_034600_631802_CC862A0E X-CRM114-Status: GOOD ( 11.06 ) 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: Christoffer Dall , kvm@vger.kernel.org, Marc Zyngier , Eric Auger , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org 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)