]> git.proxmox.com Git - mirror_qemu.git/blame - hw/s390x/s390-virtio-hcall.h
hw/block/pflash_cfi02: Fix reset command not ignored during erase
[mirror_qemu.git] / hw / s390x / s390-virtio-hcall.h
CommitLineData
28e942f8 1/*
7d577546 2 * Support for virtio hypercalls on s390x
28e942f8 3 *
c1c4c219 4 * Copyright IBM Corp. 2012, 2017
28e942f8
CH
5 * Author(s): Cornelia Huck <cornelia.huck@de.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
7d577546
DH
12#ifndef HW_S390_VIRTIO_HCALL_H
13#define HW_S390_VIRTIO_HCALL_H
28e942f8 14
ad67a0f2 15#include "standard-headers/asm-s390/virtio-ccw.h"
28e942f8 16
c1c4c219
CB
17/* The only thing that we need from the old kvm_virtio.h file */
18#define KVM_S390_VIRTIO_NOTIFY 0
19
28e942f8
CH
20typedef int (*s390_virtio_fn)(const uint64_t *args);
21void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
2c98a6c1 22int s390_virtio_hypercall(CPUS390XState *env);
7d577546 23#endif /* HW_S390_VIRTIO_HCALL_H */