android_kernel_motorola_sm6225/Documentation/virtual/kvm
Paul Mackerras a136a8bdc0 KVM: PPC: Book3S: Get/set guest SPRs using the GET/SET_ONE_REG interface
This enables userspace to get and set various SPRs (special-purpose
registers) using the KVM_[GS]ET_ONE_REG ioctls.  With this, userspace
can get and set all the SPRs that are part of the guest state, either
through the KVM_[GS]ET_REGS ioctls, the KVM_[GS]ET_SREGS ioctls, or
the KVM_[GS]ET_ONE_REG ioctls.

The SPRs that are added here are:

- DABR:  Data address breakpoint register
- DSCR:  Data stream control register
- PURR:  Processor utilization of resources register
- SPURR: Scaled PURR
- DAR:   Data address register
- DSISR: Data storage interrupt status register
- AMR:   Authority mask register
- UAMOR: User authority mask override register
- MMCR0, MMCR1, MMCRA: Performance monitor unit control registers
- PMC1..PMC8: Performance monitor unit counter registers

In order to reduce code duplication between PR and HV KVM code, this
moves the kvm_vcpu_ioctl_[gs]et_one_reg functions into book3s.c and
centralizes the copying between user and kernel space there.  The
registers that are handled differently between PR and HV, and those
that exist only in one flavor, are handled in kvmppc_[gs]et_one_reg()
functions that are specific to each flavor.

Signed-off-by: Paul Mackerras <paulus@samba.org>
[agraf: minimal style fixes]
Signed-off-by: Alexander Graf <agraf@suse.de>
2012-10-05 23:38:54 +02:00
..
api.txt KVM: PPC: Book3S: Get/set guest SPRs using the GET/SET_ONE_REG interface 2012-10-05 23:38:54 +02:00
cpuid.txt KVM: fix cpuid eax for KVM leaf 2012-05-06 15:51:56 +03:00
hypercalls.txt KVM: Add documentation on hypercalls 2012-08-13 17:39:59 -03:00
locking.txt KVM: MMU: document mmu-lock and fast page fault 2012-07-11 16:51:23 +03:00
mmu.txt Documentation: Fix multiple typo in Documentation 2012-03-07 16:08:24 +01:00
msr.txt KVM: clarify kvmclock documentation 2012-09-17 14:10:23 -03:00
nested-vmx.txt KVM: nVMX: Documentation 2011-07-12 13:15:22 +03:00
ppc-pv.txt KVM: Add ppc hypercall documentation 2012-08-13 17:39:59 -03:00
review-checklist.txt
timekeeping.txt