diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2012-09-09 22:52:50 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-17 02:31:49 -0400 |
commit | 5524a27d39b68770f203d8d42eb5a95dde4933bc (patch) | |
tree | a238d67d29bce6fd893cd4c5545b5daf058ba5fd /arch/powerpc/kvm/trace.h | |
parent | dcda287a9b26309ae43a091d0ecde16f8f61b4c0 (diff) |
powerpc/mm: Convert virtual address to vpn
This patch convert different functions to take virtual page number
instead of virtual address. Virtual page number is virtual address
shifted right by VPN_SHIFT (12) bits. This enable us to have an
address range of upto 76 bits.
Reviewed-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kvm/trace.h')
-rw-r--r-- | arch/powerpc/kvm/trace.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/kvm/trace.h b/arch/powerpc/kvm/trace.h index 877186b7b1c3..ddb6a2149d44 100644 --- a/arch/powerpc/kvm/trace.h +++ b/arch/powerpc/kvm/trace.h | |||
@@ -189,7 +189,7 @@ TRACE_EVENT(kvm_book3s_mmu_map, | |||
189 | TP_ARGS(pte), | 189 | TP_ARGS(pte), |
190 | 190 | ||
191 | TP_STRUCT__entry( | 191 | TP_STRUCT__entry( |
192 | __field( u64, host_va ) | 192 | __field( u64, host_vpn ) |
193 | __field( u64, pfn ) | 193 | __field( u64, pfn ) |
194 | __field( ulong, eaddr ) | 194 | __field( ulong, eaddr ) |
195 | __field( u64, vpage ) | 195 | __field( u64, vpage ) |
@@ -198,7 +198,7 @@ TRACE_EVENT(kvm_book3s_mmu_map, | |||
198 | ), | 198 | ), |
199 | 199 | ||
200 | TP_fast_assign( | 200 | TP_fast_assign( |
201 | __entry->host_va = pte->host_va; | 201 | __entry->host_vpn = pte->host_vpn; |
202 | __entry->pfn = pte->pfn; | 202 | __entry->pfn = pte->pfn; |
203 | __entry->eaddr = pte->pte.eaddr; | 203 | __entry->eaddr = pte->pte.eaddr; |
204 | __entry->vpage = pte->pte.vpage; | 204 | __entry->vpage = pte->pte.vpage; |
@@ -208,8 +208,8 @@ TRACE_EVENT(kvm_book3s_mmu_map, | |||
208 | (pte->pte.may_execute ? 0x1 : 0); | 208 | (pte->pte.may_execute ? 0x1 : 0); |
209 | ), | 209 | ), |
210 | 210 | ||
211 | TP_printk("Map: hva=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]", | 211 | TP_printk("Map: hvpn=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]", |
212 | __entry->host_va, __entry->pfn, __entry->eaddr, | 212 | __entry->host_vpn, __entry->pfn, __entry->eaddr, |
213 | __entry->vpage, __entry->raddr, __entry->flags) | 213 | __entry->vpage, __entry->raddr, __entry->flags) |
214 | ); | 214 | ); |
215 | 215 | ||
@@ -218,7 +218,7 @@ TRACE_EVENT(kvm_book3s_mmu_invalidate, | |||
218 | TP_ARGS(pte), | 218 | TP_ARGS(pte), |
219 | 219 | ||
220 | TP_STRUCT__entry( | 220 | TP_STRUCT__entry( |
221 | __field( u64, host_va ) | 221 | __field( u64, host_vpn ) |
222 | __field( u64, pfn ) | 222 | __field( u64, pfn ) |
223 | __field( ulong, eaddr ) | 223 | __field( ulong, eaddr ) |
224 | __field( u64, vpage ) | 224 | __field( u64, vpage ) |
@@ -227,7 +227,7 @@ TRACE_EVENT(kvm_book3s_mmu_invalidate, | |||
227 | ), | 227 | ), |
228 | 228 | ||
229 | TP_fast_assign( | 229 | TP_fast_assign( |
230 | __entry->host_va = pte->host_va; | 230 | __entry->host_vpn = pte->host_vpn; |
231 | __entry->pfn = pte->pfn; | 231 | __entry->pfn = pte->pfn; |
232 | __entry->eaddr = pte->pte.eaddr; | 232 | __entry->eaddr = pte->pte.eaddr; |
233 | __entry->vpage = pte->pte.vpage; | 233 | __entry->vpage = pte->pte.vpage; |
@@ -238,7 +238,7 @@ TRACE_EVENT(kvm_book3s_mmu_invalidate, | |||
238 | ), | 238 | ), |
239 | 239 | ||
240 | TP_printk("Flush: hva=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]", | 240 | TP_printk("Flush: hva=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]", |
241 | __entry->host_va, __entry->pfn, __entry->eaddr, | 241 | __entry->host_vpn, __entry->pfn, __entry->eaddr, |
242 | __entry->vpage, __entry->raddr, __entry->flags) | 242 | __entry->vpage, __entry->raddr, __entry->flags) |
243 | ); | 243 | ); |
244 | 244 | ||