linux-mips
[Top] [All Lists]

[PATCH v6 3/6] mips/kvm: Fix name of gpr field in struct kvm_regs.

To: linux-mips@linux-mips.org, ralf@linux-mips.org, kvm@vger.kernel.org, Sanjay Lal <sanjayl@kymasys.com>, Gleb Natapov <gleb@redhat.com>
Subject: [PATCH v6 3/6] mips/kvm: Fix name of gpr field in struct kvm_regs.
From: David Daney <ddaney.cavm@gmail.com>
Date: Thu, 23 May 2013 09:49:07 -0700
Cc: linux-kernel@vger.kernel.org, David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=KFfd6NKAVPZKiZ7EJ6LVR+FjzFhhVlvucDRvYk+PM1A=; b=TiL/xFlKRubH7F0xfseDen2vUZe/4+KlGlN42TVHeQmm0ZaSbUcUynmGlESK6CUZ92 N79Fau1p4dPowMQscwWrLtpCa0WCL9W118vAWzaUBm2yfqIy0JzBunvfNjyL89lNG+HL MTPGLkGViQKyAzFP57fZHi340ZzSE9AaLX2dQiUbKOP+RMMFk/O26K1xBFg3Bs145uAt VC6ZehodSLZ62VKwWmY/QJpLH9j7KJBrDtcf06inVtTQpo6P9bBEtUDyBNhvn6goYv6G ECtL8Co+k0s0gGyzp0wAjo2JXcQhr+NesM/sBoBjM29hbEJYu/V1UM3erCZ584UDrw6z sGqg==
In-reply-to: <1369327750-28580-1-git-send-email-ddaney.cavm@gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1369327750-28580-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Sanjay Lal <sanjayl@kymasys.com>
---
 arch/mips/include/uapi/asm/kvm.h | 3 ++-
 arch/mips/kvm/kvm_mips.c         | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/mips/include/uapi/asm/kvm.h b/arch/mips/include/uapi/asm/kvm.h
index 86812fb..d145ead 100644
--- a/arch/mips/include/uapi/asm/kvm.h
+++ b/arch/mips/include/uapi/asm/kvm.h
@@ -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;
diff --git a/arch/mips/kvm/kvm_mips.c b/arch/mips/kvm/kvm_mips.c
index e0dad02..93da750 100644
--- a/arch/mips/kvm/kvm_mips.c
+++ b/arch/mips/kvm/kvm_mips.c
@@ -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;
-- 
1.7.11.7


<Prev in Thread] Current Thread [Next in Thread>