OSDN Git Service

s390x: Add SIDA memory ops
authorJanosch Frank <frankja@linux.ibm.com>
Thu, 19 Mar 2020 13:19:12 +0000 (09:19 -0400)
committerCornelia Huck <cohuck@redhat.com>
Wed, 29 Apr 2020 12:31:31 +0000 (14:31 +0200)
commit1cca8265499d394d9ed4bfb75bd6e7265b529f89
treeaa1e89223c0b83e4aac515052c76d9e26637371d
parent2585e507ffa1da01b57dbea26b1e1fe507d27198
s390x: Add SIDA memory ops

Protected guests save the instruction control blocks in the SIDA
instead of QEMU/KVM directly accessing the guest's memory.

Let's introduce new functions to access the SIDA.

The memops for doing so are available with KVM_CAP_S390_PROTECTED, so
let's check for that.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20200319131921.2367-8-frankja@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu.h
target/s390x/kvm.c
target/s390x/kvm_s390x.h
target/s390x/mmu_helper.c