summaryrefslogtreecommitdiff
path: root/drivers/kvm/paging_tmpl.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <marcelo@kvack.org>2007-12-04 21:42:16 +0300
committerAvi Kivity <avi@qumranet.com>2008-01-30 18:53:18 +0300
commit4bf8ed8dd2781a5e7603a83f8ee1d4f5aa04ebc4 (patch)
treef3bb9e9268c8349e322d1d8943c50ebf7b6782f9 /drivers/kvm/paging_tmpl.h
parente4a533a416936753882060bf743222576713fde8 (diff)
downloadlinux-4bf8ed8dd2781a5e7603a83f8ee1d4f5aa04ebc4.tar.xz
KVM: MMU: Remove unused prev_shadow_ent variable from fetch()
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r--drivers/kvm/paging_tmpl.h3
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,
hpa_t shadow_addr;
int level;
u64 *shadow_ent;
- u64 *prev_shadow_ent = NULL;
if (!is_present_pte(walker->pte))
return NULL;
@@ -326,7 +325,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
if (level == PT_PAGE_TABLE_LEVEL)
break;
shadow_addr = *shadow_ent & PT64_BASE_ADDR_MASK;
- prev_shadow_ent = shadow_ent;
continue;
}
@@ -355,7 +353,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
shadow_pte = shadow_addr | PT_PRESENT_MASK | PT_ACCESSED_MASK
| PT_WRITABLE_MASK | PT_USER_MASK;
*shadow_ent = shadow_pte;
- prev_shadow_ent = shadow_ent;
}
FNAME(set_pte)(vcpu, walker->pte, shadow_ent,