Skip to content

GET/SET_ONE_REG and HIOR patches v3

Alexander Graf kvm kvm-ppc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

v1 -> v2 from the cover letter

- do paranthesis
- add patch to rename internal old KVM_REG constants
- fix comments

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: PPC: Add generic single register ioctlsDocumentation/virtual/kvm/api.txt arch/powerpc/kvm/powerpc.c include/linux/kvm.h+116 -00 replies
2/4KVM: PPC: Add support for explicit HIOR settingDocumentation/virtual/kvm/api.txt arch/powerpc/include/asm/kvm.h arch/powerpc/include/asm/kvm_book3s.h +3 more+23 -20 replies
3/4KVM: PPC: Move kvm_vcpu_ioctl_[gs]et_one_reg down to platform-specific codearch/powerpc/include/asm/kvm_ppc.h arch/powerpc/kvm/book3s_hv.c arch/powerpc/kvm/book3s_pr.c +2 more+81 -380 replies
4/4KVM: PPC: Rename MMIO register identifiersarch/powerpc/include/asm/kvm.h arch/powerpc/kvm/book3s_paired_singles.c arch/powerpc/kvm/powerpc.c+21 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] GET/SET_ONE_REG and HIOR patches v3

This is a revised version of the ONE_REG interface. The main difference to v1 is that we now encode the register size in the constant, making it very unambiguous what size it is. That way we can just take a pointer from user space to write it to.

Thanks a lot to Scott for reviewing the previous patches and pointing out some design issues before it actually lands upstream.

v1 -> v2:

- do paranthesis
- add patch to rename internal old KVM_REG constants
- fix comments

Alex

Alexander Graf (3):
KVM: PPC: Add generic single register ioctls
KVM: PPC: Add support for explicit HIOR setting
KVM: PPC: Rename MMIO register identifiers

Paul Mackerras (1):
KVM: PPC: Move kvm_vcpu_ioctl_[gs]et_one_reg down to
platform-specific code

 Documentation/virtual/kvm/api.txt        |   41 ++++++++++++++++++++++++++++++
 arch/powerpc/include/asm/kvm.h           |   14 ++++++----
 arch/powerpc/include/asm/kvm_book3s.h    |    2 +
 arch/powerpc/include/asm/kvm_ppc.h       |    3 ++
 arch/powerpc/kvm/book3s_hv.c             |   36 ++++++++++++++++++++++++++
 arch/powerpc/kvm/book3s_paired_singles.c |    9 ++++--
 arch/powerpc/kvm/book3s_pr.c             |   38 ++++++++++++++++++++++++++-
 arch/powerpc/kvm/booke.c                 |   10 +++++++
 arch/powerpc/kvm/powerpc.c               |   34 ++++++++++++++++++------
 include/linux/kvm.h                      |   36 ++++++++++++++++++++++++++
 10 files changed, 203 insertions(+), 20 deletions(-)