diff options
author | Alexander Graf <agraf@suse.de> | 2010-07-29 14:47:57 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:50:50 +0200 |
commit | d17051cb8d223dffd6bb847b0565ef1654f8e0e1 (patch) | |
tree | 486a1b71ec2147de47a6a4c34c9b9ab88be039e7 /arch/powerpc/kernel/kvm.c | |
parent | ba492962363a02c45836be205f339be48093e1be (diff) | |
download | kernel_samsung_smdk4412-d17051cb8d223dffd6bb847b0565ef1654f8e0e1.zip kernel_samsung_smdk4412-d17051cb8d223dffd6bb847b0565ef1654f8e0e1.tar.gz kernel_samsung_smdk4412-d17051cb8d223dffd6bb847b0565ef1654f8e0e1.tar.bz2 |
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/kvm.c')
-rw-r--r-- | arch/powerpc/kernel/kvm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/kvm.c b/arch/powerpc/kernel/kvm.c index 4f85505..a5ece71 100644 --- a/arch/powerpc/kernel/kvm.c +++ b/arch/powerpc/kernel/kvm.c @@ -30,6 +30,9 @@ #include <asm/cacheflush.h> #include <asm/disassemble.h> +#define KVM_MAGIC_PAGE (-4096L) +#define magic_var(x) KVM_MAGIC_PAGE + offsetof(struct kvm_vcpu_arch_shared, x) + unsigned long kvm_hypercall(unsigned long *in, unsigned long *out, unsigned long nr) |