]> 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)
commit151c65dbcda4f47f4652e4269c04c307080a018d
treea7e47eef70156a4f958d46e52a891a09335aa990
parent6872a25b57a79a05626f2e34e76ce42620a7ccef
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: ddbee4c4fd42 ("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