[Top] [All Lists]

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

To:,,, Sanjay Lal <>, Gleb Natapov <>
Subject: [PATCH v4 0/6] mips/kvm: Fix ABI for compatibility with 64-bit guests.
From: David Daney <>
Date: Tue, 21 May 2013 13:54:49 -0700
Cc:, David Daney <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=fPm3TdZ2ywyqi/Suklkfsb2FTqNSGDkrf5FkTUcdxsc=; b=A7j7ggNEq0Chqky99NOOvAW+6wsRTHviWE66y87H3Ti8H54fjHPj/V80l35TByQi03 q6TCUOhEJWBCeCl+K3UXMpKC+B63NDfSE2VuzZO8Ga4sep/LS2nUo8B8CmNKZR/wejCj q7FP1kOjsjcQ0KyYufYRrsJc6bBSgjbwwb8HEqIImDw3QjPBag/lmiESILKKPihyV9zO 16iMi4t6uFHnOVVnh2dazJCDGJSelr9hM41dDMRDia/+PYA+H6YYvoKgOiNktIM403Js cUYn0Pq7fkOGC7ijQ8DAFnPiwyvVHfXDkQn/+gt7rafAqG7JbUzyYVSwY25/Up/2Mweh qgJw==
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
From: David Daney <>

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.

Chandes 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
  mips/kvm: Fix ABI by moving manipulation of CP0 registers to
  mips/kvm: Use ENOIOCTLCMD to indicate unimplemented ioctls.

 arch/mips/include/asm/kvm.h      | 137 ++++++++++++----
 arch/mips/include/asm/kvm_host.h |   4 -
 arch/mips/kvm/kvm_mips.c         | 118 +++-----------
 arch/mips/kvm/kvm_trap_emul.c    | 338 ++++++++++++++++++++++++++++++++++-----
 4 files changed, 430 insertions(+), 167 deletions(-)


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