aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorCarsten Otte <cotte@de.ibm.com>2011-07-24 04:48:22 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-07-24 04:48:21 -0400
commit092670cd90eb88c33661de21f1b4ee08d2597171 (patch)
tree2960d3ef459eccd0c2a7d0e2a77fad9bdb2437f2 /arch/s390/kvm/kvm-s390.c
parent598841ca9919d008b520114d8a4378c4ce4e40a1 (diff)
[S390] Use gmap translation for accessing guest memory
This patch removes kvm-s390 internal assumption of a linear mapping of guest address space to user space. Previously, guest memory was translated to user addresses using a fixed offset (gmsor). The new code uses gmap_fault to resolve guest addresses. Signed-off-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 3ebb4ba83d9d..5a99f342fd0b 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -549,7 +549,7 @@ rerun_vcpu:
549 return rc; 549 return rc;
550} 550}
551 551
552static int __guestcopy(struct kvm_vcpu *vcpu, u64 guestdest, const void *from, 552static int __guestcopy(struct kvm_vcpu *vcpu, u64 guestdest, void *from,
553 unsigned long n, int prefix) 553 unsigned long n, int prefix)
554{ 554{
555 if (prefix) 555 if (prefix)
@@ -566,7 +566,7 @@ static int __guestcopy(struct kvm_vcpu *vcpu, u64 guestdest, const void *from,
566 */ 566 */
567int kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, unsigned long addr) 567int kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, unsigned long addr)
568{ 568{
569 const unsigned char archmode = 1; 569 unsigned char archmode = 1;
570 int prefix; 570 int prefix;
571 571
572 if (addr == KVM_S390_STORE_STATUS_NOADDR) { 572 if (addr == KVM_S390_STORE_STATUS_NOADDR) {