diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-01-01 16:26:52 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-04-22 13:24:38 +0200 |
commit | 2293897805c2fea69e45aca31b3589d4590af89d (patch) | |
tree | 21fc9661bc2936bca9ba3054f02613859c53d663 /drivers/s390 | |
parent | d95fb12ff4d73e897126043bb5d03a068997a2ef (diff) | |
download | linux-2293897805c2fea69e45aca31b3589d4590af89d.tar.gz linux-2293897805c2fea69e45aca31b3589d4590af89d.tar.bz2 linux-2293897805c2fea69e45aca31b3589d4590af89d.zip |
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>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions