Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 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 | |
Alexander Graf | 96bc451 | 2010-07-29 14:47:42 +0200 | [diff] [blame] | 23 | #include <linux/types.h> |
| 24 | |
| 25 | struct kvm_vcpu_arch_shared { |
Alexander Graf | 666e725 | 2010-07-29 14:47:43 +0200 | [diff] [blame] | 26 | __u64 msr; |
Alexander Graf | d562de4 | 2010-07-29 14:47:44 +0200 | [diff] [blame^] | 27 | __u32 dsisr; |
Alexander Graf | 96bc451 | 2010-07-29 14:47:42 +0200 | [diff] [blame] | 28 | }; |
| 29 | |
Hollis Blanchard | bbf45ba | 2008-04-16 23:28:09 -0500 | [diff] [blame] | 30 | #ifdef __KERNEL__ |
| 31 | |
| 32 | static inline int kvm_para_available(void) |
| 33 | { |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | static inline unsigned int kvm_arch_para_features(void) |
| 38 | { |
| 39 | return 0; |
| 40 | } |
| 41 | |
| 42 | #endif /* __KERNEL__ */ |
| 43 | |
| 44 | #endif /* __POWERPC_KVM_PARA_H__ */ |