2013-01-17 08:23:46 +04:00
|
|
|
/*
|
2017-09-13 16:23:59 +03:00
|
|
|
* Support for virtio hypercalls on s390x
|
2013-01-17 08:23:46 +04:00
|
|
|
*
|
2017-11-15 18:42:23 +03:00
|
|
|
* Copyright IBM Corp. 2012, 2017
|
2013-01-17 08:23:46 +04: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 16:23:59 +03:00
|
|
|
#ifndef HW_S390_VIRTIO_HCALL_H
|
|
|
|
#define HW_S390_VIRTIO_HCALL_H
|
2013-01-17 08:23:46 +04:00
|
|
|
|
2015-02-17 00:36:58 +03:00
|
|
|
#include "standard-headers/asm-s390/virtio-ccw.h"
|
2013-01-17 08:23:46 +04:00
|
|
|
|
2017-11-15 18:42:23 +03:00
|
|
|
/* The only thing that we need from the old kvm_virtio.h file */
|
|
|
|
#define KVM_S390_VIRTIO_NOTIFY 0
|
|
|
|
|
2013-01-17 08:23:46 +04: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 16:24:00 +03:00
|
|
|
int s390_virtio_hypercall(CPUS390XState *env);
|
2017-09-13 16:23:59 +03:00
|
|
|
#endif /* HW_S390_VIRTIO_HCALL_H */
|