Re: [Qemu-devel] [PATCH 07/12] KVM/MIPS: QEMU <-> Kernel interface for KVM/MIPS

2013-03-02 Thread Peter Maydell
On 2 March 2013 15:18, Sanjay Lal  wrote:
> ---
>  linux-headers/asm-mips/kvm.h  | 94 
> +++
>  linux-headers/asm-mips/kvm_para.h | 10 +

Please don't supply QEMU patches that update the linux-header files
without specifying which kernel tree and git revision the headers
have come from. In particular, if the headers have not yet hit
upstream kvm-next or mainline then the whole patchset must be marked
as RFC since it can't be committed until the ABI has stabilised.

thanks
-- PMM
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Qemu-devel][PATCH 07/12] KVM/MIPS: QEMU <-> Kernel interface for KVM/MIPS

2013-03-02 Thread Sanjay Lal
---
 linux-headers/asm-mips/kvm.h  | 94 +++
 linux-headers/asm-mips/kvm_para.h | 10 +
 2 files changed, 104 insertions(+)
 create mode 100644 linux-headers/asm-mips/kvm.h
 create mode 100644 linux-headers/asm-mips/kvm_para.h

diff --git a/linux-headers/asm-mips/kvm.h b/linux-headers/asm-mips/kvm.h
new file mode 100644
index 000..6d37e5c
--- /dev/null
+++ b/linux-headers/asm-mips/kvm.h
@@ -0,0 +1,94 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2012  MIPS Technologies, Inc.  All rights reserved.
+ * Authors: Sanjay Lal 
+ */
+
+#ifndef __LINUX_KVM_MIPS_H
+#define __LINUX_KVM_MIPS_H
+
+#include 
+
+#define __KVM_MIPS
+
+#define N_MIPS_COPROC_REGS  32
+#define N_MIPS_COPROC_SEL  8
+
+/*
+ * Coprocessor 0 register names
+ */
+#defineMIPS_CP0_TLB_INDEX  0
+#defineMIPS_CP0_TLB_RANDOM 1
+#defineMIPS_CP0_TLB_LOW2
+#defineMIPS_CP0_TLB_LO02
+#defineMIPS_CP0_TLB_LO13
+#defineMIPS_CP0_TLB_CONTEXT4
+#defineMIPS_CP0_TLB_PG_MASK5
+#defineMIPS_CP0_TLB_WIRED  6
+#defineMIPS_CP0_HWRENA 7
+#defineMIPS_CP0_BAD_VADDR  8
+#defineMIPS_CP0_COUNT  9
+#defineMIPS_CP0_TLB_HI 10
+#defineMIPS_CP0_COMPARE11
+#defineMIPS_CP0_STATUS 12
+#defineMIPS_CP0_CAUSE  13
+#defineMIPS_CP0_EXC_PC 14
+#defineMIPS_CP0_PRID   15
+#defineMIPS_CP0_CONFIG 16
+#defineMIPS_CP0_LLADDR 17
+#defineMIPS_CP0_WATCH_LO   18
+#defineMIPS_CP0_WATCH_HI   19
+#defineMIPS_CP0_TLB_XCONTEXT   20
+#defineMIPS_CP0_ECC26
+#defineMIPS_CP0_CACHE_ERR  27
+#defineMIPS_CP0_TAG_LO 28
+#defineMIPS_CP0_TAG_HI 29
+#defineMIPS_CP0_ERROR_PC   30
+#defineMIPS_CP0_DEBUG  23
+#defineMIPS_CP0_DEPC   24
+#defineMIPS_CP0_PERFCNT25
+#defineMIPS_CP0_ERRCTL 26
+#defineMIPS_CP0_DATA_LO28
+#defineMIPS_CP0_DATA_HI29
+#defineMIPS_CP0_DESAVE 31
+
+
+/* for KVM_GET_REGS and KVM_SET_REGS */
+struct kvm_regs {
+__u32 gprs[32];
+__u32 hi;
+__u32 lo;
+__u32 pc;
+
+ulong cp0reg[N_MIPS_COPROC_REGS][N_MIPS_COPROC_SEL];
+};
+
+/* for KVM_GET_SREGS and KVM_SET_SREGS */
+struct kvm_sregs {
+};
+
+/* for KVM_GET_FPU and KVM_SET_FPU */
+struct kvm_fpu {
+};
+
+struct kvm_debug_exit_arch {
+};
+
+/* for KVM_SET_GUEST_DEBUG */
+struct kvm_guest_debug_arch {
+};
+
+/* definition of registers in kvm_run */
+struct kvm_sync_regs {
+};
+
+struct kvm_mips_interrupt {
+   /* in */
+__u32 cpu;
+   __u32 irq;
+};
+
+#endif /* __LINUX_KVM_MIPS_H */
diff --git a/linux-headers/asm-mips/kvm_para.h 
b/linux-headers/asm-mips/kvm_para.h
new file mode 100644
index 000..d1058b4
--- /dev/null
+++ b/linux-headers/asm-mips/kvm_para.h
@@ -0,0 +1,10 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2012  MIPS Technologies, Inc.  All rights reserved.
+ * Authors: Sanjay Lal 
+ */
+
+
-- 
1.7.11.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html