projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3377078
)
KVM: MMU: Avoid sign extension in mmu_alloc_direct_roots() pae root address
author
Avi Kivity
<avi@redhat.com>
Sun, 3 Oct 2010 16:51:39 +0000
(18:51 +0200)
committer
Avi Kivity
<avi@redhat.com>
Sun, 24 Oct 2010 08:53:14 +0000
(10:53 +0200)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index ba7e7646fb78b1dbf088e7a7d85b332ca1ed358b..dc1b4fb299b7b9e43428565720652648b0c609dc 100644
(file)
--- 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)
static int mmu_alloc_direct_roots(struct kvm_vcpu *vcpu)
{
struct kvm_mmu_page *sp;
-
int
i;
+
unsigned
i;
if (vcpu->arch.mmu.shadow_root_level == PT64_ROOT_LEVEL) {
spin_lock(&vcpu->kvm->mmu_lock);