KVM: S390: protvirt: Introduce instruction data area bounce buffer
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 2 Apr 2019 07:21:06 +0000 (09:21 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2020 18:47:11 +0000 (19:47 +0100)
commit19e1227768863a1469797c13ef8fea1af7beac2c
treea3982c53f1e0c20916d32369ca3602b18c768719
parentc8aac2344d663ec9c635ccec368341602f255f4c
KVM: S390: protvirt: Introduce instruction data area bounce buffer

Now that we can't access guest memory anymore, we have a dedicated
satellite block that's a bounce buffer for instruction data.

We re-use the memop interface to copy the instruction data to / from
userspace. This lets us re-use a lot of QEMU code which used that
interface to make logical guest memory accesses which are not possible
anymore in protected mode anyway.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
[borntraeger@de.ibm.com: patch merging, splitting, fixing]
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/pv.c
include/uapi/linux/kvm.h