2013-01-17 12:23:46 +08:00
|
|
|
/*
|
2017-09-13 21:23:59 +08:00
|
|
|
* Support for virtio hypercalls on s390x
|
2013-01-17 12:23:46 +08:00
|
|
|
*
|
2017-11-15 23:42:23 +08:00
|
|
|
* Copyright IBM Corp. 2012, 2017
|
2013-01-17 12:23:46 +08:00
|
|
|
* Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or (at
|
|
|
|
* your option) any later version. See the COPYING file in the top-level
|
|
|
|
* directory.
|
|
|
|
*/
|
|
|
|
|
2017-09-13 21:23:59 +08:00
|
|
|
#ifndef HW_S390_VIRTIO_HCALL_H
|
|
|
|
#define HW_S390_VIRTIO_HCALL_H
|
2013-01-17 12:23:46 +08:00
|
|
|
|
2015-02-17 05:36:58 +08:00
|
|
|
#include "standard-headers/asm-s390/virtio-ccw.h"
|
2013-01-17 12:23:46 +08:00
|
|
|
|
2017-11-15 23:42:23 +08:00
|
|
|
/* The only thing that we need from the old kvm_virtio.h file */
|
|
|
|
#define KVM_S390_VIRTIO_NOTIFY 0
|
|
|
|
|
2013-01-17 12:23:46 +08:00
|
|
|
typedef int (*s390_virtio_fn)(const uint64_t *args);
|
|
|
|
void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
|
2017-09-13 21:24:00 +08:00
|
|
|
int s390_virtio_hypercall(CPUS390XState *env);
|
2017-09-13 21:23:59 +08:00
|
|
|
#endif /* HW_S390_VIRTIO_HCALL_H */
|