projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c9afa5
)
KVM: MMU: drop superfluous min() call.
author
Gleb Natapov
<gleb@redhat.com>
Wed, 30 Jan 2013 14:45:03 +0000
(16:45 +0200)
committer
Marcelo Tosatti
<mtosatti@redhat.com>
Tue, 5 Feb 2013 01:24:28 +0000
(23:24 -0200)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@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 8028ac65db18399d2c724e5840cce3eee590b6bb..42ba85c62fcb74884dec4866b5ce24830e1321ae 100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-3854,7
+3854,7
@@
static u64 mmu_pte_write_fetch_gpte(struct kvm_vcpu *vcpu, gpa_t *gpa,
/* Handle a 32-bit guest writing two halves of a 64-bit gpte */
*gpa &= ~(gpa_t)7;
*bytes = 8;
- r = kvm_read_guest(vcpu->kvm, *gpa, &gentry,
min(*bytes, 8)
);
+ r = kvm_read_guest(vcpu->kvm, *gpa, &gentry,
8
);
if (r)
gentry = 0;
new = (const u8 *)&gentry;