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