mbox series

[v4,0/2] KVM: s390: make use of ultravisor AIV support

Message ID 20220223102000.3733712-1-mimu@linux.ibm.com (mailing list archive)
Headers show
Series KVM: s390: make use of ultravisor AIV support | expand

Message

Michael Mueller Feb. 23, 2022, 10:19 a.m. UTC
This patch enables the ultravisor adapter interruption vitualization
support.

Changes in v4:
- All vcpus are pulled out of SIE and disbled before the control
  blocks are changed to disable/enable the gisa and re-enabled
  afterwards instead of taking the vcpu specific lock.

Changes in v3:
- cache and test GISA descriptor only once in kvm_s390_gisa_enable()
- modified some comments
- removed some whitespace issues

Changes in v2:
- moved GISA disable into "put CPUs in PV mode" routine
- moved GISA enable into "pull CPUs out of PV mode" routine 

[1] https://lore.kernel.org/lkml/ae7c65d8-f632-a7f4-926a-50b9660673a1@linux.ibm.com/T/#mcb67699bf458ba7482f6b7529afe589d1dbb5930
[2] https://lore.kernel.org/all/20220208165310.3905815-1-mimu@linux.ibm.com/
[3] https://lore.kernel.org/all/20220209152217.1793281-2-mimu@linux.ibm.com/

Michael Mueller (2):
  KVM: s390: pv: pull all vcpus out of SIE before converting to/from pv
    vcpu
  KVM: s390: pv: make use of ultravisor AIV support

 arch/s390/include/asm/uv.h |  1 +
 arch/s390/kvm/interrupt.c  | 54 +++++++++++++++++++++++++++++++++-----
 arch/s390/kvm/kvm-s390.c   | 19 +++++++++-----
 arch/s390/kvm/kvm-s390.h   | 11 ++++++++
 4 files changed, 72 insertions(+), 13 deletions(-)

Comments

Michael Mueller Feb. 24, 2022, 3:04 p.m. UTC | #1
On 23.02.22 11:19, Michael Mueller wrote:
> This patch enables the ultravisor adapter interruption vitualization
> support.
> 
> Changes in v4:
> - All vcpus are pulled out of SIE and disbled before the control
>    blocks are changed to disable/enable the gisa and re-enabled
>    afterwards instead of taking the vcpu specific lock.


Christian,

I'm pulling back this v4 and ask for v3 to be re-applied as it turned
out that the described issue is related to kvm_s390_set_tod_clock()
being called in SIE intercepted context.

> 
> Changes in v3:
> - cache and test GISA descriptor only once in kvm_s390_gisa_enable()
> - modified some comments
> - removed some whitespace issues
> 
> Changes in v2:
> - moved GISA disable into "put CPUs in PV mode" routine
> - moved GISA enable into "pull CPUs out of PV mode" routine
> 
> [1] https://lore.kernel.org/lkml/ae7c65d8-f632-a7f4-926a-50b9660673a1@linux.ibm.com/T/#mcb67699bf458ba7482f6b7529afe589d1dbb5930
> [2] https://lore.kernel.org/all/20220208165310.3905815-1-mimu@linux.ibm.com/
> [3] https://lore.kernel.org/all/20220209152217.1793281-2-mimu@linux.ibm.com/
> 
> Michael Mueller (2):
>    KVM: s390: pv: pull all vcpus out of SIE before converting to/from pv
>      vcpu
>    KVM: s390: pv: make use of ultravisor AIV support
> 
>   arch/s390/include/asm/uv.h |  1 +
>   arch/s390/kvm/interrupt.c  | 54 +++++++++++++++++++++++++++++++++-----
>   arch/s390/kvm/kvm-s390.c   | 19 +++++++++-----
>   arch/s390/kvm/kvm-s390.h   | 11 ++++++++
>   4 files changed, 72 insertions(+), 13 deletions(-)
>