summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/include/asm/kvm_mmio.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/include/asm/kvm_mmio.h')
-rw-r--r--kernel/arch/arm/include/asm/kvm_mmio.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/kernel/arch/arm/include/asm/kvm_mmio.h b/kernel/arch/arm/include/asm/kvm_mmio.h
new file mode 100644
index 000000000..d8e90c8cb
--- /dev/null
+++ b/kernel/arch/arm/include/asm/kvm_mmio.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2012 - Virtual Open Systems and Columbia University
+ * Author: Christoffer Dall <c.dall@virtualopensystems.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License, version 2, as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __ARM_KVM_MMIO_H__
+#define __ARM_KVM_MMIO_H__
+
+#include <linux/kvm_host.h>
+#include <asm/kvm_asm.h>
+#include <asm/kvm_arm.h>
+
+struct kvm_decode {
+ unsigned long rt;
+ bool sign_extend;
+};
+
+int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run);
+int io_mem_abort(struct kvm_vcpu *vcpu, struct kvm_run *run,
+ phys_addr_t fault_ipa);
+
+#endif /* __ARM_KVM_MMIO_H__ */