diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-06 12:50:58 (GMT) |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 09:05:40 (GMT) |
commit | 47ad8e689b4f94f9fc3b2588a7aaa65e4eca667c (patch) | |
tree | ee050d3f0a86f937f10bbc2f6e1893201de323af /drivers/kvm/paging_tmpl.h | |
parent | 4b02d6daa12465b209ec4f50c363f9553a51f45b (diff) | |
download | linux-fsl-qoriq-47ad8e689b4f94f9fc3b2588a7aaa65e4eca667c.tar.xz |
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 10ba0a8..6dd0da9 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, shadow_page = kvm_mmu_get_page(vcpu, table_gfn, addr, level-1, metaphysical, hugepage_access, shadow_ent); - shadow_addr = shadow_page->page_hpa; + shadow_addr = __pa(shadow_page->spt); shadow_pte = shadow_addr | PT_PRESENT_MASK | PT_ACCESSED_MASK | PT_WRITABLE_MASK | PT_USER_MASK; *shadow_ent = shadow_pte; |