Home
last modified time | relevance | path

Searched refs:acrn_vcpu (Results 1 – 25 of 78) sorted by relevance

1234

/hypervisor/include/arch/x86/asm/guest/
A Dvirq.h10 struct acrn_vcpu;
44 void vcpu_inject_extint(struct acrn_vcpu *vcpu);
53 void vcpu_inject_nmi(struct acrn_vcpu *vcpu);
63 void vcpu_inject_gp(struct acrn_vcpu *vcpu, uint32_t err_code);
83 void vcpu_inject_ud(struct acrn_vcpu *vcpu);
92 void vcpu_inject_ss(struct acrn_vcpu *vcpu);
103 void vcpu_inject_thermal_interrupt(struct acrn_vcpu *vcpu);
109 int32_t exception_vmexit_handler(struct acrn_vcpu *vcpu);
110 int32_t nmi_window_vmexit_handler(struct acrn_vcpu *vcpu);
111 int32_t interrupt_window_vmexit_handler(struct acrn_vcpu *vcpu);
[all …]
A Dvcpu.h306 struct acrn_vcpu { struct
329 struct acrn_vcpu *vcpu; argument
335 struct acrn_vcpu *vcpu;
415 uint64_t vcpu_get_rip(struct acrn_vcpu *vcpu);
457 uint64_t vcpu_get_efer(struct acrn_vcpu *vcpu);
478 uint64_t vcpu_get_rflags(struct acrn_vcpu *vcpu);
608 void load_iwkey(struct acrn_vcpu *vcpu);
635 int32_t run_vcpu(struct acrn_vcpu *vcpu);
646 void offline_vcpu(struct acrn_vcpu *vcpu);
679 void launch_vcpu(struct acrn_vcpu *vcpu);
[all …]
A Dvlapic.h89 struct acrn_vcpu;
93 bool (*has_pending_delivery_intr)(struct acrn_vcpu *vcpu);
94 bool (*has_pending_intr)(struct acrn_vcpu *vcpu);
113 bool vlapic_has_pending_delivery_intr(struct acrn_vcpu *vcpu);
114 bool vlapic_has_pending_intr(struct acrn_vcpu *vcpu);
120 uint32_t vlapic_get_next_pending_intr(struct acrn_vcpu *vcpu);
192 void vlapic_create(struct acrn_vcpu *vcpu, uint16_t pcpu_id);
196 void vlapic_free(struct acrn_vcpu *vcpu);
202 int32_t apic_access_vmexit_handler(struct acrn_vcpu *vcpu);
203 int32_t apic_write_vmexit_handler(struct acrn_vcpu *vcpu);
[all …]
A Dvirtual_cr.h34 uint64_t vcpu_get_cr0(struct acrn_vcpu *vcpu);
44 void vcpu_set_cr0(struct acrn_vcpu *vcpu, uint64_t val);
55 uint64_t vcpu_get_cr2(const struct acrn_vcpu *vcpu);
65 void vcpu_set_cr2(struct acrn_vcpu *vcpu, uint64_t val);
76 uint64_t vcpu_get_cr4(struct acrn_vcpu *vcpu);
86 void vcpu_set_cr4(struct acrn_vcpu *vcpu, uint64_t val);
93 int32_t cr_access_vmexit_handler(struct acrn_vcpu *vcpu);
A Dnested.h320 bool check_vmx_permission(struct acrn_vcpu *vcpu);
321 int32_t vmxon_vmexit_handler(struct acrn_vcpu *vcpu);
322 int32_t vmxoff_vmexit_handler(struct acrn_vcpu *vcpu);
323 int32_t vmptrld_vmexit_handler(struct acrn_vcpu *vcpu);
324 int32_t vmclear_vmexit_handler(struct acrn_vcpu *vcpu);
325 int32_t vmread_vmexit_handler(struct acrn_vcpu *vcpu);
326 int32_t vmwrite_vmexit_handler(struct acrn_vcpu *vcpu);
329 int32_t invvpid_vmexit_handler(struct acrn_vcpu *vcpu);
352 bool is_vcpu_in_l2_guest(struct acrn_vcpu *vcpu);
354 void init_vmx_msrs(struct acrn_vcpu *vcpu);
[all …]
A Dvcat.h15 void init_vcat_msrs(struct acrn_vcpu *vcpu);
18 int32_t read_vcbm(const struct acrn_vcpu *vcpu, uint32_t vmsr, uint64_t *rval);
19 int32_t write_vcbm(struct acrn_vcpu *vcpu, uint32_t vmsr, uint64_t val);
20 int32_t read_vclosid(const struct acrn_vcpu *vcpu, uint64_t *rval);
21 int32_t write_vclosid(struct acrn_vcpu *vcpu, uint64_t val);
A Dvmexit.h11 int32_t (*handler)(struct acrn_vcpu *);
15 int32_t vmexit_handler(struct acrn_vcpu *vcpu);
16 int32_t vmcall_vmexit_handler(struct acrn_vcpu *vcpu);
17 int32_t cpuid_vmexit_handler(struct acrn_vcpu *vcpu);
18 int32_t rdmsr_vmexit_handler(struct acrn_vcpu *vcpu);
19 int32_t wrmsr_vmexit_handler(struct acrn_vcpu *vcpu);
A Dguest_memory.h18 struct acrn_vcpu;
32 int32_t gva2gpa(struct acrn_vcpu *vcpu, uint64_t gva, uint64_t *gpa, uint32_t *err_code);
34 enum vm_paging_mode get_vcpu_paging_mode(struct acrn_vcpu *vcpu);
96 int32_t copy_from_gva(struct acrn_vcpu *vcpu, void *h_ptr, uint64_t gva,
111 int32_t copy_to_gva(struct acrn_vcpu *vcpu, void *h_ptr, uint64_t gva,
A Dinstr_emul.h36 struct acrn_vcpu;
49 struct acrn_vcpu *vcpu;
96 int32_t emulate_instruction(struct acrn_vcpu *vcpu);
97 int32_t decode_instruction(struct acrn_vcpu *vcpu, bool full_decode);
98 bool is_current_opcode_xchg(struct acrn_vcpu *vcpu);
A Dtrusty.h22 struct acrn_vcpu;
124 void switch_world(struct acrn_vcpu *vcpu, int32_t next_world);
125 bool initialize_trusty(struct acrn_vcpu *vcpu, struct trusty_boot_param *boot_param);
127 void save_sworld_context(struct acrn_vcpu *vcpu);
128 void restore_sworld_context(struct acrn_vcpu *vcpu);
A Dlock_instr_emul.h10 void vcpu_kick_lock_instr_emulation(struct acrn_vcpu *cur_vcpu);
11 void vcpu_complete_lock_instr_emulation(struct acrn_vcpu *cur_vcpu);
12 int32_t emulate_lock_instr(struct acrn_vcpu *vcpu, uint32_t exception_vector, bool *queue_exception…
A Dvmtrr.h56 struct acrn_vcpu;
64 void write_vmtrr(struct acrn_vcpu *vcpu, uint32_t msr, uint64_t value);
73 uint64_t read_vmtrr(const struct acrn_vcpu *vcpu, uint32_t msr);
79 void init_vmtrr(struct acrn_vcpu *vcpu);
A Dvmcs.h62 void init_vmcs(struct acrn_vcpu *vcpu);
63 void load_vmcs(const struct acrn_vcpu *vcpu);
66 void switch_apicv_mode_x2apic(struct acrn_vcpu *vcpu);
/hypervisor/include/common/
A Dhypercall.h73 int32_t hcall_create_vm(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, uint64_t param1, uint64_…
105 int32_t hcall_reset_vm(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, uint64_t param1, uint64_t…
121 int32_t hcall_start_vm(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, uint64_t param1, uint64_t…
137 int32_t hcall_pause_vm(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, uint64_t param1, uint64_t…
232 int32_t hcall_set_vm_memory_regions(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm,
375 int32_t hcall_reset_ptdev_intr_info(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm,
462 int32_t hcall_save_restore_sworld_ctx(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm,
475 int32_t hcall_handle_tee_vcpu_boot_done(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm,
488 int32_t hcall_switch_ee(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm,
538 int32_t hcall_asyncio_assign(__unused struct acrn_vcpu *vcpu, struct acrn_vm *target_vm,
[all …]
/hypervisor/arch/x86/guest/
A Dvmexit.c34 static int32_t unhandled_vmexit_handler(struct acrn_vcpu *vcpu);
35 static int32_t xsetbv_vmexit_handler(struct acrn_vcpu *vcpu);
36 static int32_t wbinvd_vmexit_handler(struct acrn_vcpu *vcpu);
37 static int32_t undefined_vmexit_handler(struct acrn_vcpu *vcpu);
39 static int32_t hlt_vmexit_handler(struct acrn_vcpu *vcpu);
40 static int32_t mtf_vmexit_handler(struct acrn_vcpu *vcpu);
213 int32_t vmexit_handler(struct acrn_vcpu *vcpu) in vmexit_handler()
317 static int32_t mtf_vmexit_handler(struct acrn_vcpu *vcpu) in mtf_vmexit_handler()
347 static int32_t hlt_vmexit_handler(struct acrn_vcpu *vcpu) in hlt_vmexit_handler()
355 int32_t cpuid_vmexit_handler(struct acrn_vcpu *vcpu) in cpuid_vmexit_handler()
[all …]
A Dvcpu.c56 uint64_t vcpu_get_rip(struct acrn_vcpu *vcpu) in vcpu_get_rip()
221 void load_iwkey(struct acrn_vcpu *vcpu) in load_iwkey()
275 struct acrn_vcpu *vcpu = NULL; in get_running_vcpu()
510 struct acrn_vcpu *vcpu; in create_vcpu()
693 int32_t run_vcpu(struct acrn_vcpu *vcpu) in run_vcpu()
818 void kick_vcpu(struct acrn_vcpu *vcpu) in kick_vcpu()
926 struct acrn_vcpu *vcpu = container_of(prev, struct acrn_vcpu, thread_obj); in context_switch_out()
942 struct acrn_vcpu *vcpu = container_of(next, struct acrn_vcpu, thread_obj); in context_switch_in()
972 void launch_vcpu(struct acrn_vcpu *vcpu) in launch_vcpu()
986 struct acrn_vcpu *vcpu = NULL; in prepare_vcpu()
[all …]
A Dvirq.c100 static bool is_guest_irq_enabled(struct acrn_vcpu *vcpu) in is_guest_irq_enabled()
143 struct acrn_vcpu *primary; in vcpu_do_pending_extint()
238 static void vcpu_inject_exception(struct acrn_vcpu *vcpu) in vcpu_inject_exception()
267 void vcpu_inject_extint(struct acrn_vcpu *vcpu) in vcpu_inject_extint()
274 void vcpu_inject_nmi(struct acrn_vcpu *vcpu) in vcpu_inject_nmi()
294 void vcpu_inject_ud(struct acrn_vcpu *vcpu) in vcpu_inject_ud()
300 void vcpu_inject_ss(struct acrn_vcpu *vcpu) in vcpu_inject_ss()
306 void vcpu_inject_thermal_interrupt(struct acrn_vcpu *vcpu) in vcpu_inject_thermal_interrupt()
360 int32_t acrn_handle_pending_request(struct acrn_vcpu *vcpu) in acrn_handle_pending_request()
506 int32_t exception_vmexit_handler(struct acrn_vcpu *vcpu) in exception_vmexit_handler()
[all …]
A Dlock_instr_emul.c17 static bool is_guest_ac_enabled(struct acrn_vcpu *vcpu) in is_guest_ac_enabled()
28 static bool is_guest_gp_enabled(struct acrn_vcpu *vcpu) in is_guest_gp_enabled()
39 void vcpu_kick_lock_instr_emulation(struct acrn_vcpu *cur_vcpu) in vcpu_kick_lock_instr_emulation()
41 struct acrn_vcpu *other; in vcpu_kick_lock_instr_emulation()
55 void vcpu_complete_lock_instr_emulation(struct acrn_vcpu *cur_vcpu) in vcpu_complete_lock_instr_emulation()
57 struct acrn_vcpu *other; in vcpu_complete_lock_instr_emulation()
71 int32_t emulate_lock_instr(struct acrn_vcpu *vcpu, uint32_t exception_vector, bool *queue_exception) in emulate_lock_instr()
A Doptee.c57 static int32_t tee_switch_to_ree(struct acrn_vcpu *vcpu) in tee_switch_to_ree()
61 struct acrn_vcpu *ree_vcpu; in tee_switch_to_ree()
116 static int32_t ree_switch_to_tee(struct acrn_vcpu *vcpu) in ree_switch_to_tee()
120 struct acrn_vcpu *tee_vcpu; in ree_switch_to_tee()
150 int32_t hcall_handle_tee_vcpu_boot_done(struct acrn_vcpu *vcpu, __unused struct acrn_vm *target_vm, in hcall_handle_tee_vcpu_boot_done()
171 int32_t hcall_switch_ee(struct acrn_vcpu *vcpu, __unused struct acrn_vm *target_vm, in hcall_switch_ee()
187 struct acrn_vcpu *tee_vcpu; in handle_x86_tee_int()
188 struct acrn_vcpu *curr_vcpu = get_running_vcpu(pcpu_id); in handle_x86_tee_int()
A Dvm_reset.c18 void triple_fault_shutdown_vm(struct acrn_vcpu *vcpu) in triple_fault_shutdown_vm()
72 static bool handle_reset_reg_read(struct acrn_vcpu *vcpu, __unused uint16_t addr, in handle_reset_reg_read()
91 static bool handle_common_reset_reg_write(struct acrn_vcpu *vcpu, bool reset, bool warm) in handle_common_reset_reg_write()
135 static bool handle_kb_write(struct acrn_vcpu *vcpu, __unused uint16_t addr, size_t bytes, uint32_t … in handle_kb_write()
141 static bool handle_kb_read(struct acrn_vcpu *vcpu, uint16_t addr, size_t bytes) in handle_kb_read()
166 static bool handle_cf9_write(struct acrn_vcpu *vcpu, __unused uint16_t addr, size_t bytes, uint32_t… in handle_cf9_write()
180 static bool handle_reset_reg_write(struct acrn_vcpu *vcpu, uint16_t addr, size_t bytes, uint32_t va… in handle_reset_reg_write()
/hypervisor/include/debug/
A Dprofiling.h14 struct acrn_vcpu;
16 void profiling_vmenter_handler(struct acrn_vcpu *vcpu);
17 void profiling_pre_vmexit_handler(struct acrn_vcpu *vcpu);
18 void profiling_post_vmexit_handler(struct acrn_vcpu *vcpu);
/hypervisor/release/
A Dprofiling.c10 void profiling_vmenter_handler(__unused struct acrn_vcpu *vcpu) {} in profiling_vmenter_handler()
11 void profiling_pre_vmexit_handler(__unused struct acrn_vcpu *vcpu) {} in profiling_pre_vmexit_handler()
12 void profiling_post_vmexit_handler(__unused struct acrn_vcpu *vcpu) {} in profiling_post_vmexit_handler()
A Dhypercall.c11 int32_t hcall_setup_hv_npk_log(__unused struct acrn_vcpu *vcpu, __unused struct acrn_vm *target_vm, in hcall_setup_hv_npk_log()
17 int32_t hcall_get_hw_info(__unused struct acrn_vcpu *vcpu, __unused struct acrn_vm *target_vm, in hcall_get_hw_info()
23 int32_t hcall_profiling_ops(__unused struct acrn_vcpu *vcpu, __unused struct acrn_vm *target_vm, in hcall_profiling_ops()
/hypervisor/include/dm/
A Dio_req.h58 struct acrn_vcpu;
61 bool (*io_read_fn_t)(struct acrn_vcpu *vcpu, uint16_t port, size_t size);
64 bool (*io_write_fn_t)(struct acrn_vcpu *vcpu, uint16_t port, size_t size, uint32_t val);
187 int32_t acrn_insert_request(struct acrn_vcpu *vcpu, const struct io_request *io_req);
248 int32_t emulate_io(struct acrn_vcpu *vcpu, struct io_request *io_req);
/hypervisor/common/
A Dhypercall.c87 struct acrn_vcpu *target_vcpu; in hcall_service_vm_offline_cpu()
290 int32_t hcall_start_vm(__unused struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, in hcall_start_vm()
315 int32_t hcall_pause_vm(__unused struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, in hcall_pause_vm()
340 int32_t hcall_reset_vm(__unused struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, in hcall_reset_vm()
367 int32_t hcall_set_vcpu_regs(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, in hcall_set_vcpu_regs()
372 struct acrn_vcpu *target_vcpu; in hcall_set_vcpu_regs()
484 int32_t hcall_set_ioreq_buffer(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, in hcall_set_ioreq_buffer()
527 int32_t hcall_setup_sbuf(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, in hcall_setup_sbuf()
586 struct acrn_vcpu *target_vcpu; in hcall_notify_ioreq_finish()
862 int32_t hcall_assign_pcidev(struct acrn_vcpu *vcpu, struct acrn_vm *target_vm, in hcall_assign_pcidev()
[all …]

Completed in 37 milliseconds

1234