[PATCH 0/3] KVM: PPC: HIOR and sregs fixup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While working on the HIOR setting which already made it into Avi's tree, I
was too uncautious and ended up extending the sregs structure, breaking ABI
compatibility with all QEMU versions.

So the approach I was taking there was obvious wrong. Instead, what I thought
might be a better alternative is to get rid of the static "we have a struct
full of registers and shove it left and right" and instead just poke registers
directly between kernel and user space. That sounds slow for starters, but once
we have the infrastructure in place, we can build a batched version of the same
interface and be fast again but maintain flexibility.

This interface can also for example be used to easily fetch the next great
extension of SSE registers or some MSRs that we haven't thought of or lots
of PPC registers I haven't even heard of so far :). There always seem to be
new ones to learn of out there.

Please take a look at the interface and comment on whether you like it this
way or not. It's currently only implemented for the PPC target, but is held
generically, so everyone can use it.

Oh and - it obviously implements HIOR again which we have to drop from sregs
due to the ABI breakage.

Alex

Alexander Graf (3):
  Revert "KVM: PPC: Add support for explicit HIOR setting"
  KVM: PPC: Add generic single register ioctls
  KVM: PPC: Add support for explicit HIOR setting

 Documentation/virtual/kvm/api.txt     |   48 ++++++++++++++++++++++++
 arch/powerpc/include/asm/kvm.h        |   10 +----
 arch/powerpc/include/asm/kvm_book3s.h |    2 +-
 arch/powerpc/kvm/book3s_pr.c          |   12 +-----
 arch/powerpc/kvm/powerpc.c            |   64 +++++++++++++++++++++++++++++++++
 include/linux/kvm.h                   |   32 ++++++++++++++++
 6 files changed, 149 insertions(+), 19 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux