Lines Matching refs:memreg
298 struct kvm_userspace_memory_region memreg; in syz_kvm_setup_cpu() local
299 memreg.slot = i; in syz_kvm_setup_cpu()
300 memreg.flags = 0; // can be KVM_MEM_LOG_DIRTY_PAGES | KVM_MEM_READONLY in syz_kvm_setup_cpu()
301 memreg.guest_phys_addr = guest_mem + i * page_size; in syz_kvm_setup_cpu()
303 memreg.guest_phys_addr = 0xfec00000; in syz_kvm_setup_cpu()
304 memreg.memory_size = page_size; in syz_kvm_setup_cpu()
305 memreg.userspace_addr = (uintptr_t)host_mem + i * page_size; in syz_kvm_setup_cpu()
306 ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &memreg); in syz_kvm_setup_cpu()
309 struct kvm_userspace_memory_region memreg; in syz_kvm_setup_cpu() local
310 memreg.slot = 1 + (1 << 16); in syz_kvm_setup_cpu()
311 memreg.flags = 0; in syz_kvm_setup_cpu()
312 memreg.guest_phys_addr = 0x30000; in syz_kvm_setup_cpu()
313 memreg.memory_size = 64 << 10; in syz_kvm_setup_cpu()
314 memreg.userspace_addr = (uintptr_t)host_mem; in syz_kvm_setup_cpu()
315 ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &memreg); in syz_kvm_setup_cpu()