]>
Commit | Line | Data |
---|---|---|
51b24e34 JK |
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 <[email protected]> | |
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 scratch1; | |
27 | __u64 scratch2; | |
28 | __u64 scratch3; | |
29 | __u64 critical; /* Guest may not get interrupts if == r1 */ | |
30 | __u64 sprg0; | |
31 | __u64 sprg1; | |
32 | __u64 sprg2; | |
33 | __u64 sprg3; | |
34 | __u64 srr0; | |
35 | __u64 srr1; | |
36 | __u64 dar; | |
37 | __u64 msr; | |
38 | __u32 dsisr; | |
39 | __u32 int_pending; /* Tells the guest if we have an interrupt */ | |
40 | __u32 sr[16]; | |
41 | }; | |
42 | ||
43 | #define KVM_SC_MAGIC_R0 0x4b564d21 /* "KVM!" */ | |
44 | #define HC_VENDOR_KVM (42 << 16) | |
45 | #define HC_EV_SUCCESS 0 | |
46 | #define HC_EV_UNIMPLEMENTED 12 | |
47 | ||
48 | #define KVM_FEATURE_MAGIC_PAGE 1 | |
49 | ||
50 | #define KVM_MAGIC_FEAT_SR (1 << 0) | |
51 | ||
52 | ||
53 | #endif /* __POWERPC_KVM_PARA_H__ */ |