2012-11-22 10:34:00 +08:00
|
|
|
/*
|
2013-05-24 00:49:05 +08:00
|
|
|
* 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.
|
|
|
|
* Copyright (C) 2013 Cavium, Inc.
|
|
|
|
* Authors: Sanjay Lal <sanjayl@kymasys.com>
|
|
|
|
*/
|
2012-11-22 10:34:00 +08:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2013-05-24 00:49:06 +08:00
|
|
|
/*
|
|
|
|
* for KVM_GET_REGS and KVM_SET_REGS
|
|
|
|
*
|
|
|
|
* If Config[AT] is zero (32-bit CPU), the register contents are
|
|
|
|
* stored in the lower 32-bits of the struct kvm_regs fields and sign
|
|
|
|
* extended to 64-bits.
|
|
|
|
*/
|
2012-11-22 10:34:00 +08:00
|
|
|
struct kvm_regs {
|
2013-05-24 00:49:07 +08:00
|
|
|
/* out (KVM_GET_REGS) / in (KVM_SET_REGS) */
|
|
|
|
__u64 gpr[32];
|
2013-05-24 00:49:06 +08:00
|
|
|
__u64 hi;
|
|
|
|
__u64 lo;
|
|
|
|
__u64 pc;
|
2012-11-22 10:34:00 +08:00
|
|
|
|
|
|
|
__u32 cp0reg[N_MIPS_COPROC_REGS][N_MIPS_COPROC_SEL];
|
|
|
|
};
|
|
|
|
|
|
|
|
/* for KVM_GET_SREGS and KVM_SET_SREGS */
|
|
|
|
struct kvm_sregs {
|
|
|
|
};
|
|
|
|
|
2013-05-24 00:49:05 +08:00
|
|
|
/*
|
|
|
|
* for KVM_GET_FPU and KVM_SET_FPU
|
|
|
|
*
|
|
|
|
* If Status[FR] is zero (32-bit FPU), the upper 32-bits of the FPRs
|
|
|
|
* are zero filled.
|
|
|
|
*/
|
2012-11-22 10:34:00 +08:00
|
|
|
struct kvm_fpu {
|
2013-05-24 00:49:05 +08:00
|
|
|
__u64 fpr[32];
|
|
|
|
__u32 fir;
|
|
|
|
__u32 fccr;
|
|
|
|
__u32 fexr;
|
|
|
|
__u32 fenr;
|
|
|
|
__u32 fcsr;
|
|
|
|
__u32 pad;
|
2012-11-22 10:34:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
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 */
|