| Date | Thu, 5 May 2022 15:10:39 +0200 | Subject | Re: [PATCH v6 13/21] KVM: s390: mechanism to enable guest zPCI Interpretation | From | Christian Borntraeger <> |
| |
Am 26.04.22 um 22:08 schrieb Matthew Rosato:
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
> +/* Must be called with kvm->lock held */
maybe lockdep_assert_held?
> +void kvm_s390_vcpu_pci_enable_interp(struct kvm *kvm) > +{ > + struct kvm_vcpu *vcpu; > + unsigned long i; > + > + /* > + * If host is configured for PCI and the necessary facilities are > + * available, turn on interpretation for the life of this guest > + */ > + if (!kvm_s390_pci_interp_allowed()) > + return; > + > + kvm->arch.use_zpci_interp = 1; > + > + kvm_s390_vcpu_block_all(kvm); > + > + kvm_for_each_vcpu(i, vcpu, kvm) { > + kvm_s390_vcpu_pci_setup(vcpu); > + kvm_s390_sync_request(KVM_REQ_VSIE_RESTART, vcpu); > + } > + > + kvm_s390_vcpu_unblock_all(kvm); > +}
|