2022-09-02 20:27:32 +03:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2022-09-02 20:27:34 +03:00
|
|
|
#include "hw/s390x/s390-pci-bus.h"
|
|
|
|
#include "hw/s390x/s390-pci-inst.h"
|
|
|
|
|
2022-09-02 20:27:32 +03:00
|
|
|
#ifdef CONFIG_KVM
|
|
|
|
bool s390_pci_kvm_interp_allowed(void);
|
2022-09-02 20:27:34 +03:00
|
|
|
int s390_pci_kvm_aif_enable(S390PCIBusDevice *pbdev, ZpciFib *fib, bool assist);
|
|
|
|
int s390_pci_kvm_aif_disable(S390PCIBusDevice *pbdev);
|
2022-09-02 20:27:32 +03:00
|
|
|
#else
|
|
|
|
static inline bool s390_pci_kvm_interp_allowed(void)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2022-09-02 20:27:34 +03:00
|
|
|
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;
|
|
|
|
}
|
2022-09-02 20:27:32 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|