Message ID | 1407228599-25065-3-git-send-email-anup.patel@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Aug 05, 2014 at 09:49:56AM +0100, Anup Patel wrote: > The __ARM64_SYS_REG() macro is already defined in uapi/asm/kvm.h > of Linux-3.16-rcX hence remove it from arm/aarch64/kvm-cpu.c I've been carrying a similar patch in my kvmtool/arm branch, but upstream kvmtool is still based on 3.13, so this isn't needed at the moment. Do you have a need for Pekka to merge in the latest kernel sources? Will -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 6 August 2014 18:20, Will Deacon <will.deacon@arm.com> wrote: > On Tue, Aug 05, 2014 at 09:49:56AM +0100, Anup Patel wrote: >> The __ARM64_SYS_REG() macro is already defined in uapi/asm/kvm.h >> of Linux-3.16-rcX hence remove it from arm/aarch64/kvm-cpu.c > > I've been carrying a similar patch in my kvmtool/arm branch, but upstream > kvmtool is still based on 3.13, so this isn't needed at the moment. > > Do you have a need for Pekka to merge in the latest kernel sources? > > Will Yes, we should syncup KVMTOOL with latest kernel sources. I want to be able to shutdown VM when using KVMTOOL. To do this we need to use PSCI-v0.2 from Guest kernel. -- Anup -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/tools/kvm/arm/aarch64/kvm-cpu.c b/tools/kvm/arm/aarch64/kvm-cpu.c index 71a2a3a..545171b 100644 --- a/tools/kvm/arm/aarch64/kvm-cpu.c +++ b/tools/kvm/arm/aarch64/kvm-cpu.c @@ -19,17 +19,6 @@ (((x) << KVM_REG_ARM64_SYSREG_ ## n ## _SHIFT) & \ KVM_REG_ARM64_SYSREG_ ## n ## _MASK) -#define __ARM64_SYS_REG(op0,op1,crn,crm,op2) \ - (KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \ - KVM_REG_ARM64_SYSREG | \ - ARM64_SYS_REG_SHIFT_MASK(op0, OP0) | \ - ARM64_SYS_REG_SHIFT_MASK(op1, OP1) | \ - ARM64_SYS_REG_SHIFT_MASK(crn, CRN) | \ - ARM64_SYS_REG_SHIFT_MASK(crm, CRM) | \ - ARM64_SYS_REG_SHIFT_MASK(op2, OP2)) - -#define ARM64_SYS_REG(...) __ARM64_SYS_REG(__VA_ARGS__) - unsigned long kvm_cpu__get_vcpu_mpidr(struct kvm_cpu *vcpu) { struct kvm_one_reg reg;