s390x: pv: Fix diag318 PV fencing
commit3ded270a2697852a71961b45291519ae044f25e3
authorJanosch Frank <frankja@linux.ibm.com>
Thu, 22 Oct 2020 10:31:35 +0000 (22 06:31 -0400)
committerCornelia Huck <cohuck@redhat.com>
Thu, 22 Oct 2020 13:47:27 +0000 (22 15:47 +0200)
treea3fa320f41c02da90174be609c375bc98e19cc01
parent3df4843d0e612a3c838e8d94c3e9c24520f2e680
s390x: pv: Fix diag318 PV fencing

Diag318 fencing needs to be determined on the current VM PV state and
not on the state that the VM has when we create the CPU model.

Fixes: fabdada935 ("s390: guest support for diagnose 0x318")
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Tested-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Message-Id: <20201022103135.126033-3-frankja@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu_features.c
target/s390x/cpu_features.h
target/s390x/cpu_models.c
target/s390x/kvm.c