Skip to content

Commit

Permalink
KVM: PPC: Add papr_enabled flag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Graf authored and Avi Kivity committed Sep 25, 2011
1 parent db507c3 commit 9432ba6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9432ba6

Please sign in to comment.