OSDN Git Service

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)
commit189e7d876e48d7c791fe1c9c01516f70f5621a9f
treea7e47eef70156a4f958d46e52a891a09335aa990
parent70ba8fae27758cc2679a948b03d8a9ca18f1dcb1
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: ca922fecda6c ("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