Lines Matching refs:vm

88 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap);
89 int vcpu_enable_cap(struct kvm_vm *vm, uint32_t vcpu_id,
91 void vm_enable_dirty_ring(struct kvm_vm *vm, uint32_t ring_size);
98 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log);
99 void kvm_vm_clear_dirty_log(struct kvm_vm *vm, int slot, void *log,
101 uint32_t kvm_vm_reset_dirty_ring(struct kvm_vm *vm);
103 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva,
106 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename);
108 void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
126 void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid,
129 void vm_create_irqchip(struct kvm_vm *vm);
131 void vm_userspace_mem_region_add(struct kvm_vm *vm,
136 void vcpu_ioctl(struct kvm_vm *vm, uint32_t vcpuid, unsigned long ioctl,
138 int _vcpu_ioctl(struct kvm_vm *vm, uint32_t vcpuid, unsigned long ioctl,
140 void vm_ioctl(struct kvm_vm *vm, unsigned long ioctl, void *arg);
141 int _vm_ioctl(struct kvm_vm *vm, unsigned long cmd, void *arg);
142 void kvm_ioctl(struct kvm_vm *vm, unsigned long ioctl, void *arg);
143 int _kvm_ioctl(struct kvm_vm *vm, unsigned long ioctl, void *arg);
144 void vm_mem_region_set_flags(struct kvm_vm *vm, uint32_t slot, uint32_t flags);
145 void vm_mem_region_move(struct kvm_vm *vm, uint32_t slot, uint64_t new_gpa);
146 void vm_mem_region_delete(struct kvm_vm *vm, uint32_t slot);
147 void vm_vcpu_add(struct kvm_vm *vm, uint32_t vcpuid);
148 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min);
149 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages);
150 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm);
152 void virt_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr,
154 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa);
155 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva);
156 vm_paddr_t addr_hva2gpa(struct kvm_vm *vm, void *hva);
157 void *addr_gpa2alias(struct kvm_vm *vm, vm_paddr_t gpa);
174 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva);
176 struct kvm_run *vcpu_state(struct kvm_vm *vm, uint32_t vcpuid);
177 void vcpu_run(struct kvm_vm *vm, uint32_t vcpuid);
178 int _vcpu_run(struct kvm_vm *vm, uint32_t vcpuid);
179 int vcpu_get_fd(struct kvm_vm *vm, uint32_t vcpuid);
180 void vcpu_run_complete_io(struct kvm_vm *vm, uint32_t vcpuid);
181 void vcpu_set_guest_debug(struct kvm_vm *vm, uint32_t vcpuid,
183 void vcpu_set_mp_state(struct kvm_vm *vm, uint32_t vcpuid,
185 struct kvm_reg_list *vcpu_get_reg_list(struct kvm_vm *vm, uint32_t vcpuid);
186 void vcpu_regs_get(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_regs *regs);
187 void vcpu_regs_set(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_regs *regs);
207 void vcpu_args_set(struct kvm_vm *vm, uint32_t vcpuid, unsigned int num, ...);
209 void vcpu_sregs_get(struct kvm_vm *vm, uint32_t vcpuid,
211 void vcpu_sregs_set(struct kvm_vm *vm, uint32_t vcpuid,
213 int _vcpu_sregs_set(struct kvm_vm *vm, uint32_t vcpuid,
215 void vcpu_fpu_get(struct kvm_vm *vm, uint32_t vcpuid,
217 void vcpu_fpu_set(struct kvm_vm *vm, uint32_t vcpuid,
219 void vcpu_get_reg(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_one_reg *reg);
220 void vcpu_set_reg(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_one_reg *reg);
222 void vcpu_events_get(struct kvm_vm *vm, uint32_t vcpuid,
224 void vcpu_events_set(struct kvm_vm *vm, uint32_t vcpuid,
228 void vcpu_nested_state_get(struct kvm_vm *vm, uint32_t vcpuid,
230 int vcpu_nested_state_set(struct kvm_vm *vm, uint32_t vcpuid,
233 void *vcpu_map_dirty_ring(struct kvm_vm *vm, uint32_t vcpuid);
237 int _kvm_create_device(struct kvm_vm *vm, uint64_t type, bool test, int *fd);
238 int kvm_create_device(struct kvm_vm *vm, uint64_t type, bool test);
244 int _vcpu_has_device_attr(struct kvm_vm *vm, uint32_t vcpuid, uint32_t group,
246 int vcpu_has_device_attr(struct kvm_vm *vm, uint32_t vcpuid, uint32_t group,
248 int _vcpu_access_device_attr(struct kvm_vm *vm, uint32_t vcpuid, uint32_t group,
250 int vcpu_access_device_attr(struct kvm_vm *vm, uint32_t vcpuid, uint32_t group,
255 void virt_pgd_alloc(struct kvm_vm *vm);
273 void virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr);
275 vm_paddr_t vm_phy_page_alloc(struct kvm_vm *vm, vm_paddr_t paddr_min,
277 vm_paddr_t vm_phy_pages_alloc(struct kvm_vm *vm, size_t num,
279 vm_paddr_t vm_alloc_page_table(struct kvm_vm *vm);
318 void vm_vcpu_add_default(struct kvm_vm *vm, uint32_t vcpuid, void *guest_code);
320 bool vm_is_unrestricted_guest(struct kvm_vm *vm);
322 unsigned int vm_get_page_size(struct kvm_vm *vm);
323 unsigned int vm_get_page_shift(struct kvm_vm *vm);
324 unsigned long vm_compute_max_gfn(struct kvm_vm *vm);
325 uint64_t vm_get_max_gfn(struct kvm_vm *vm);
326 int vm_get_fd(struct kvm_vm *vm);
344 kvm_userspace_memory_region_find(struct kvm_vm *vm, uint64_t start,
350 int vm_create_device(struct kvm_vm *vm, struct kvm_create_device *cd);
352 #define sync_global_to_guest(vm, g) ({ \ argument
353 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
357 #define sync_global_from_guest(vm, g) ({ \ argument
358 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
362 void assert_on_unhandled_exception(struct kvm_vm *vm, uint32_t vcpuid);
380 void ucall_init(struct kvm_vm *vm, void *arg);
381 void ucall_uninit(struct kvm_vm *vm);
383 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc);
413 int vm_get_stats_fd(struct kvm_vm *vm);
414 int vcpu_get_stats_fd(struct kvm_vm *vm, uint32_t vcpuid);