diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-06 08:50:58 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 05:05:40 -0400 |
commit | 47ad8e689b4f94f9fc3b2588a7aaa65e4eca667c (patch) | |
tree | ee050d3f0a86f937f10bbc2f6e1893201de323af /drivers/kvm/paging_tmpl.h | |
parent | 4b02d6daa12465b209ec4f50c363f9553a51f45b (diff) |
KVM: MMU: Store shadow page tables as kernel virtual addresses, not physical
Simpifies things a bit.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index 10ba0a80ce59..6dd0da9a5d15 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h | |||
@@ -304,7 +304,7 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, | |||
304 | shadow_page = kvm_mmu_get_page(vcpu, table_gfn, addr, level-1, | 304 | shadow_page = kvm_mmu_get_page(vcpu, table_gfn, addr, level-1, |
305 | metaphysical, hugepage_access, | 305 | metaphysical, hugepage_access, |
306 | shadow_ent); | 306 | shadow_ent); |
307 | shadow_addr = shadow_page->page_hpa; | 307 | shadow_addr = __pa(shadow_page->spt); |
308 | shadow_pte = shadow_addr | PT_PRESENT_MASK | PT_ACCESSED_MASK | 308 | shadow_pte = shadow_addr | PT_PRESENT_MASK | PT_ACCESSED_MASK |
309 | | PT_WRITABLE_MASK | PT_USER_MASK; | 309 | | PT_WRITABLE_MASK | PT_USER_MASK; |
310 | *shadow_ent = shadow_pte; | 310 | *shadow_ent = shadow_pte; |