Lines Matching refs:vmcs_write32
1429 static void vmcs_write32(unsigned long field, u32 value) in vmcs_write32() function
1455 vmcs_write32(VM_ENTRY_CONTROLS, val); in vm_entry_controls_init()
1483 vmcs_write32(VM_EXIT_CONTROLS, val); in vm_exit_controls_init()
1590 vmcs_write32(EXCEPTION_BITMAP, eb); in update_exception_bitmap()
1633 vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, m->nr); in clear_atomic_switch_msr()
1634 vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, m->nr); in clear_atomic_switch_msr()
1696 vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, m->nr); in add_atomic_switch_msr()
1697 vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, m->nr); in add_atomic_switch_msr()
2095 vmcs_write32(GUEST_INTERRUPTIBILITY_INFO, interruptibility); in vmx_set_interrupt_shadow()
2139 vmcs_write32(VM_ENTRY_EXCEPTION_ERROR_CODE, error_code); in vmx_queue_exception()
2153 vmcs_write32(VM_ENTRY_INSTRUCTION_LEN, in vmx_queue_exception()
2159 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, intr_info); in vmx_queue_exception()
2750 vmcs_write32(GUEST_SYSENTER_CS, data); in vmx_set_msr()
3364 vmcs_write32(sf->base, var.base); in fix_rmode_seg()
3365 vmcs_write32(sf->limit, var.limit); in fix_rmode_seg()
3366 vmcs_write32(sf->ar_bytes, vmx_segment_access_rights(&var)); in fix_rmode_seg()
3395 vmcs_write32(GUEST_TR_LIMIT, RMODE_TSS_SIZE - 1); in enter_rmode()
3396 vmcs_write32(GUEST_TR_AR_BYTES, 0x008b); in enter_rmode()
3454 vmcs_write32(GUEST_TR_AR_BYTES, in enter_lmode()
3545 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, in ept_update_paging_mode_cr0()
3553 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, in ept_update_paging_mode_cr0()
3790 vmcs_write32(sf->limit, var->limit); in vmx_set_segment()
3807 vmcs_write32(sf->ar_bytes, vmx_segment_access_rights(var)); in vmx_set_segment()
3829 vmcs_write32(GUEST_IDTR_LIMIT, dt->size); in vmx_set_idt()
3841 vmcs_write32(GUEST_GDTR_LIMIT, dt->size); in vmx_set_gdt()
4123 vmcs_write32(sf->limit, 0xffff); in seg_setup()
4128 vmcs_write32(sf->ar_bytes, ar); in seg_setup()
4518 vmcs_write32(HOST_IA32_SYSENTER_CS, low32); in vmx_set_constant_host_state()
4638 vmcs_write32(PIN_BASED_VM_EXEC_CONTROL, vmx_pin_based_exec_ctrl(vmx)); in vmx_vcpu_setup()
4640 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, vmx_exec_control(vmx)); in vmx_vcpu_setup()
4643 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, in vmx_vcpu_setup()
4660 vmcs_write32(PLE_GAP, ple_gap); in vmx_vcpu_setup()
4665 vmcs_write32(PAGE_FAULT_ERROR_CODE_MASK, 0); in vmx_vcpu_setup()
4666 vmcs_write32(PAGE_FAULT_ERROR_CODE_MATCH, 0); in vmx_vcpu_setup()
4667 vmcs_write32(CR3_TARGET_COUNT, 0); /* 22.2.1 */ in vmx_vcpu_setup()
4682 vmcs_write32(VM_EXIT_MSR_STORE_COUNT, 0); in vmx_vcpu_setup()
4683 vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, 0); in vmx_vcpu_setup()
4685 vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, 0); in vmx_vcpu_setup()
4750 vmcs_write32(GUEST_CS_BASE, 0xffff0000); in vmx_vcpu_reset()
4760 vmcs_write32(GUEST_TR_LIMIT, 0xffff); in vmx_vcpu_reset()
4761 vmcs_write32(GUEST_TR_AR_BYTES, 0x008b); in vmx_vcpu_reset()
4765 vmcs_write32(GUEST_LDTR_LIMIT, 0xffff); in vmx_vcpu_reset()
4766 vmcs_write32(GUEST_LDTR_AR_BYTES, 0x00082); in vmx_vcpu_reset()
4768 vmcs_write32(GUEST_SYSENTER_CS, 0); in vmx_vcpu_reset()
4776 vmcs_write32(GUEST_GDTR_LIMIT, 0xffff); in vmx_vcpu_reset()
4779 vmcs_write32(GUEST_IDTR_LIMIT, 0xffff); in vmx_vcpu_reset()
4781 vmcs_write32(GUEST_ACTIVITY_STATE, GUEST_ACTIVITY_ACTIVE); in vmx_vcpu_reset()
4782 vmcs_write32(GUEST_INTERRUPTIBILITY_INFO, 0); in vmx_vcpu_reset()
4783 vmcs_write32(GUEST_PENDING_DBG_EXCEPTIONS, 0); in vmx_vcpu_reset()
4790 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, 0); /* 22.2.1 */ in vmx_vcpu_reset()
4797 vmcs_write32(TPR_THRESHOLD, 0); in vmx_vcpu_reset()
4850 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); in enable_irq_window()
4865 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); in enable_nmi_window()
4888 vmcs_write32(VM_ENTRY_INSTRUCTION_LEN, in vmx_inject_irq()
4892 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, intr); in vmx_inject_irq()
4922 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, in vmx_inject_nmi()
5432 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); in handle_dr()
5482 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); in vmx_sync_dirty_debug_regs()
5550 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); in handle_interrupt_window()
5901 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); in handle_nmi_window()
6710 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, exec_control); in nested_release_vmcs12()
6971 vmcs_write32(field, (u32)field_value); in copy_vmcs12_to_shadow()
7140 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, exec_control); in handle_vmptrld()
7651 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, exec_control); in vmx_enable_pml()
7666 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, exec_control); in vmx_disable_pml()
7821 vmcs_write32(TPR_THRESHOLD, 0); in update_cr8_intercept()
7825 vmcs_write32(TPR_THRESHOLD, irr); in update_cr8_intercept()
7852 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, sec_exec_control); in vmx_set_virtual_x2apic_mode()
8145 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, 0); in vmx_cancel_injection()
8182 vmcs_write32(PLE_WINDOW, vmx->ple_window); in vmx_vcpu_run()
8556 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, in vmx_cpuid_update()
8572 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, in vmx_cpuid_update()
8578 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, in vmx_cpuid_update()
9081 vmcs_write32(GUEST_ES_LIMIT, vmcs12->guest_es_limit); in prepare_vmcs02()
9082 vmcs_write32(GUEST_CS_LIMIT, vmcs12->guest_cs_limit); in prepare_vmcs02()
9083 vmcs_write32(GUEST_SS_LIMIT, vmcs12->guest_ss_limit); in prepare_vmcs02()
9084 vmcs_write32(GUEST_DS_LIMIT, vmcs12->guest_ds_limit); in prepare_vmcs02()
9085 vmcs_write32(GUEST_FS_LIMIT, vmcs12->guest_fs_limit); in prepare_vmcs02()
9086 vmcs_write32(GUEST_GS_LIMIT, vmcs12->guest_gs_limit); in prepare_vmcs02()
9087 vmcs_write32(GUEST_LDTR_LIMIT, vmcs12->guest_ldtr_limit); in prepare_vmcs02()
9088 vmcs_write32(GUEST_TR_LIMIT, vmcs12->guest_tr_limit); in prepare_vmcs02()
9089 vmcs_write32(GUEST_GDTR_LIMIT, vmcs12->guest_gdtr_limit); in prepare_vmcs02()
9090 vmcs_write32(GUEST_IDTR_LIMIT, vmcs12->guest_idtr_limit); in prepare_vmcs02()
9091 vmcs_write32(GUEST_ES_AR_BYTES, vmcs12->guest_es_ar_bytes); in prepare_vmcs02()
9092 vmcs_write32(GUEST_CS_AR_BYTES, vmcs12->guest_cs_ar_bytes); in prepare_vmcs02()
9093 vmcs_write32(GUEST_SS_AR_BYTES, vmcs12->guest_ss_ar_bytes); in prepare_vmcs02()
9094 vmcs_write32(GUEST_DS_AR_BYTES, vmcs12->guest_ds_ar_bytes); in prepare_vmcs02()
9095 vmcs_write32(GUEST_FS_AR_BYTES, vmcs12->guest_fs_ar_bytes); in prepare_vmcs02()
9096 vmcs_write32(GUEST_GS_AR_BYTES, vmcs12->guest_gs_ar_bytes); in prepare_vmcs02()
9097 vmcs_write32(GUEST_LDTR_AR_BYTES, vmcs12->guest_ldtr_ar_bytes); in prepare_vmcs02()
9098 vmcs_write32(GUEST_TR_AR_BYTES, vmcs12->guest_tr_ar_bytes); in prepare_vmcs02()
9117 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, in prepare_vmcs02()
9119 vmcs_write32(VM_ENTRY_EXCEPTION_ERROR_CODE, in prepare_vmcs02()
9121 vmcs_write32(VM_ENTRY_INSTRUCTION_LEN, in prepare_vmcs02()
9123 vmcs_write32(GUEST_INTERRUPTIBILITY_INFO, in prepare_vmcs02()
9125 vmcs_write32(GUEST_SYSENTER_CS, vmcs12->guest_sysenter_cs); in prepare_vmcs02()
9155 vmcs_write32(PIN_BASED_VM_EXEC_CONTROL, exec_control); in prepare_vmcs02()
9181 vmcs_write32(PAGE_FAULT_ERROR_CODE_MASK, in prepare_vmcs02()
9183 vmcs_write32(PAGE_FAULT_ERROR_CODE_MATCH, in prepare_vmcs02()
9232 vmcs_write32(SECONDARY_VM_EXEC_CONTROL, exec_control); in prepare_vmcs02()
9262 vmcs_write32(TPR_THRESHOLD, vmcs12->tpr_threshold); in prepare_vmcs02()
9279 vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, exec_control); in prepare_vmcs02()
9293 vmcs_write32(VM_EXIT_CONTROLS, vmcs_config.vmexit_ctrl); in prepare_vmcs02()
9931 vmcs_write32(GUEST_SYSENTER_CS, vmcs12->host_ia32_sysenter_cs); in load_vmcs12_host_state()