Skip to content

MIPS: KVM: Misc trivial cleanups

James Hogan kvm linux-mips 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16MIPS: KVM: Trivial whitespace and style fixesarch/mips/Kconfig arch/mips/include/asm/kvm_host.h arch/mips/kvm/emulate.c +2 more+14 -150 replies
2/16MIPS: KVM: Drop some unused definitions from kvm_host.harch/mips/include/asm/kvm_host.h+0 -50 replies
3/16MIPS: Move definition of DC bit to mipsregs.harch/mips/include/asm/kvm_host.h arch/mips/include/asm/mipsregs.h+2 -30 replies
4/16MIPS: KVM: Drop unused kvm_mips_host_tlb_inv_index()arch/mips/include/asm/kvm_host.h arch/mips/kvm/tlb.c+0 -380 replies
5/16MIPS: KVM: Convert EXPORT_SYMBOL to _GPLarch/mips/kvm/callback.c arch/mips/kvm/tlb.c+19 -190 replies
6/16MIPS: KVM: Refactor added offsetof()sarch/mips/kvm/dyntrans.c+3 -70 replies
7/16MIPS: KVM: Make kvm_mips_{init,exit}() staticarch/mips/kvm/mips.c+2 -20 replies
8/16MIPS: Move Cause.ExcCode trap codes to mipsregs.harch/mips/include/asm/kvm_host.h arch/mips/include/asm/mipsregs.h arch/mips/kvm/emulate.c +2 more+80 -830 replies
9/16MIPS: Update trap codesarch/mips/include/asm/mipsregs.h+10 -20 replies
10/16MIPS: Use EXCCODE_ constants with set_except_vector()arch/mips/kernel/cpu-bugs64.c arch/mips/kernel/traps.c+30 -300 replies
11/16MIPS: Break down cacheops.h definitionsarch/mips/include/asm/cacheops.h+64 -420 replies
12/16MIPS: KVM: Use cacheops.h definitionsarch/mips/kvm/emulate.c+8 -220 replies
13/16MIPS: Move KVM specific opcodes into asm/inst.harch/mips/include/uapi/asm/inst.h arch/mips/kvm/emulate.c arch/mips/kvm/opcode.h +1 more+5 -280 replies
14/16MIPS: KVM: Add missing newline to kvm_err()arch/mips/kvm/mips.c+1 -10 replies
15/16MIPS: KVM: Consistent use of uint*_t in MMIO handlingarch/mips/kvm/emulate.c+1 -10 replies
16/16MAINTAINERS: Add KVM for MIPS entryMAINTAINERS+8 -00 replies

Reviews trailers per patch

None of the 16 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPaolo Bonzini
SeriesA-b
1/16
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

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

Read the v1 thread

Cover letter [PATCH 00/16] MIPS: KVM: Misc trivial cleanups

This patchset contains a bunch of miscellaneous cleanups (which are mostly trivial) for MIPS KVM & MIPS headers, such as:
- Style/whitespace fixes
- General cleanup and removal of dead code.
- Moving/refactoring of general MIPS definitions out of arch/mips/kvm/ and into arch/mips/include/asm/ so they can be shared with the rest of arch/mips. Specifically COP0 register bits, exception codes, cache ops, & instruction opcodes.
- Add MAINTAINERS entry for MIPS KVM.

Due to the interaction with other arch/mips/ code, I think it makes sense for these to go via the MIPS tree.

James Hogan (16):
MIPS: KVM: Trivial whitespace and style fixes
MIPS: KVM: Drop some unused definitions from kvm_host.h
MIPS: Move definition of DC bit to mipsregs.h
MIPS: KVM: Drop unused kvm_mips_host_tlb_inv_index()
MIPS: KVM: Convert EXPORT_SYMBOL to _GPL
MIPS: KVM: Refactor added offsetof()s
MIPS: KVM: Make kvm_mips_{init,exit}() static
MIPS: Move Cause.ExcCode trap codes to mipsregs.h
MIPS: Update trap codes
MIPS: Use EXCCODE_ constants with set_except_vector()
MIPS: Break down cacheops.h definitions
MIPS: KVM: Use cacheops.h definitions
MIPS: Move KVM specific opcodes into asm/inst.h
MIPS: KVM: Add missing newline to kvm_err()
MIPS: KVM: Consistent use of uint*_t in MMIO handling
MAINTAINERS: Add KVM for MIPS entry

 MAINTAINERS                       |   8 +++
 arch/mips/Kconfig                 |   3 +-
 arch/mips/include/asm/cacheops.h  | 106 ++++++++++++++++++++--------------
 arch/mips/include/asm/kvm_host.h  |  39 +------------
 arch/mips/include/asm/mipsregs.h  |  34 +++++++++++
 arch/mips/include/uapi/asm/inst.h |   3 +-
 arch/mips/kernel/cpu-bugs64.c     |   8 +--
 arch/mips/kernel/traps.c          |  52 ++++++++---------
 arch/mips/kvm/callback.c          |   2 +-
 arch/mips/kvm/dyntrans.c          |  10 +---
 arch/mips/kvm/emulate.c           | 118 ++++++++++++++++----------------------
 arch/mips/kvm/interrupt.c         |   8 +--
 arch/mips/kvm/locore.S            |  12 ++--
 arch/mips/kvm/mips.c              |  38 ++++++------
 arch/mips/kvm/opcode.h            |  22 -------
 arch/mips/kvm/tlb.c               |  77 +++++++------------------
 arch/mips/kvm/trap_emul.c         |   1 -
 17 files changed, 245 insertions(+), 296 deletions(-)
 delete mode 100644 arch/mips/kvm/opcode.h
Cc Ralf Baechle <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Gleb Natapov <[email protected]>
Signature · 1 line
2.4.10