Skip to content

Commit 740765c

Browse files
sanjaylcaralfbaechle
authored andcommitted
KVM/MIPS32: Arch specific KVM data structures.
Signed-off-by: Sanjay Lal <sanjayl@kymasys.com> Cc: kvm@vger.kernel.org Cc: linux-mips@linux-mips.org Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 2235a54 commit 740765c

File tree

2 files changed

+722
-0
lines changed

2 files changed

+722
-0
lines changed

arch/mips/include/asm/kvm.h

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* This file is subject to the terms and conditions of the GNU General Public
3+
* License. See the file "COPYING" in the main directory of this archive
4+
* for more details.
5+
*
6+
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
7+
* Authors: Sanjay Lal <sanjayl@kymasys.com>
8+
*/
9+
10+
#ifndef __LINUX_KVM_MIPS_H
11+
#define __LINUX_KVM_MIPS_H
12+
13+
#include <linux/types.h>
14+
15+
#define __KVM_MIPS
16+
17+
#define N_MIPS_COPROC_REGS 32
18+
#define N_MIPS_COPROC_SEL 8
19+
20+
/* for KVM_GET_REGS and KVM_SET_REGS */
21+
struct kvm_regs {
22+
__u32 gprs[32];
23+
__u32 hi;
24+
__u32 lo;
25+
__u32 pc;
26+
27+
__u32 cp0reg[N_MIPS_COPROC_REGS][N_MIPS_COPROC_SEL];
28+
};
29+
30+
/* for KVM_GET_SREGS and KVM_SET_SREGS */
31+
struct kvm_sregs {
32+
};
33+
34+
/* for KVM_GET_FPU and KVM_SET_FPU */
35+
struct kvm_fpu {
36+
};
37+
38+
struct kvm_debug_exit_arch {
39+
};
40+
41+
/* for KVM_SET_GUEST_DEBUG */
42+
struct kvm_guest_debug_arch {
43+
};
44+
45+
struct kvm_mips_interrupt {
46+
/* in */
47+
__u32 cpu;
48+
__u32 irq;
49+
};
50+
51+
/* definition of registers in kvm_run */
52+
struct kvm_sync_regs {
53+
};
54+
55+
#endif /* __LINUX_KVM_MIPS_H */

0 commit comments

Comments
 (0)