diff options
author | Avi Kivity <avi@qumranet.com> | 2007-11-21 07:20:22 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:11 -0500 |
commit | 38c335f1f57bd9edc3cd894e8f5f3fc133320ad3 (patch) | |
tree | 583a41cb7c639dcf6286deddd2ff55ef50bfd09e /drivers/kvm/paging_tmpl.h | |
parent | 230c9a8f2354dc51f55bf81147f408d8fc2f3dd1 (diff) |
KVM: MMU: Adjust page_header_update_slot() to accept a gfn instead of a gpa
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index 54a6ee802dc2..a3da98bfd6a6 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h | |||
@@ -259,8 +259,7 @@ unshadowed: | |||
259 | 259 | ||
260 | pgprintk("%s: setting spte %llx\n", __FUNCTION__, spte); | 260 | pgprintk("%s: setting spte %llx\n", __FUNCTION__, spte); |
261 | set_shadow_pte(shadow_pte, spte); | 261 | set_shadow_pte(shadow_pte, spte); |
262 | page_header_update_slot(vcpu->kvm, shadow_pte, | 262 | page_header_update_slot(vcpu->kvm, shadow_pte, gfn); |
263 | (gpa_t)gfn << PAGE_SHIFT); | ||
264 | if (!was_rmapped) { | 263 | if (!was_rmapped) { |
265 | rmap_add(vcpu, shadow_pte, gfn); | 264 | rmap_add(vcpu, shadow_pte, gfn); |
266 | if (!is_rmap_pte(*shadow_pte)) | 265 | if (!is_rmap_pte(*shadow_pte)) |