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
|
|
|
*
|
|
|
|
* Copyright 2012 IBM Corp.
|
|
|
|
* 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/kvm_virtio.h"
|
|
|
|
#include "standard-headers/asm-s390/virtio-ccw.h"
|
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 */
|