]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: PPC: Add papr_enabled flag
authorAlexander Graf <agraf@suse.de>
Mon, 8 Aug 2011 14:08:55 +0000 (16:08 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:19 +0000 (19:52 +0300)
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>
arch/powerpc/include/asm/kvm_host.h

index cc22b282d75554a5c2dfc62be49b4408adb3711b..e6813021126d270edc67e37904c51937b2cb9e49 100644 (file)
@@ -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 */