diff options
author | Steve <stefan.bosak@gmail.com> | 2011-06-17 10:25:39 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-06-19 19:23:13 +0300 |
commit | a0a8eaba1661232f094654422bdabe2df4e26863 (patch) | |
tree | d97248eb09876437379b3f03e023b337fae5d3a9 /arch | |
parent | 5233dd51ece1615d54ab96c4cbe9ac3cc595e955 (diff) | |
download | linux-3.10-a0a8eaba1661232f094654422bdabe2df4e26863.tar.gz linux-3.10-a0a8eaba1661232f094654422bdabe2df4e26863.tar.bz2 linux-3.10-a0a8eaba1661232f094654422bdabe2df4e26863.zip |
KVM: MMU: fix opposite condition in mapping_level_dirty_bitmap
The condition is opposite, it always maps huge page for the dirty tracked page
Reported-by: Steve <stefan.bosak@gmail.com>
Signed-off-by: Steve <stefan.bosak@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index bd14bb4c859..aee38623b76 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -565,7 +565,7 @@ gfn_to_memslot_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t gfn, static bool mapping_level_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t large_gfn) { - return gfn_to_memslot_dirty_bitmap(vcpu, large_gfn, true); + return !gfn_to_memslot_dirty_bitmap(vcpu, large_gfn, true); } static int mapping_level(struct kvm_vcpu *vcpu, gfn_t large_gfn) |