Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / hw / s390x / s390-virtio-hcall.h
blob3ae6d6ae3a1d8281da683bd2e95fb8a3cf1283cb
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"
16 #include "cpu.h"
18 /* The only thing that we need from the old kvm_virtio.h file */
19 #define KVM_S390_VIRTIO_NOTIFY 0
21 typedef int (*s390_virtio_fn)(const uint64_t *args);
22 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
23 int s390_virtio_hypercall(CPUS390XState *env);
25 #endif /* HW_S390_VIRTIO_HCALL_H */