kernel_optimize_test/arch/s390/kvm
Heiko Carstens 2293897805 KVM: s390: add architecture compliant guest access functions
The new guest memory access function write_guest() and read_guest() can be
used to access guest memory in an architecture compliant way.
These functions will look at the vcpu's PSW and select the correct address
space for memory access and also perform correct address wrap around.
In case DAT is turned on, page tables will be walked otherwise access will
happen to real or absolute memory.

Any access exception will be recognized and exception data will be stored
in the vcpu's kvm_vcpu_arch.pgm member. Subsequently an exception can be
injected if necessary.

Missing are:
- key protection checks
- access register mode support
- program event recording support

This patch also adds write_guest_real(), read_guest_real(),
write_guest_absolute() and read_guest_absolute() guest functions which can
be used to access real and absolute storage. These functions currently do
not perform any access checks, since there is no use case (yet?).

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2014-04-22 13:24:38 +02:00
..
diag.c KVM: s390: make cmma usage conditionally 2014-04-22 13:24:13 +02:00
gaccess.c KVM: s390: add architecture compliant guest access functions 2014-04-22 13:24:38 +02:00
gaccess.h KVM: s390: add architecture compliant guest access functions 2014-04-22 13:24:38 +02:00
intercept.c KVM: s390: enable Transactional Execution 2014-01-17 13:12:01 +01:00
interrupt.c KVM: s390: allow injecting every kind of interrupt 2014-04-22 13:24:34 +02:00
irq.h KVM: s390: irq routing for adapter interrupts. 2014-03-21 13:43:00 +01:00
Kconfig KVM: s390: irq routing for adapter interrupts. 2014-03-21 13:43:00 +01:00
kvm-s390.c KVM: s390: export test_vfacility() 2014-04-22 13:24:35 +02:00
kvm-s390.h KVM: s390: add 'pgm' member to kvm_vcpu_arch and helper function 2014-04-22 13:24:37 +02:00
Makefile KVM: s390: add architecture compliant guest access functions 2014-04-22 13:24:38 +02:00
priv.c KVM: s390: make cmma usage conditionally 2014-04-22 13:24:13 +02:00
sigp.c KVM: s390: Fix possible memory leak in SIGP functions 2014-03-25 13:27:11 +01:00
trace-s390.h KVM: s390: Add support for channel I/O instructions. 2013-01-07 19:53:43 -02:00
trace.h KVM: s390: Don't enable skeys by default 2014-04-22 09:36:26 +02:00