From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: [PATCH v4 37/40] KVM: arm/arm64: Move arm64-only vgic-v2-sr.c file to arm64 Date: Thu, 22 Feb 2018 12:33:20 +0000 Message-ID: <3d76ca96-f8c1-0965-f166-ba10fb5b2b08@arm.com> References: <20180215210332.8648-1-christoffer.dall@linaro.org> <20180215210332.8648-38-christoffer.dall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Yury Norov , Dave Martin , Shih-Wei Li To: Christoffer Dall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Return-path: In-Reply-To: <20180215210332.8648-38-christoffer.dall@linaro.org> Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org On 15/02/18 21:03, Christoffer Dall wrote: > The vgic-v2-sr.c file now only contains the logic to replay unaligned > accesses to the virtual CPU interface on 16K and 64K page systems, which > is only relevant on 64-bit platforms. Therefore move this file to the > arm64 KVM tree, remove the compile directive from the 32-bit side > makefile, and remove the ifdef in the C file. > > Reviewed-by: Andre Przywara > Signed-off-by: Christoffer Dall > --- > arch/arm/kvm/hyp/Makefile | 1 - > arch/arm64/kvm/hyp/Makefile | 2 +- > {virt/kvm/arm => arch/arm64/kvm}/hyp/vgic-v2-sr.c | 2 -- > 3 files changed, 1 insertion(+), 4 deletions(-) > rename {virt/kvm/arm => arch/arm64/kvm}/hyp/vgic-v2-sr.c (98%) > > diff --git a/arch/arm/kvm/hyp/Makefile b/arch/arm/kvm/hyp/Makefile > index 5638ce0c9524..1964111c984a 100644 > --- a/arch/arm/kvm/hyp/Makefile > +++ b/arch/arm/kvm/hyp/Makefile > @@ -7,7 +7,6 @@ ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING > > KVM=../../../../virt/kvm > > -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v2-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o > > diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile > index f04400d494b7..7e8d41210288 100644 > --- a/arch/arm64/kvm/hyp/Makefile > +++ b/arch/arm64/kvm/hyp/Makefile > @@ -7,10 +7,10 @@ ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING > > KVM=../../../../virt/kvm > > -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v2-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o > > +obj-$(CONFIG_KVM_ARM_HOST) += vgic-v2-sr.o How about renaming the file to vgic-v2-cpuif-proxy.c? It doesn't have anything to do with save/restore anymore... > obj-$(CONFIG_KVM_ARM_HOST) += sysreg-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += debug-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += entry.o > diff --git a/virt/kvm/arm/hyp/vgic-v2-sr.c b/arch/arm64/kvm/hyp/vgic-v2-sr.c > similarity index 98% > rename from virt/kvm/arm/hyp/vgic-v2-sr.c > rename to arch/arm64/kvm/hyp/vgic-v2-sr.c > index 0bbafdfd4adb..97f357ea9c72 100644 > --- a/virt/kvm/arm/hyp/vgic-v2-sr.c > +++ b/arch/arm64/kvm/hyp/vgic-v2-sr.c > @@ -23,7 +23,6 @@ > #include > #include > > -#ifdef CONFIG_ARM64 > /* > * __vgic_v2_perform_cpuif_access -- perform a GICV access on behalf of the > * guest. > @@ -77,4 +76,3 @@ int __hyp_text __vgic_v2_perform_cpuif_access(struct kvm_vcpu *vcpu) > > return 1; > } > -#endif > Otherwise looks good. M. -- Jazz is not dead. It just smells funny... From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Thu, 22 Feb 2018 12:33:20 +0000 Subject: [PATCH v4 37/40] KVM: arm/arm64: Move arm64-only vgic-v2-sr.c file to arm64 In-Reply-To: <20180215210332.8648-38-christoffer.dall@linaro.org> References: <20180215210332.8648-1-christoffer.dall@linaro.org> <20180215210332.8648-38-christoffer.dall@linaro.org> Message-ID: <3d76ca96-f8c1-0965-f166-ba10fb5b2b08@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 15/02/18 21:03, Christoffer Dall wrote: > The vgic-v2-sr.c file now only contains the logic to replay unaligned > accesses to the virtual CPU interface on 16K and 64K page systems, which > is only relevant on 64-bit platforms. Therefore move this file to the > arm64 KVM tree, remove the compile directive from the 32-bit side > makefile, and remove the ifdef in the C file. > > Reviewed-by: Andre Przywara > Signed-off-by: Christoffer Dall > --- > arch/arm/kvm/hyp/Makefile | 1 - > arch/arm64/kvm/hyp/Makefile | 2 +- > {virt/kvm/arm => arch/arm64/kvm}/hyp/vgic-v2-sr.c | 2 -- > 3 files changed, 1 insertion(+), 4 deletions(-) > rename {virt/kvm/arm => arch/arm64/kvm}/hyp/vgic-v2-sr.c (98%) > > diff --git a/arch/arm/kvm/hyp/Makefile b/arch/arm/kvm/hyp/Makefile > index 5638ce0c9524..1964111c984a 100644 > --- a/arch/arm/kvm/hyp/Makefile > +++ b/arch/arm/kvm/hyp/Makefile > @@ -7,7 +7,6 @@ ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING > > KVM=../../../../virt/kvm > > -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v2-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o > > diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile > index f04400d494b7..7e8d41210288 100644 > --- a/arch/arm64/kvm/hyp/Makefile > +++ b/arch/arm64/kvm/hyp/Makefile > @@ -7,10 +7,10 @@ ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING > > KVM=../../../../virt/kvm > > -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v2-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o > > +obj-$(CONFIG_KVM_ARM_HOST) += vgic-v2-sr.o How about renaming the file to vgic-v2-cpuif-proxy.c? It doesn't have anything to do with save/restore anymore... > obj-$(CONFIG_KVM_ARM_HOST) += sysreg-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += debug-sr.o > obj-$(CONFIG_KVM_ARM_HOST) += entry.o > diff --git a/virt/kvm/arm/hyp/vgic-v2-sr.c b/arch/arm64/kvm/hyp/vgic-v2-sr.c > similarity index 98% > rename from virt/kvm/arm/hyp/vgic-v2-sr.c > rename to arch/arm64/kvm/hyp/vgic-v2-sr.c > index 0bbafdfd4adb..97f357ea9c72 100644 > --- a/virt/kvm/arm/hyp/vgic-v2-sr.c > +++ b/arch/arm64/kvm/hyp/vgic-v2-sr.c > @@ -23,7 +23,6 @@ > #include > #include > > -#ifdef CONFIG_ARM64 > /* > * __vgic_v2_perform_cpuif_access -- perform a GICV access on behalf of the > * guest. > @@ -77,4 +76,3 @@ int __hyp_text __vgic_v2_perform_cpuif_access(struct kvm_vcpu *vcpu) > > return 1; > } > -#endif > Otherwise looks good. M. -- Jazz is not dead. It just smells funny...