/openbmc/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | page_fault_test.c | 804 .data_memslot_flags = KVM_MEM_LOG_DIRTY_PAGES, \ 805 .pt_memslot_flags = KVM_MEM_LOG_DIRTY_PAGES, \ 817 .data_memslot_flags = KVM_MEM_LOG_DIRTY_PAGES, \ 818 .pt_memslot_flags = KVM_MEM_LOG_DIRTY_PAGES, \ 854 .data_memslot_flags = KVM_MEM_READONLY | KVM_MEM_LOG_DIRTY_PAGES, \ 855 .pt_memslot_flags = KVM_MEM_READONLY | KVM_MEM_LOG_DIRTY_PAGES, \ 866 .data_memslot_flags = KVM_MEM_READONLY | KVM_MEM_LOG_DIRTY_PAGES, \ 867 .pt_memslot_flags = KVM_MEM_READONLY | KVM_MEM_LOG_DIRTY_PAGES, \
|
/openbmc/linux/tools/testing/selftests/kvm/s390x/ |
H A D | cmma_test.c | 179 vm_mem_region_set_flags(vm, 0, KVM_MEM_LOG_DIRTY_PAGES); in enable_dirty_tracking() 180 vm_mem_region_set_flags(vm, TEST_DATA_MEMSLOT, KVM_MEM_LOG_DIRTY_PAGES); in enable_dirty_tracking() 351 vm_mem_region_set_flags(vm, TEST_DATA_TWO_MEMSLOT, KVM_MEM_LOG_DIRTY_PAGES); in test_migration_mode()
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | vmx_dirty_log_test.c | 92 KVM_MEM_LOG_DIRTY_PAGES); in main()
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | mmu.c | 443 if (change != KVM_MR_DELETE && new->flags & KVM_MEM_LOG_DIRTY_PAGES) in kvm_arch_commit_memory_region() 517 if (new->flags & KVM_MEM_LOG_DIRTY_PAGES) { in kvm_arch_prepare_memory_region()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | memstress.c | 334 int flags = enable ? KVM_MEM_LOG_DIRTY_PAGES : 0; in toggle_dirty_logging()
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | kvm_page_table_test.c | 379 KVM_MEM_LOG_DIRTY_PAGES); in run_test()
|
H A D | dirty_log_test.c | 762 KVM_MEM_LOG_DIRTY_PAGES); in run_test()
|
/openbmc/linux/arch/mips/kvm/ |
H A D | mips.c | 231 (!(old->flags & KVM_MEM_LOG_DIRTY_PAGES) && in kvm_arch_commit_memory_region() 232 new->flags & KVM_MEM_LOG_DIRTY_PAGES)) { in kvm_arch_commit_memory_region()
|
H A D | mmu.c | 459 if (range->slot->flags & KVM_MEM_LOG_DIRTY_PAGES && !pte_dirty(old_pte)) in kvm_set_spte_gfn()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | mmu.c | 1969 bool log_dirty_pages = new && new->flags & KVM_MEM_LOG_DIRTY_PAGES; in kvm_arch_commit_memory_region() 2056 if (new->flags & KVM_MEM_LOG_DIRTY_PAGES) { in kvm_arch_prepare_memory_region()
|
/openbmc/qemu/accel/kvm/ |
H A D | kvm-all.c | 598 flags |= KVM_MEM_LOG_DIRTY_PAGES; in kvm_mem_flags() 710 if (!(mem->flags & KVM_MEM_LOG_DIRTY_PAGES) || mem->dirty_bmap) { in kvm_slot_init_dirty_bitmap() 1480 if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) { in kvm_set_phys_mem() 1787 if (mem->memory_size && mem->flags & KVM_MEM_LOG_DIRTY_PAGES) { in kvm_log_sync_global()
|
/openbmc/qemu/linux-headers/linux/ |
H A D | kvm.h | 51 #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) macro
|
/openbmc/linux/virt/kvm/ |
H A D | kvm_main.c | 1550 u32 valid_flags = KVM_MEM_LOG_DIRTY_PAGES; in check_memory_region_flags() 1635 if (!(new->flags & KVM_MEM_LOG_DIRTY_PAGES)) in kvm_prepare_memory_region() 1674 if ((old_flags ^ new_flags) & KVM_MEM_LOG_DIRTY_PAGES) { in kvm_commit_memory_region() 1675 int change = (new_flags & KVM_MEM_LOG_DIRTY_PAGES) ? 1 : -1; in kvm_commit_memory_region()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | kvm.h | 103 #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) macro
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_64_mmu_radix.c | 883 large_enable = !(memslot->flags & KVM_MEM_LOG_DIRTY_PAGES); in kvmppc_book3s_instantiate_page()
|
H A D | book3s_hv.c | 5106 ((new->flags ^ old->flags) & KVM_MEM_LOG_DIRTY_PAGES)) in kvmppc_core_commit_memory_region_hv()
|
/openbmc/linux/include/uapi/linux/ |
H A D | kvm.h | 103 #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) macro
|
/openbmc/linux/include/linux/ |
H A D | kvm_host.h | 595 return slot->flags & KVM_MEM_LOG_DIRTY_PAGES; in kvm_slot_dirty_track_enabled()
|
/openbmc/linux/arch/x86/kvm/ |
H A D | x86.c | 12703 bool log_dirty_pages = new_flags & KVM_MEM_LOG_DIRTY_PAGES; in kvm_mmu_slot_apply_flags() 12709 if ((old_flags ^ new_flags) & KVM_MEM_LOG_DIRTY_PAGES) in kvm_mmu_slot_apply_flags() 12735 if (WARN_ON_ONCE(!((old_flags ^ new_flags) & KVM_MEM_LOG_DIRTY_PAGES))) in kvm_mmu_slot_apply_flags()
|
/openbmc/linux/Documentation/virt/kvm/ |
H A D | api.rst | 1313 #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) 1345 The flags field supports two flags: KVM_MEM_LOG_DIRTY_PAGES and 8150 all user memory regions for which the KVM_MEM_LOG_DIRTY_PAGES flag was 8465 KVM_MEM_LOG_DIRTY_PAGES flag for a memory region), or when using
|
/openbmc/linux/arch/s390/kvm/ |
H A D | kvm-s390.c | 5802 !(new->flags & KVM_MEM_LOG_DIRTY_PAGES)) in kvm_arch_prepare_memory_region()
|