aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-07-29 08:47:57 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:50:50 -0400
commitd17051cb8d223dffd6bb847b0565ef1654f8e0e1 (patch)
tree486a1b71ec2147de47a6a4c34c9b9ab88be039e7 /arch/powerpc/kernel/asm-offsets.c
parentba492962363a02c45836be205f339be48093e1be (diff)
KVM: PPC: Generic KVM PV guest support
We have all the hypervisor pieces in place now, but the guest parts are still missing. This patch implements basic awareness of KVM when running Linux as guest. It doesn't do anything with it yet though. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r--arch/powerpc/kernel/asm-offsets.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c
index 1221bcdff52f..37486cafb69d 100644
--- a/arch/powerpc/kernel/asm-offsets.c
+++ b/arch/powerpc/kernel/asm-offsets.c
@@ -465,6 +465,21 @@ int main(void)
465 DEFINE(VCPU_FAULT_ESR, offsetof(struct kvm_vcpu, arch.fault_esr)); 465 DEFINE(VCPU_FAULT_ESR, offsetof(struct kvm_vcpu, arch.fault_esr));
466#endif /* CONFIG_PPC_BOOK3S */ 466#endif /* CONFIG_PPC_BOOK3S */
467#endif 467#endif
468
469#ifdef CONFIG_KVM_GUEST
470 DEFINE(KVM_MAGIC_SCRATCH1, offsetof(struct kvm_vcpu_arch_shared,
471 scratch1));
472 DEFINE(KVM_MAGIC_SCRATCH2, offsetof(struct kvm_vcpu_arch_shared,
473 scratch2));
474 DEFINE(KVM_MAGIC_SCRATCH3, offsetof(struct kvm_vcpu_arch_shared,
475 scratch3));
476 DEFINE(KVM_MAGIC_INT, offsetof(struct kvm_vcpu_arch_shared,
477 int_pending));
478 DEFINE(KVM_MAGIC_MSR, offsetof(struct kvm_vcpu_arch_shared, msr));
479 DEFINE(KVM_MAGIC_CRITICAL, offsetof(struct kvm_vcpu_arch_shared,
480 critical));
481#endif
482
468#ifdef CONFIG_44x 483#ifdef CONFIG_44x
469 DEFINE(PGD_T_LOG2, PGD_T_LOG2); 484 DEFINE(PGD_T_LOG2, PGD_T_LOG2);
470 DEFINE(PTE_T_LOG2, PTE_T_LOG2); 485 DEFINE(PTE_T_LOG2, PTE_T_LOG2);