]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: pci: register pci hooks without interpretation
authorMatthew Rosato <mjrosato@linux.ibm.com>
Tue, 20 Sep 2022 19:30:25 +0000 (15:30 -0400)
committerJanosch Frank <frankja@linux.ibm.com>
Wed, 21 Sep 2022 14:18:38 +0000 (16:18 +0200)
commit9728c2b46204589403125dcaa6f135c9a9a03409
treea7e47eef70156a4f958d46e52a891a09335aa990
parent432422249d36be38e2f3f4e014beca6f4bac376c
KVM: s390: pci: register pci hooks without interpretation

The kvm registration hooks must be registered even if the facilities
necessary for zPCI interpretation are unavailable, as vfio-pci-zdev will
expect to use the hooks regardless.
This fixes an issue where vfio-pci-zdev will fail its open function
because of a missing kvm_register when running on hardware that does not
support zPCI interpretation.

Fixes: 23bcac9378fd ("KVM: s390: pci: Hook to access KVM lowlevel from VFIO")
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Link: https://lore.kernel.org/r/20220920193025.135655-1-mjrosato@linux.ibm.com
Message-Id: <20220920193025.135655-1-mjrosato@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/pci.c