Searched refs:rvmcs (Results 1 – 8 of 8) sorted by relevance
/openbmc/qemu/target/i386/hvf/ |
H A D | x86.c | 64 base = rvmcs(cpu->accel->fd, VMCS_GUEST_GDTR_BASE); in x86_read_segment_descriptor() 65 limit = rvmcs(cpu->accel->fd, VMCS_GUEST_GDTR_LIMIT); in x86_read_segment_descriptor() 67 base = rvmcs(cpu->accel->fd, VMCS_GUEST_LDTR_BASE); in x86_read_segment_descriptor() 68 limit = rvmcs(cpu->accel->fd, VMCS_GUEST_LDTR_LIMIT); in x86_read_segment_descriptor() 87 base = rvmcs(cpu->accel->fd, VMCS_GUEST_GDTR_BASE); in x86_write_segment_descriptor() 88 limit = rvmcs(cpu->accel->fd, VMCS_GUEST_GDTR_LIMIT); in x86_write_segment_descriptor() 90 base = rvmcs(cpu->accel->fd, VMCS_GUEST_LDTR_BASE); in x86_write_segment_descriptor() 91 limit = rvmcs(cpu->accel->fd, VMCS_GUEST_LDTR_LIMIT); in x86_write_segment_descriptor() 120 uint64_t cr0 = rvmcs(cpu->accel->fd, VMCS_GUEST_CR0); in x86_is_protected() 151 uint64_t cr0 = rvmcs(cpu->accel->fd, VMCS_GUEST_CR0); in x86_is_paging_mode() [all …]
|
H A D | vmx.h | 58 static inline uint64_t rvmcs(hv_vcpuid_t vcpu, uint32_t field) in rvmcs() function 97 entry_ctls = rvmcs(vcpu, VMCS_ENTRY_CTLS); in enter_long_mode() 100 uint64_t guest_tr_ar = rvmcs(vcpu, VMCS_GUEST_TR_ACCESS_RIGHTS); in enter_long_mode() 112 entry_ctls = rvmcs(vcpu, VMCS_ENTRY_CTLS); in exit_long_mode() 123 uint64_t efer = rvmcs(vcpu, VMCS_GUEST_IA32_EFER); in macvm_set_cr0() 124 uint64_t old_cr0 = rvmcs(vcpu, VMCS_GUEST_CR0); in macvm_set_cr0() 133 rvmcs(vcpu, VMCS_GUEST_CR3) & ~0x1f, in macvm_set_cr0() 153 entry_ctls = rvmcs(vcpu, VMCS_ENTRY_CTLS); in macvm_set_cr0() 186 val = rvmcs(cpu->accel->fd, VMCS_GUEST_INTERRUPTIBILITY); in macvm_set_rip() 221 val = rvmcs(cpu->accel->fd, VMCS_PRI_PROC_BASED_CTLS); in vmx_set_nmi_window_exiting() [all …]
|
H A D | x86_descr.c | 50 return (uint32_t)rvmcs(cpu->accel->fd, vmx_segment_fields[seg].limit); in vmx_read_segment_limit() 55 return (uint32_t)rvmcs(cpu->accel->fd, vmx_segment_fields[seg].ar_bytes); in vmx_read_segment_ar() 60 return rvmcs(cpu->accel->fd, vmx_segment_fields[seg].base); in vmx_read_segment_base() 66 sel.sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_selector() 77 desc->sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_descriptor() 78 desc->base = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].base); in vmx_read_segment_descriptor() 79 desc->limit = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].limit); in vmx_read_segment_descriptor() 80 desc->ar = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].ar_bytes); in vmx_read_segment_descriptor()
|
H A D | hvf.c | 370 env->error_code = rvmcs(cpu->accel->fd, VMCS_IDT_VECTORING_ERROR); in hvf_store_events() 373 if ((rvmcs(cpu->accel->fd, VMCS_GUEST_INTERRUPTIBILITY) & in hvf_store_events() 379 if (rvmcs(cpu->accel->fd, VMCS_GUEST_INTERRUPTIBILITY) & in hvf_store_events() 462 uint64_t exit_reason = rvmcs(cpu->accel->fd, VMCS_EXIT_REASON); in hvf_vcpu_exec() 463 uint64_t exit_qual = rvmcs(cpu->accel->fd, VMCS_EXIT_QUALIFICATION); in hvf_vcpu_exec() 464 uint32_t ins_len = (uint32_t)rvmcs(cpu->accel->fd, in hvf_vcpu_exec() 467 uint64_t idtvec_info = rvmcs(cpu->accel->fd, VMCS_IDT_VECTORING_INFO); in hvf_vcpu_exec() 501 uint64_t gpa = rvmcs(cpu->accel->fd, VMCS_GUEST_PHYSICAL_ADDRESS); in hvf_vcpu_exec() 569 env->cr[4] = rvmcs(cpu->accel->fd, VMCS_GUEST_CR4); in hvf_vcpu_exec() 672 uint64_t vinfo = rvmcs(cpu->accel->fd, VMCS_IDT_VECTORING_INFO); in hvf_vcpu_exec()
|
H A D | x86hvf.c | 198 env->idt.limit = rvmcs(cs->accel->fd, VMCS_GUEST_IDTR_LIMIT); in hvf_get_segments() 199 env->idt.base = rvmcs(cs->accel->fd, VMCS_GUEST_IDTR_BASE); in hvf_get_segments() 200 env->gdt.limit = rvmcs(cs->accel->fd, VMCS_GUEST_GDTR_LIMIT); in hvf_get_segments() 201 env->gdt.base = rvmcs(cs->accel->fd, VMCS_GUEST_GDTR_BASE); in hvf_get_segments() 203 env->cr[0] = rvmcs(cs->accel->fd, VMCS_GUEST_CR0); in hvf_get_segments() 205 env->cr[3] = rvmcs(cs->accel->fd, VMCS_GUEST_CR3); in hvf_get_segments() 206 env->cr[4] = rvmcs(cs->accel->fd, VMCS_GUEST_CR4); in hvf_get_segments() 208 env->efer = rvmcs(cs->accel->fd, VMCS_GUEST_IA32_EFER); in hvf_get_segments() 236 env->tsc = rdtscp() + rvmcs(cs->accel->fd, VMCS_TSC_OFFSET); in hvf_get_msrs() 330 val = rvmcs(cs->accel->fd, VMCS_PRI_PROC_BASED_CTLS); in vmx_set_int_window_exiting() [all …]
|
H A D | x86_mmu.c | 129 uint32_t cr0 = rvmcs(cpu->accel->fd, VMCS_GUEST_CR0); in test_pt_entry() 174 target_ulong cr3 = rvmcs(cpu->accel->fd, VMCS_GUEST_CR3); in walk_gpt()
|
H A D | x86_task.c | 117 int ins_len = rvmcs(cpu->accel->fd, VMCS_EXIT_INSTRUCTION_LENGTH); in vmx_handle_task_switch() 176 macvm_set_cr0(cpu->accel->fd, rvmcs(cpu->accel->fd, VMCS_GUEST_CR0) | in vmx_handle_task_switch()
|
H A D | x86_emu.c | 675 val = rdtscp() + rvmcs(cs->accel->fd, VMCS_TSC_OFFSET); in simulate_rdmsr() 684 val = rvmcs(cs->accel->fd, VMCS_GUEST_IA32_EFER); in simulate_rdmsr() 687 val = rvmcs(cs->accel->fd, VMCS_GUEST_FS_BASE); in simulate_rdmsr() 690 val = rvmcs(cs->accel->fd, VMCS_GUEST_GS_BASE); in simulate_rdmsr() 693 val = rvmcs(cs->accel->fd, VMCS_HOST_FS_BASE); in simulate_rdmsr()
|