KVM: PPC: Fix CONFIG_KVM_GUEST && !CONFIG_KVM case
authorAlexander Graf <agraf@suse.de>
Mon, 30 Aug 2010 10:01:56 +0000 (12:01 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:44 +0000 (10:51 +0200)
When CONFIG_KVM_GUEST is selected, but CONFIG_KVM is not, we were missing
some defines in asm-offsets.c and included too many headers at other places.

This patch makes above configuration work.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/kvm.c

index 37486cafb69d13dcba6d0d4d96ca7635fa0248a5..6d92b4e13ebfc411d907d611ec9e568f22119524 100644 (file)
 #ifdef CONFIG_PPC_ISERIES
 #include <asm/iseries/alpaca.h>
 #endif
-#ifdef CONFIG_KVM
+#if defined(CONFIG_KVM) || defined(CONFIG_KVM_GUEST)
 #include <linux/kvm_host.h>
-#ifndef CONFIG_BOOKE
-#include <asm/kvm_book3s.h>
 #endif
+#if defined(CONFIG_KVM) && defined(CONFIG_PPC_BOOK3S)
+#include <asm/kvm_book3s.h>
 #endif
 
 #ifdef CONFIG_PPC32
index e93681753deb81e1a20b76a061e557a969ecb5bb..d3a2cc50d6117741c276189f7c501266a1e54325 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/of.h>
 
 #include <asm/reg.h>
-#include <asm/kvm_ppc.h>
 #include <asm/sections.h>
 #include <asm/cacheflush.h>
 #include <asm/disassemble.h>