Searched refs:mem (Results 1 – 2 of 2) sorted by relevance
961 static int check_memory_region_flags(const struct kvm_userspace_memory_region *mem) in check_memory_region_flags() argument969 if (mem->flags & ~valid_flags) in check_memory_region_flags()1020 const struct kvm_userspace_memory_region *mem) in __kvm_set_memory_region() argument1031 r = check_memory_region_flags(mem); in __kvm_set_memory_region()1036 as_id = mem->slot >> 16; in __kvm_set_memory_region()1037 id = (u16)mem->slot; in __kvm_set_memory_region()1040 if (mem->memory_size & (PAGE_SIZE - 1)) in __kvm_set_memory_region()1042 if (mem->guest_phys_addr & (PAGE_SIZE - 1)) in __kvm_set_memory_region()1046 ((mem->userspace_addr & (PAGE_SIZE - 1)) || in __kvm_set_memory_region()1047 (mem->userspace_addr != untagged_addr(mem->userspace_addr)) || in __kvm_set_memory_region()[all …]
2278 const struct kvm_userspace_memory_region *mem, in kvm_arch_commit_memory_region() argument2288 if (change != KVM_MR_DELETE && mem->flags & KVM_MEM_LOG_DIRTY_PAGES) in kvm_arch_commit_memory_region()2289 kvm_mmu_wp_memory_region(kvm, mem->slot); in kvm_arch_commit_memory_region()2294 const struct kvm_userspace_memory_region *mem, in kvm_arch_prepare_memory_region() argument2297 hva_t hva = mem->userspace_addr; in kvm_arch_prepare_memory_region()2298 hva_t reg_end = hva + mem->memory_size; in kvm_arch_prepare_memory_region()2299 bool writable = !(mem->flags & KVM_MEM_READONLY); in kvm_arch_prepare_memory_region()2349 gpa_t gpa = mem->guest_phys_addr + in kvm_arch_prepare_memory_region()2350 (vm_start - mem->userspace_addr); in kvm_arch_prepare_memory_region()2376 unmap_stage2_range(kvm, mem->guest_phys_addr, mem->memory_size); in kvm_arch_prepare_memory_region()