mips/kvm: Fix name of gpr field in struct kvm_regs.
authorDavid Daney <david.daney@cavium.com>
Thu, 23 May 2013 16:49:07 +0000 (09:49 -0700)
committerGleb Natapov <gleb@redhat.com>
Mon, 3 Jun 2013 07:58:53 +0000 (10:58 +0300)
Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Sanjay Lal <sanjayl@kymasys.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/uapi/asm/kvm.h
arch/mips/kvm/kvm_mips.c

index 86812fb..d145ead 100644 (file)
@@ -26,7 +26,8 @@
  * extended to 64-bits.
  */
 struct kvm_regs {
-       __u64 gprs[32];
+       /* out (KVM_GET_REGS) / in (KVM_SET_REGS) */
+       __u64 gpr[32];
        __u64 hi;
        __u64 lo;
        __u64 pc;
index e0dad02..93da750 100644 (file)
@@ -678,7 +678,7 @@ int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)
        int i;
 
        for (i = 0; i < 32; i++)
-               vcpu->arch.gprs[i] = regs->gprs[i];
+               vcpu->arch.gprs[i] = regs->gpr[i];
 
        vcpu->arch.hi = regs->hi;
        vcpu->arch.lo = regs->lo;
@@ -692,7 +692,7 @@ int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)
        int i;
 
        for (i = 0; i < 32; i++)
-               regs->gprs[i] = vcpu->arch.gprs[i];
+               regs->gpr[i] = vcpu->arch.gprs[i];
 
        regs->hi = vcpu->arch.hi;
        regs->lo = vcpu->arch.lo;