Skip to content

Commit

Permalink
KVM: PPC: Use ULL for big numbers
Browse files Browse the repository at this point in the history
Some constants were bigger than ints. Let's mark them as such so we don't
accidently truncate them.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Alexander Graf authored and Avi Kivity committed May 17, 2010
1 parent a1eda28 commit 5a1b419
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/powerpc/include/asm/kvm_book3s.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ struct kvmppc_vcpu_book3s {
#define CONTEXT_GUEST 1
#define CONTEXT_GUEST_END 2

#define VSID_REAL_DR 0x7ffffffffff00000
#define VSID_REAL_IR 0x7fffffffffe00000
#define VSID_SPLIT_MASK 0x7fffffffffe00000
#define VSID_REAL 0x7fffffffffc00000
#define VSID_BAT 0x7fffffffffb00000
#define VSID_PR 0x8000000000000000
#define VSID_REAL_DR 0x7ffffffffff00000ULL
#define VSID_REAL_IR 0x7fffffffffe00000ULL
#define VSID_SPLIT_MASK 0x7fffffffffe00000ULL
#define VSID_REAL 0x7fffffffffc00000ULL
#define VSID_BAT 0x7fffffffffb00000ULL
#define VSID_PR 0x8000000000000000ULL

extern void kvmppc_mmu_pte_flush(struct kvm_vcpu *vcpu, u64 ea, u64 ea_mask);
extern void kvmppc_mmu_pte_vflush(struct kvm_vcpu *vcpu, u64 vp, u64 vp_mask);
Expand Down

0 comments on commit 5a1b419

Please sign in to comment.