xref: /OK3568_Linux_fs/kernel/arch/mips/kvm/commpage.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
3*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
4*4882a593Smuzhiyun  * for more details.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * KVM/MIPS: commpage: mapped into get kernel space
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Copyright (C) 2012  MIPS Technologies, Inc.  All rights reserved.
9*4882a593Smuzhiyun  * Authors: Sanjay Lal <sanjayl@kymasys.com>
10*4882a593Smuzhiyun  */
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #ifndef __KVM_MIPS_COMMPAGE_H__
13*4882a593Smuzhiyun #define __KVM_MIPS_COMMPAGE_H__
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun struct kvm_mips_commpage {
16*4882a593Smuzhiyun 	/* COP0 state is mapped into Guest kernel via commpage */
17*4882a593Smuzhiyun 	struct mips_coproc cop0;
18*4882a593Smuzhiyun };
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #define KVM_MIPS_COMM_EIDI_OFFSET       0x0
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun extern void kvm_mips_commpage_init(struct kvm_vcpu *vcpu);
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #endif /* __KVM_MIPS_COMMPAGE_H__ */
25