diff options
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index b24bc7c86078..3c40a598ceb8 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h | |||
@@ -300,7 +300,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, | |||
300 | hpa_t shadow_addr; | 300 | hpa_t shadow_addr; |
301 | int level; | 301 | int level; |
302 | u64 *shadow_ent; | 302 | u64 *shadow_ent; |
303 | u64 *prev_shadow_ent = NULL; | ||
304 | 303 | ||
305 | if (!is_present_pte(walker->pte)) | 304 | if (!is_present_pte(walker->pte)) |
306 | return NULL; | 305 | return NULL; |
@@ -326,7 +325,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, | |||
326 | if (level == PT_PAGE_TABLE_LEVEL) | 325 | if (level == PT_PAGE_TABLE_LEVEL) |
327 | break; | 326 | break; |
328 | shadow_addr = *shadow_ent & PT64_BASE_ADDR_MASK; | 327 | shadow_addr = *shadow_ent & PT64_BASE_ADDR_MASK; |
329 | prev_shadow_ent = shadow_ent; | ||
330 | continue; | 328 | continue; |
331 | } | 329 | } |
332 | 330 | ||
@@ -355,7 +353,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, | |||
355 | shadow_pte = shadow_addr | PT_PRESENT_MASK | PT_ACCESSED_MASK | 353 | shadow_pte = shadow_addr | PT_PRESENT_MASK | PT_ACCESSED_MASK |
356 | | PT_WRITABLE_MASK | PT_USER_MASK; | 354 | | PT_WRITABLE_MASK | PT_USER_MASK; |
357 | *shadow_ent = shadow_pte; | 355 | *shadow_ent = shadow_pte; |
358 | prev_shadow_ent = shadow_ent; | ||
359 | } | 356 | } |
360 | 357 | ||
361 | FNAME(set_pte)(vcpu, walker->pte, shadow_ent, | 358 | FNAME(set_pte)(vcpu, walker->pte, shadow_ent, |