18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * KVM/MIPS: commpage: mapped into get kernel space 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 98c2ecf20Sopenharmony_ci * Authors: Sanjay Lal <sanjayl@kymasys.com> 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef __KVM_MIPS_COMMPAGE_H__ 138c2ecf20Sopenharmony_ci#define __KVM_MIPS_COMMPAGE_H__ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cistruct kvm_mips_commpage { 168c2ecf20Sopenharmony_ci /* COP0 state is mapped into Guest kernel via commpage */ 178c2ecf20Sopenharmony_ci struct mips_coproc cop0; 188c2ecf20Sopenharmony_ci}; 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define KVM_MIPS_COMM_EIDI_OFFSET 0x0 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciextern void kvm_mips_commpage_init(struct kvm_vcpu *vcpu); 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* __KVM_MIPS_COMMPAGE_H__ */ 25