diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2014-02-04 14:43:25 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-05-30 09:39:35 +0200 |
commit | 9fbc02760d61fddc7716f9e6aa6ed1ff33e65405 (patch) | |
tree | 4aa1295e469db401198a93692301ef61173f5765 /arch/s390/kvm/gaccess.h | |
parent | KVM: vmx: DR7 masking on task switch emulation is wrong (diff) | |
download | linux-9fbc02760d61fddc7716f9e6aa6ed1ff33e65405.tar.xz linux-9fbc02760d61fddc7716f9e6aa6ed1ff33e65405.zip |
KVM: s390: Add a generic function for translating guest addresses
This patch adds a function for translating logical guest addresses into
physical guest addresses without touching the memory at the given location.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/gaccess.h')
-rw-r--r-- | arch/s390/kvm/gaccess.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/kvm/gaccess.h b/arch/s390/kvm/gaccess.h index a07ee08ac478..2d37a46195e2 100644 --- a/arch/s390/kvm/gaccess.h +++ b/arch/s390/kvm/gaccess.h @@ -155,6 +155,9 @@ int read_guest_lc(struct kvm_vcpu *vcpu, unsigned long gra, void *data, return kvm_read_guest(vcpu->kvm, gpa, data, len); } +int guest_translate_address(struct kvm_vcpu *vcpu, unsigned long gva, + unsigned long *gpa, int write); + int access_guest(struct kvm_vcpu *vcpu, unsigned long ga, void *data, unsigned long len, int write); |