ca922fecda
We have a cross dependency between KVM and VFIO when using s390 vfio_pci_zdev extensions for PCI passthrough To be able to keep both subsystem modular we add a registering hook inside the S390 core code. This fixes a build problem when VFIO is built-in and KVM is built as a module. Reported-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Fixes: 09340b2fca007 ("KVM: s390: pci: add routines to start/stop interpretive execution") Cc: <stable@vger.kernel.org> Acked-by: Janosch Frank <frankja@linux.ibm.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Link: https://lore.kernel.org/r/20220819122945.9309-1-pmorel@linux.ibm.com Message-Id: <20220819122945.9309-1-pmorel@linux.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
12 lines
284 B
C
12 lines
284 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* VFIO ZPCI devices support
|
|
*
|
|
* Copyright (C) IBM Corp. 2022. All rights reserved.
|
|
* Author(s): Pierre Morel <pmorel@linux.ibm.com>
|
|
*/
|
|
#include <linux/kvm_host.h>
|
|
|
|
struct zpci_kvm_hook zpci_kvm_hook;
|
|
EXPORT_SYMBOL_GPL(zpci_kvm_hook);
|