linux-stable/arch/s390/kvm
Claudio Imbrenda 5ac14bac08 KVM: s390: extend kvm_s390_shadow_fault to return entry pointer
Extend kvm_s390_shadow_fault to return the pointer to the valid leaf
DAT table entry, or to the invalid entry.

Also return some flags in the lower bits of the address:
PEI_DAT_PROT: indicates that DAT protection applies because of the
              protection bit in the segment (or, if EDAT, region) tables.
PEI_NOT_PTE: indicates that the address of the DAT table entry returned
             does not refer to a PTE, but to a segment or region table.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: stable@vger.kernel.org
Reviewed-by: Janosch Frank <frankja@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Link: https://lore.kernel.org/r/20210302174443.514363-3-imbrenda@linux.ibm.com
[borntraeger@de.ibm.com: fold in a fix from Claudio]
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2021-03-24 10:15:12 +01:00
..
diag.c KVM: s390: diag9c (directed yield) forwarding 2021-03-09 10:16:26 +01:00
gaccess.c KVM: s390: extend kvm_s390_shadow_fault to return entry pointer 2021-03-24 10:15:12 +01:00
gaccess.h KVM: s390: extend kvm_s390_shadow_fault to return entry pointer 2021-03-24 10:15:12 +01:00
guestdbg.c KVM: s390: Add memcg accounting to KVM allocations 2020-12-10 13:36:05 +01:00
intercept.c KVM: s390: Add memcg accounting to KVM allocations 2020-12-10 13:36:05 +01:00
interrupt.c KVM: s390: Add memcg accounting to KVM allocations 2020-12-10 13:36:05 +01:00
irq.h KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
kvm-s390.c KVM: s390: diag9c (directed yield) forwarding 2021-03-09 10:16:26 +01:00
kvm-s390.h KVM: s390: diag9c (directed yield) forwarding 2021-03-09 10:16:26 +01:00
Makefile KVM: s390: protvirt: Add initial vm and cpu lifecycle handling 2020-02-27 19:47:11 +01:00
priv.c KVM: s390: Add memcg accounting to KVM allocations 2020-12-10 13:36:05 +01:00
pv.c ARM: 2020-12-20 10:44:05 -08:00
sigp.c KVM: s390: introduce and use kvm_s390_test_cpuflags() 2018-01-24 17:46:42 +01:00
trace-s390.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vsie.c KVM: s390: extend kvm_s390_shadow_fault to return entry pointer 2021-03-24 10:15:12 +01:00