projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[TG3]: Fix TSO bugs.
[powerpc.git]
/
drivers
/
kvm
/
mmu.c
diff --git
a/drivers/kvm/mmu.c
b/drivers/kvm/mmu.c
index
e85b4c7
..
cab26f3
100644
(file)
--- a/
drivers/kvm/mmu.c
+++ b/
drivers/kvm/mmu.c
@@
-1171,6
+1171,7
@@
void kvm_mmu_pre_write(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes)
* and zap two pdes instead of one.
*/
if (level == PT32_ROOT_LEVEL) {
* and zap two pdes instead of one.
*/
if (level == PT32_ROOT_LEVEL) {
+ page_offset &= ~7; /* kill rounding error */
page_offset <<= 1;
npte = 2;
}
page_offset <<= 1;
npte = 2;
}