aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-11-05 10:36:18 -0500
committerAvi Kivity <avi@redhat.com>2008-12-31 09:52:22 -0500
commitdb93f5745d836f81cef0b4101a7c2685eeb55efb (patch)
tree970b0dfc93dbbe25eb988b008bbbeffd866f3f23 /arch/powerpc/include/asm/kvm_host.h
parent5cbb5106f50b4515815cd32cf944958c0d4da83f (diff)
KVM: ppc: create struct kvm_vcpu_44x and introduce container_of() accessor
This patch doesn't yet move all 44x-specific data into the new structure, but is the first step down that path. In the future we may also want to create a struct kvm_vcpu_booke. Based on patch from Liu Yu <yu.liu@freescale.com>. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_host.h')
-rw-r--r--arch/powerpc/include/asm/kvm_host.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h
index f5850d7d57a5..765d8ec8b7d6 100644
--- a/arch/powerpc/include/asm/kvm_host.h
+++ b/arch/powerpc/include/asm/kvm_host.h
@@ -74,20 +74,7 @@ struct kvmppc_44x_tlbe {
74struct kvm_arch { 74struct kvm_arch {
75}; 75};
76 76
77/* XXX Can't include mmu-44x.h because it redefines struct mm_context. */
78#define PPC44x_TLB_SIZE 64
79
80struct kvm_vcpu_arch { 77struct kvm_vcpu_arch {
81 /* Unmodified copy of the guest's TLB. */
82 struct kvmppc_44x_tlbe guest_tlb[PPC44x_TLB_SIZE];
83 /* TLB that's actually used when the guest is running. */
84 struct kvmppc_44x_tlbe shadow_tlb[PPC44x_TLB_SIZE];
85 /* Pages which are referenced in the shadow TLB. */
86 struct page *shadow_pages[PPC44x_TLB_SIZE];
87
88 /* Track which TLB entries we've modified in the current exit. */
89 u8 shadow_tlb_mod[PPC44x_TLB_SIZE];
90
91 u32 host_stack; 78 u32 host_stack;
92 u32 host_pid; 79 u32 host_pid;
93 u32 host_dbcr0; 80 u32 host_dbcr0;