Skip to content

mips/kvm: Fix ABI for compatibility with 64-bit guests.

David Daney kvm linux-mips lkml 6 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 1 replyApplied
  2. v56 patches 6 repliesSuperseded
  3. v46 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches4 repliesSuperseded
v21 patch0 repliesSuperseded
v11 patch2 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/6mips/kvm: Fix ABI for use of FPU.arch/mips/include/uapi/asm/kvm.h+21 -80 replies
2/6mips/kvm: Fix ABI for use of 64-bit registers.arch/mips/include/uapi/asm/kvm.h+11 -50 replies
3/6mips/kvm: Fix name of gpr field in struct kvm_regs.arch/mips/include/uapi/asm/kvm.h arch/mips/kvm/kvm_mips.c+4 -30 replies
4/6mips/kvm: Use ARRAY_SIZE() instead of hardcoded constants in kvm_arch_vcpu_ioctl_{s,g}et_regsarch/mips/kvm/kvm_mips.c+3 -30 replies
5/6mips/kvm: Fix ABI by moving manipulation of CP0 registers to KVM_{G,S}ET_ONE_REGarch/mips/include/asm/kvm_host.h arch/mips/include/uapi/asm/kvm.h arch/mips/kvm/kvm_mips.c +1 more+322 -750 replies
6/6mips/kvm: Use ENOIOCTLCMD to indicate unimplemented ioctls.arch/mips/kvm/kvm_mips.c+9 -90 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchSanjay Lal
1/6A-b
2/6A-b
3/6A-b
4/6A-b
5/6A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

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

From: David Daney <[email protected]>

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(-)
Signature · 1 line
1.7.11.7