1
2
3
4
5
6
7 #ifndef __ARM64_KVM_MMIO_H__
8 #define __ARM64_KVM_MMIO_H__
9
10 #include <linux/kvm_host.h>
11 #include <asm/kvm_arm.h>
12
13 struct kvm_decode {
14 unsigned long rt;
15 bool sign_extend;
16
17 bool sixty_four;
18 };
19
20 void kvm_mmio_write_buf(void *buf, unsigned int len, unsigned long data);
21 unsigned long kvm_mmio_read_buf(const void *buf, unsigned int len);
22
23 int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run);
24 int io_mem_abort(struct kvm_vcpu *vcpu, struct kvm_run *run,
25 phys_addr_t fault_ipa);
26
27 #endif