linux-mips
[Top] [All Lists]

[PATCH v6 0/6] mips/kvm: Fix ABI for compatibility with 64-bit guests.

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 0/6] mips/kvm: Fix ABI for compatibility with 64-bit guests.
From: David Daney <ddaney.cavm@gmail.com>
Date: Thu, 23 May 2013 09:49:04 -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; bh=NEr7ZixmRAAyQviwuTjhfz51CxLFDLZdNLIOTUIYSg4=; b=sYBH3du30jH2zK79EtmZYvwf/vEllbQnsTsiW2oK5LHzY+kmCRkjPlBilIPEa0Ebt3 LjS4BNC832MCumhXQpG6oIxLLYqJBMFId0ckQfbvAfKPMVC4vcpiyp/yd4XRN3iqevUy tNV4ovDeOQaSHcoEXgKS8pGs8heGedxlGi6jVry2TtnfxYHcws0VBBdBx/6NbhRqxbfY 5oG7CtqBV46EkQ1B6UoizuHdPwfhY/2sdPWyvnf38JzZVccB36UL0NAC1kxVLoPrB5rh 7NMsiYzTsohRU3agaHwnNNHWQ0DRFRfaoBfxtLj4rqADNwBUKrY59jxwDtxxsmwb/fcQ 49XA==
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
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

The initial patch set implementing MIPS KVM does not handle 64-bit
guests or use of the FPU.  This patch set corrects these ABI issues,
and does some very minor clean up.

Changes from v5: Adjust for kvm.h moving to uapi/asm.  Code formatting
                 to achieve line lengths <= 80.

Changes from v4: No code change, just keep more of the code in
                 kvm_mips.c rather than kvm_trap_emul.c

Changes from v3: Use KVM_SET_ONE_REG instead of KVM_SET_MSRS.  Added
                 ENOIOCTLCMD patch.

Changes from v2: Split into five parts, no code change.

David Daney (6):
  mips/kvm: Fix ABI for use of FPU.
  mips/kvm: Fix ABI for use of 64-bit registers.
  mips/kvm: Fix name of gpr field in struct kvm_regs.
  mips/kvm: Use ARRAY_SIZE() instead of hardcoded constants in
    kvm_arch_vcpu_ioctl_{s,g}et_regs
  mips/kvm: Fix ABI by moving manipulation of CP0 registers to
    KVM_{G,S}ET_ONE_REG
  mips/kvm: Use ENOIOCTLCMD to indicate unimplemented ioctls.

 arch/mips/include/asm/kvm_host.h |   4 -
 arch/mips/include/uapi/asm/kvm.h | 137 +++++++++++++++----
 arch/mips/kvm/kvm_mips.c         | 280 ++++++++++++++++++++++++++++++++++++---
 arch/mips/kvm/kvm_trap_emul.c    |  50 -------
 4 files changed, 369 insertions(+), 102 deletions(-)

-- 
1.7.11.7


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