hw/arm/boot: AArch32 kernels should be started in Hyp mode if available
[qemu/ar7.git] / hw / s390x / s390-virtio-hcall.h
blob9800c4b351ec5a08b4d526535be0682bd31ea867
1 /*
2 * Support for virtio hypercalls on s390x
4 * Copyright IBM Corp. 2012, 2017
5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
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.
12 #ifndef HW_S390_VIRTIO_HCALL_H
13 #define HW_S390_VIRTIO_HCALL_H
15 #include "standard-headers/asm-s390/virtio-ccw.h"
17 /* The only thing that we need from the old kvm_virtio.h file */
18 #define KVM_S390_VIRTIO_NOTIFY 0
20 typedef int (*s390_virtio_fn)(const uint64_t *args);
21 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
22 int s390_virtio_hypercall(CPUS390XState *env);
23 #endif /* HW_S390_VIRTIO_HCALL_H */