diff options
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 7495ce347344..cdca63917e77 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <asm/io.h> | 48 | #include <asm/io.h> |
49 | #include <asm/uaccess.h> | 49 | #include <asm/uaccess.h> |
50 | #include <asm/pgtable.h> | 50 | #include <asm/pgtable.h> |
51 | #include <asm-generic/bitops/le.h> | ||
51 | 52 | ||
52 | #ifdef KVM_COALESCED_MMIO_PAGE_OFFSET | 53 | #ifdef KVM_COALESCED_MMIO_PAGE_OFFSET |
53 | #include "coalesced_mmio.h" | 54 | #include "coalesced_mmio.h" |
@@ -1665,8 +1666,8 @@ void mark_page_dirty(struct kvm *kvm, gfn_t gfn) | |||
1665 | unsigned long rel_gfn = gfn - memslot->base_gfn; | 1666 | unsigned long rel_gfn = gfn - memslot->base_gfn; |
1666 | 1667 | ||
1667 | /* avoid RMW */ | 1668 | /* avoid RMW */ |
1668 | if (!test_bit(rel_gfn, memslot->dirty_bitmap)) | 1669 | if (!generic_test_le_bit(rel_gfn, memslot->dirty_bitmap)) |
1669 | set_bit(rel_gfn, memslot->dirty_bitmap); | 1670 | generic___set_le_bit(rel_gfn, memslot->dirty_bitmap); |
1670 | } | 1671 | } |
1671 | } | 1672 | } |
1672 | 1673 | ||