KVM: PPC: Convert SPRG[0-4] to shared page
[pandora-kernel.git] / arch / powerpc / include / asm / kvm_para.h
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License, version 2, as
4  * published by the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program; if not, write to the Free Software
13  * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
14  *
15  * Copyright IBM Corp. 2008
16  *
17  * Authors: Hollis Blanchard <hollisb@us.ibm.com>
18  */
19
20 #ifndef __POWERPC_KVM_PARA_H__
21 #define __POWERPC_KVM_PARA_H__
22
23 #include <linux/types.h>
24
25 struct kvm_vcpu_arch_shared {
26         __u64 sprg0;
27         __u64 sprg1;
28         __u64 sprg2;
29         __u64 sprg3;
30         __u64 srr0;
31         __u64 srr1;
32         __u64 dar;
33         __u64 msr;
34         __u32 dsisr;
35 };
36
37 #ifdef __KERNEL__
38
39 static inline int kvm_para_available(void)
40 {
41         return 0;
42 }
43
44 static inline unsigned int kvm_arch_para_features(void)
45 {
46         return 0;
47 }
48
49 #endif /* __KERNEL__ */
50
51 #endif /* __POWERPC_KVM_PARA_H__ */