Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334478
b: refs/heads/master
c: ce236ab
h: refs/heads/master
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Benjamin Herrenschmidt committed Oct 17, 2012
1 parent 33d6a3e commit d6283cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72523d8082df3d89bffe30cbc1356dbb45ab51ae
refs/heads/master: ce236ab576a2d76b1d6eb268221e74f05ed48d8b
1 change: 1 addition & 0 deletions trunk/arch/powerpc/include/asm/kvm_book3s_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu)
#define SID_SHIFT 28
#define ESID_MASK 0xf0000000
#define VSID_MASK 0x00fffffff0000000ULL
#define VPN_SHIFT 12

#endif /* __ASM_KVM_BOOK3S_32_H__ */
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kvm/book3s_32_mmu_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte)
BUG_ON(!map);

vsid = map->host_vsid;
vpn = (vsid << (SID_SHIFT - VPN_SHIFT)) | ((eaddr & ~ESID_MASK) >> VPN_SHIFT)

vpn = (vsid << (SID_SHIFT - VPN_SHIFT)) |
((eaddr & ~ESID_MASK) >> VPN_SHIFT);
next_pteg:
if (rr == 16) {
primary = !primary;
Expand Down

0 comments on commit d6283cc

Please sign in to comment.