Home
last modified time | relevance | path

Searched refs:memslot (Results 1 – 2 of 2) sorted by relevance

/virt/kvm/
Dkvm_main.c936 static void kvm_destroy_dirty_bitmap(struct kvm_memory_slot *memslot) in kvm_destroy_dirty_bitmap() argument
938 if (!memslot->dirty_bitmap) in kvm_destroy_dirty_bitmap()
941 kvfree(memslot->dirty_bitmap); in kvm_destroy_dirty_bitmap()
942 memslot->dirty_bitmap = NULL; in kvm_destroy_dirty_bitmap()
957 struct kvm_memory_slot *memslot; in kvm_free_memslots() local
962 kvm_for_each_memslot(memslot, slots) in kvm_free_memslots()
963 kvm_free_memslot(kvm, memslot); in kvm_free_memslots()
1336 static int kvm_alloc_dirty_bitmap(struct kvm_memory_slot *memslot) in kvm_alloc_dirty_bitmap() argument
1338 unsigned long dirty_bytes = kvm_dirty_bitmap_bytes(memslot); in kvm_alloc_dirty_bitmap()
1340 memslot->dirty_bitmap = __vcalloc(2, dirty_bytes, GFP_KERNEL_ACCOUNT); in kvm_alloc_dirty_bitmap()
[all …]
Ddirty_ring.c50 struct kvm_memory_slot *memslot; in kvm_reset_dirty_gfn() local
59 memslot = id_to_memslot(__kvm_memslots(kvm, as_id), id); in kvm_reset_dirty_gfn()
61 if (!memslot || (offset + __fls(mask)) >= memslot->npages) in kvm_reset_dirty_gfn()
65 kvm_arch_mmu_enable_log_dirty_pt_masked(kvm, memslot, offset, mask); in kvm_reset_dirty_gfn()