aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-04-15 18:11:44 -0400
committerAvi Kivity <avi@redhat.com>2010-05-17 05:18:32 -0400
commit0604675fe17f68741730cebe74422605bb79d972 (patch)
tree9eea58b6952f3d49be3bda9e957af104c191fe47 /arch/powerpc/include
parent56db45a5cd06e3a6a7823a8cd7541e6bafe8427b (diff)
KVM: PPC: Use now shadowed vcpu fields
The shadow vcpu now contains some fields we don't use from the vcpu anymore. Access to them happens using inline functions that happily use the shadow vcpu fields. So let's now ifdef them out to booke only and add asm-offsets. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kvm_host.h8
-rw-r--r--arch/powerpc/include/asm/paca.h6
2 files changed, 3 insertions, 11 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h
index 22801f802312..5a83995105f8 100644
--- a/arch/powerpc/include/asm/kvm_host.h
+++ b/arch/powerpc/include/asm/kvm_host.h
@@ -191,11 +191,11 @@ struct kvm_vcpu_arch {
191 u32 qpr[32]; 191 u32 qpr[32];
192#endif 192#endif
193 193
194#ifdef CONFIG_BOOKE
194 ulong pc; 195 ulong pc;
195 ulong ctr; 196 ulong ctr;
196 ulong lr; 197 ulong lr;
197 198
198#ifdef CONFIG_BOOKE
199 ulong xer; 199 ulong xer;
200 u32 cr; 200 u32 cr;
201#endif 201#endif
@@ -203,7 +203,6 @@ struct kvm_vcpu_arch {
203 ulong msr; 203 ulong msr;
204#ifdef CONFIG_PPC_BOOK3S 204#ifdef CONFIG_PPC_BOOK3S
205 ulong shadow_msr; 205 ulong shadow_msr;
206 ulong shadow_srr1;
207 ulong hflags; 206 ulong hflags;
208 ulong guest_owned_ext; 207 ulong guest_owned_ext;
209#endif 208#endif
@@ -258,14 +257,13 @@ struct kvm_vcpu_arch {
258 struct dentry *debugfs_exit_timing; 257 struct dentry *debugfs_exit_timing;
259#endif 258#endif
260 259
260#ifdef CONFIG_BOOKE
261 u32 last_inst; 261 u32 last_inst;
262#ifdef CONFIG_PPC64
263 u32 fault_dsisr;
264#endif
265 ulong fault_dear; 262 ulong fault_dear;
266 ulong fault_esr; 263 ulong fault_esr;
267 ulong queued_dear; 264 ulong queued_dear;
268 ulong queued_esr; 265 ulong queued_esr;
266#endif
269 gpa_t paddr_accessed; 267 gpa_t paddr_accessed;
270 268
271 u8 io_gpr; /* GPR used as IO source/target */ 269 u8 io_gpr; /* GPR used as IO source/target */
diff --git a/arch/powerpc/include/asm/paca.h b/arch/powerpc/include/asm/paca.h
index 33347ea4b47a..224eb371ca1d 100644
--- a/arch/powerpc/include/asm/paca.h
+++ b/arch/powerpc/include/asm/paca.h
@@ -137,14 +137,8 @@ struct paca_struct {
137 u64 startspurr; /* SPURR value snapshot */ 137 u64 startspurr; /* SPURR value snapshot */
138 138
139#ifdef CONFIG_KVM_BOOK3S_HANDLER 139#ifdef CONFIG_KVM_BOOK3S_HANDLER
140 struct {
141 u64 esid;
142 u64 vsid;
143 } kvm_slb[64]; /* guest SLB */
144 /* We use this to store guest state in */ 140 /* We use this to store guest state in */
145 struct kvmppc_book3s_shadow_vcpu shadow_vcpu; 141 struct kvmppc_book3s_shadow_vcpu shadow_vcpu;
146 u8 kvm_slb_max; /* highest used guest slb entry */
147 u8 kvm_in_guest; /* are we inside the guest? */
148#endif 142#endif
149}; 143};
150 144