-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Sanjay Lal
authored and
Ralf Baechle
committed
May 8, 2013
1 parent
2235a54
commit 740765c
Showing
2 changed files
with
722 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* 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 <sanjayl@kymasys.com> | ||
*/ | ||
|
||
#ifndef __LINUX_KVM_MIPS_H | ||
#define __LINUX_KVM_MIPS_H | ||
|
||
#include <linux/types.h> | ||
|
||
#define __KVM_MIPS | ||
|
||
#define N_MIPS_COPROC_REGS 32 | ||
#define N_MIPS_COPROC_SEL 8 | ||
|
||
/* for KVM_GET_REGS and KVM_SET_REGS */ | ||
struct kvm_regs { | ||
__u32 gprs[32]; | ||
__u32 hi; | ||
__u32 lo; | ||
__u32 pc; | ||
|
||
__u32 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 { | ||
}; | ||
|
||
struct kvm_mips_interrupt { | ||
/* in */ | ||
__u32 cpu; | ||
__u32 irq; | ||
}; | ||
|
||
/* definition of registers in kvm_run */ | ||
struct kvm_sync_regs { | ||
}; | ||
|
||
#endif /* __LINUX_KVM_MIPS_H */ |
Oops, something went wrong.