Lines Matching refs:memreg
1802 struct kvm_userspace_memory_region memreg;
1803 memreg.slot = i;
1804 memreg.flags = 0;
1805 memreg.guest_phys_addr = guest_mem + i * page_size;
1807 memreg.guest_phys_addr = 0xfec00000;
1808 memreg.memory_size = page_size;
1809 memreg.userspace_addr = (uintptr_t)host_mem + i * page_size;
1810 ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &memreg);
1812 struct kvm_userspace_memory_region memreg;
1813 memreg.slot = 1 + (1 << 16);
1814 memreg.flags = 0;
1815 memreg.guest_phys_addr = 0x30000;
1816 memreg.memory_size = 64 << 10;
1817 memreg.userspace_addr = (uintptr_t)host_mem;
1818 ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &memreg);
2371 struct kvm_userspace_memory_region memreg;
2372 memreg.slot = i;
2373 memreg.flags = 0;
2374 memreg.guest_phys_addr = guest_mem + i * page_size;
2375 memreg.memory_size = page_size;
2376 memreg.userspace_addr = (uintptr_t)host_mem + i * page_size;
2377 ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &memreg);