aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-10-03 12:51:39 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:53:14 -0400
commit7ebaf15eefe7b019def72bd9d4420c7bc51ed69e (patch)
tree5bfcbe37f21f84b54b4c0a8202f0b487d6ce5b47 /arch
parent3377078027dc54dc2a5acb2efa09587e7ac1cbd9 (diff)
KVM: MMU: Avoid sign extension in mmu_alloc_direct_roots() pae root address
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index ba7e7646fb78..dc1b4fb299b7 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2374,7 +2374,7 @@ static int mmu_check_root(struct kvm_vcpu *vcpu, gfn_t root_gfn)
2374static int mmu_alloc_direct_roots(struct kvm_vcpu *vcpu) 2374static int mmu_alloc_direct_roots(struct kvm_vcpu *vcpu)
2375{ 2375{
2376 struct kvm_mmu_page *sp; 2376 struct kvm_mmu_page *sp;
2377 int i; 2377 unsigned i;
2378 2378
2379 if (vcpu->arch.mmu.shadow_root_level == PT64_ROOT_LEVEL) { 2379 if (vcpu->arch.mmu.shadow_root_level == PT64_ROOT_LEVEL) {
2380 spin_lock(&vcpu->kvm->mmu_lock); 2380 spin_lock(&vcpu->kvm->mmu_lock);