target/s390x: use trigger_pgm_exception() in s390_cpu_handle_mmu_fault()
[qemu.git] / hw / s390x / s390-virtio-hcall.h
blobcbc270eef3ed4354d3bea59368aa44fef5f20f26
1 /*
2 * Support for virtio hypercalls on s390x
4 * Copyright 2012 IBM Corp.
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/kvm_virtio.h"
16 #include "standard-headers/asm-s390/virtio-ccw.h"
18 typedef int (*s390_virtio_fn)(const uint64_t *args);
19 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
20 int s390_virtio_hypercall(CPUS390XState *env);
21 #endif /* HW_S390_VIRTIO_HCALL_H */