Re: [PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-21 Thread Tony Krowiak
On 08/20/2018 04:41 PM, David Hildenbrand wrote: + if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_AP)) + vcpu->arch.sie_block->eca |= ECA_APIE; - vcpu->arch.sie_block->crycbd = vcpu->kvm->arch.crypto.crycbd; + /* If MSAX3 is installed on the guest, set up pro

Re: [PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-20 Thread David Hildenbrand
>> >>> + if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_AP)) >>> + vcpu->arch.sie_block->eca |= ECA_APIE; >>> >>> - vcpu->arch.sie_block->crycbd = vcpu->kvm->arch.crypto.crycbd; >>> + /* If MSAX3 is installed on the guest, set up protected key support */ >>> + if (test_k

Re: [PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-20 Thread Tony Krowiak
On 08/20/2018 12:41 PM, David Hildenbrand wrote: On 13.08.2018 23:48, Tony Krowiak wrote: From: Tony Krowiak This patch refactors the code that initializes and sets up the crypto configuration for a guest. The following changes are implemented via this patch: 1. Prior to the introduction of A

Re: [PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-20 Thread David Hildenbrand
On 13.08.2018 23:48, Tony Krowiak wrote: > From: Tony Krowiak > > This patch refactors the code that initializes and sets up the > crypto configuration for a guest. The following changes are > implemented via this patch: > > 1. Prior to the introduction of AP device virtualization, it >was n

[PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak This patch refactors the code that initializes and sets up the crypto configuration for a guest. The following changes are implemented via this patch: 1. Prior to the introduction of AP device virtualization, it was not necessary to provide guest access to the CRYCB unle