linux_dsm_epyc7002/arch/s390/kvm
Heiko Carstens 3736b874a3 KVM: s390: make if statements in lpsw/lpswe handlers readable
Being unable to parse the 5- and 8-line if statements I had to split them
to be able to make any sense of them and verify that they match the
architecture.
So change the code since I guess that other people will also have a hard
time parsing such long conditional statements with line breaks.

Introduce a common is_valid_psw() function which does all the checks needed.
In case of lpsw (64 bit psw -> 128 bit psw conversion) it will do some not
needed additional checks, since a couple of bits can't be set anyway, but
that doesn't hurt.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
2013-04-02 16:14:36 +03:00
..
diag.c KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
gaccess.h s390/kvm,gaccess: add address space annotations 2013-03-07 16:21:22 -03:00
intercept.c s390/kvm,gaccess: add address space annotations 2013-03-07 16:21:22 -03:00
interrupt.c s390/kvm,gaccess: add address space annotations 2013-03-07 16:21:22 -03:00
Kconfig KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
kvm-s390.c KVM: s390: Dont do a gmap update on minor memslot changes 2013-04-02 16:14:07 +03:00
kvm-s390.h s390/kvm: Fix instruction decoding 2013-01-30 12:35:59 +02:00
Makefile KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
priv.c KVM: s390: make if statements in lpsw/lpswe handlers readable 2013-04-02 16:14:36 +03:00
sigp.c KVM: s390: kvm/sigp.c: fix memory leakage 2013-01-17 08:41:48 +02:00
trace-s390.h KVM: s390: Add support for channel I/O instructions. 2013-01-07 19:53:43 -02:00
trace.h KVM: s390: Add architectural trace events 2012-07-26 14:04:34 +03:00