3 #ifndef __KVM_IODEV_H__
4 #define __KVM_IODEV_H__
6 #include <linux/kvm_types.h>
7 #include <linux/errno.h>
18 int (*
read)(
struct kvm_vcpu *vcpu,
23 int (*
write)(
struct kvm_vcpu *vcpu,
static int kvm_iodevice_read(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, gpa_t addr, int l, void *v)
static int kvm_iodevice_write(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, gpa_t addr, int l, const void *v)
static void kvm_iodevice_init(struct kvm_io_device *dev, const struct kvm_io_device_ops *ops)
void(* destructor)(struct kvm_io_device *this)
int(* write)(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr, int len, const void *val)
int(* read)(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr, int len, void *val)
const struct kvm_io_device_ops * ops