xref: /qemu/hw/s390x/s390-pci-kvm.c (revision dd1d5fd9684beeb0c14c39f497ef2aa9ac683aa7)
1 /*
2  * s390 zPCI KVM interfaces
3  *
4  * Copyright 2022 IBM Corp.
5  * Author(s): Matthew Rosato <mjrosato@linux.ibm.com>
6  *
7  * This work is licensed under the terms of the GNU GPL, version 2 or (at
8  * your option) any later version. See the COPYING file in the top-level
9  * directory.
10  */
11 
12 #include "qemu/osdep.h"
13 
14 #include "kvm/kvm_s390x.h"
15 #include "hw/s390x/pv.h"
16 #include "hw/s390x/s390-pci-kvm.h"
17 #include "cpu_models.h"
18 
19 bool s390_pci_kvm_interp_allowed(void)
20 {
21     return kvm_s390_get_zpci_op() && !s390_is_pv();
22 }
23