summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2011-08-08 16:08:55 +0200
committerAvi Kivity <avi@redhat.com>2011-09-25 19:52:19 +0300
commit9432ba6015371f186926cd62e2395718217a17a1 (patch)
tree884240483921ed3514e0bff212cbad2c394636f8 /arch
parentdb507c300ed6ce6e9fc71d4e19975d5abe01a7de (diff)
downloadlinux-stable-9432ba6015371f186926cd62e2395718217a17a1.tar.gz
linux-stable-9432ba6015371f186926cd62e2395718217a17a1.tar.bz2
linux-stable-9432ba6015371f186926cd62e2395718217a17a1.zip
KVM: PPC: Add papr_enabled flag
When running a PAPR guest, some things change. The privilege level drops from hypervisor to supervisor, SDR1 gets treated differently and we interpret hypercalls. For bisectability sake, add the flag now, but only enable it when all the support code is there. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h
index cc22b282d755..e6813021126d 100644
--- a/arch/powerpc/include/asm/kvm_host.h
+++ b/arch/powerpc/include/asm/kvm_host.h
@@ -389,6 +389,7 @@ struct kvm_vcpu_arch {
u8 dcr_is_write;
u8 osi_needed;
u8 osi_enabled;
+ u8 papr_enabled;
u8 hcall_needed;
u32 cpr0_cfgaddr; /* holds the last set cpr0_cfgaddr */