d0bc7091c2
Use the associated kvm ioctl operation to enable adapter event notification and forwarding for devices when requested. This feature will be set up with or without firmware assist based upon the 'forwarding_assist' setting. Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com> Message-Id: <20220902172737.170349-6-mjrosato@linux.ibm.com> [thuth: Rename "forwarding_assist" property to "forwarding-assist"] Signed-off-by: Thomas Huth <thuth@redhat.com>
39 lines
951 B
C
39 lines
951 B
C
/*
|
|
* s390 PCI KVM interfaces
|
|
*
|
|
* Copyright 2022 IBM Corp.
|
|
* Author(s): Matthew Rosato <mjrosato@linux.ibm.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or (at
|
|
* your option) any later version. See the COPYING file in the top-level
|
|
* directory.
|
|
*/
|
|
|
|
#ifndef HW_S390_PCI_KVM_H
|
|
#define HW_S390_PCI_KVM_H
|
|
|
|
#include "hw/s390x/s390-pci-bus.h"
|
|
#include "hw/s390x/s390-pci-inst.h"
|
|
|
|
#ifdef CONFIG_KVM
|
|
bool s390_pci_kvm_interp_allowed(void);
|
|
int s390_pci_kvm_aif_enable(S390PCIBusDevice *pbdev, ZpciFib *fib, bool assist);
|
|
int s390_pci_kvm_aif_disable(S390PCIBusDevice *pbdev);
|
|
#else
|
|
static inline bool s390_pci_kvm_interp_allowed(void)
|
|
{
|
|
return false;
|
|
}
|
|
static inline int s390_pci_kvm_aif_enable(S390PCIBusDevice *pbdev, ZpciFib *fib,
|
|
bool assist)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
static inline int s390_pci_kvm_aif_disable(S390PCIBusDevice *pbdev)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
#endif
|
|
|
|
#endif
|