Lines Matching refs:to_svm

300 	struct vcpu_svm *svm = to_svm(vcpu);  in svm_set_efer()
352 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_interrupt_shadow()
362 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_interrupt_shadow()
374 struct vcpu_svm *svm = to_svm(vcpu); in __svm_skip_emulated_instruction()
417 struct vcpu_svm *svm = to_svm(vcpu); in svm_update_soft_interrupt_rip()
462 struct vcpu_svm *svm = to_svm(vcpu); in svm_inject_exception()
776 struct vcpu_svm *svm = to_svm(vcpu); in set_shadow_msr_intercept()
815 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted()
816 to_svm(vcpu)->msrpm; in msr_write_intercepted()
830 struct vcpu_svm *svm = to_svm(vcpu); in set_msr_interception_bitmap()
927 struct vcpu_svm *svm = to_svm(vcpu); in svm_msr_filter_changed()
1000 struct vcpu_svm *svm = to_svm(vcpu); in svm_enable_lbrv()
1018 struct vcpu_svm *svm = to_svm(vcpu); in svm_disable_lbrv()
1049 struct vcpu_svm *svm = to_svm(vcpu); in svm_update_lbrv()
1079 struct vcpu_svm *svm = to_svm(vcpu); in grow_ple_window()
1100 struct vcpu_svm *svm = to_svm(vcpu); in shrink_ple_window()
1151 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_l2_tsc_offset()
1158 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_l2_tsc_multiplier()
1165 struct vcpu_svm *svm = to_svm(vcpu); in svm_write_tsc_offset()
1175 if (to_svm(vcpu)->guest_state_loaded) in svm_write_tsc_multiplier()
1206 struct vcpu_svm *svm = to_svm(vcpu); in init_vmcb_after_set_cpuid()
1238 struct vcpu_svm *svm = to_svm(vcpu); in init_vmcb()
1388 struct vcpu_svm *svm = to_svm(vcpu); in __svm_vcpu_reset()
1405 struct vcpu_svm *svm = to_svm(vcpu); in svm_vcpu_reset()
1433 svm = to_svm(vcpu); in svm_vcpu_create()
1492 struct vcpu_svm *svm = to_svm(vcpu); in svm_vcpu_free()
1512 struct vcpu_svm *svm = to_svm(vcpu); in svm_prepare_switch_to_guest()
1547 to_svm(vcpu)->guest_state_loaded = false; in svm_prepare_host_switch()
1552 struct vcpu_svm *svm = to_svm(vcpu); in svm_vcpu_load()
1580 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_rflags()
1595 if (to_svm(vcpu)->nmi_singlestep) in svm_set_rflags()
1603 to_svm(vcpu)->vmcb->save.rflags = rflags; in svm_set_rflags()
1608 struct vmcb *vmcb = to_svm(vcpu)->vmcb; in svm_get_if_flag()
1689 struct vmcb_save_area *save = &to_svm(vcpu)->vmcb->save; in svm_seg()
1690 struct vmcb_save_area *save01 = &to_svm(vcpu)->vmcb01.ptr->save; in svm_seg()
1777 var->dpl = to_svm(vcpu)->vmcb->save.cpl; in svm_get_segment()
1784 struct vmcb_save_area *save = &to_svm(vcpu)->vmcb->save; in svm_get_cpl()
1800 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_idt()
1808 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_idt()
1817 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_gdt()
1825 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_gdt()
1834 struct vcpu_svm *svm = to_svm(vcpu); in sev_post_set_cr3()
1857 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_cr0()
1933 to_svm(vcpu)->vmcb->save.cr4 = cr4; in svm_set_cr4()
1934 vmcb_mark_dirty(to_svm(vcpu)->vmcb, VMCB_CR); in svm_set_cr4()
1943 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_segment()
1973 struct vcpu_svm *svm = to_svm(vcpu); in svm_update_exception_bitmap()
2011 struct vcpu_svm *svm = to_svm(vcpu); in svm_sync_dirty_debug_regs()
2032 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_dr7()
2043 struct vcpu_svm *svm = to_svm(vcpu); in pf_interception()
2056 struct vcpu_svm *svm = to_svm(vcpu); in npf_interception()
2089 struct vcpu_svm *svm = to_svm(vcpu); in db_interception()
2121 struct vcpu_svm *svm = to_svm(vcpu); in bp_interception()
2209 struct vcpu_svm *svm = to_svm(vcpu); in shutdown_interception()
2234 struct vcpu_svm *svm = to_svm(vcpu); in io_interception()
2275 struct vcpu_svm *svm = to_svm(vcpu); in vmload_vmsave_interception()
2366 struct vcpu_svm *svm = to_svm(vcpu); in emulate_svm_instr()
2389 struct vcpu_svm *svm = to_svm(vcpu); in gp_interception()
2468 svm_set_gif(to_svm(vcpu), true); in stgi_interception()
2480 svm_set_gif(to_svm(vcpu), false); in clgi_interception()
2493 trace_kvm_invlpga(to_svm(vcpu)->vmcb->save.rip, asid, gva); in invlpga_interception()
2503 trace_kvm_skinit(to_svm(vcpu)->vmcb->save.rip, kvm_rax_read(vcpu)); in skinit_interception()
2511 struct vcpu_svm *svm = to_svm(vcpu); in task_switch_interception()
2589 struct vcpu_svm *svm = to_svm(vcpu); in iret_interception()
2608 kvm_mmu_invlpg(vcpu, to_svm(vcpu)->vmcb->control.exit_info_1); in invlpg_interception()
2625 struct vcpu_svm *svm = to_svm(vcpu); in check_selective_cr0_intercepted()
2648 struct vcpu_svm *svm = to_svm(vcpu); in cr_interception()
2722 struct vcpu_svm *svm = to_svm(vcpu); in cr_trap()
2757 struct vcpu_svm *svm = to_svm(vcpu); in dr_interception()
2822 msr_info.data = to_svm(vcpu)->vmcb->control.exit_info_1 & ~EFER_SVME; in efer_trap()
2855 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_msr()
2974 struct vcpu_svm *svm = to_svm(vcpu); in svm_complete_emulated_msr()
2988 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_vm_cr()
3013 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_msr()
3222 if (to_svm(vcpu)->vmcb->control.exit_info_1) in msr_interception()
3231 svm_clear_vintr(to_svm(vcpu)); in interrupt_window_interception()
3269 struct vcpu_svm *svm = to_svm(vcpu); in invpcid_interception()
3367 struct vcpu_svm *svm = to_svm(vcpu); in dump_vmcb()
3530 struct vmcb_control_area *control = &to_svm(vcpu)->vmcb->control; in svm_get_exit_info()
3545 struct vcpu_svm *svm = to_svm(vcpu); in svm_handle_exit()
3589 struct vcpu_svm *svm = to_svm(vcpu); in pre_svm_run()
3612 struct vcpu_svm *svm = to_svm(vcpu); in svm_inject_nmi()
3633 struct vcpu_svm *svm = to_svm(vcpu); in svm_is_vnmi_pending()
3643 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_vnmi_pending()
3666 struct vcpu_svm *svm = to_svm(vcpu); in svm_inject_irq()
3738 struct vcpu_svm *svm = to_svm(vcpu); in svm_update_cr8_intercept()
3761 struct vcpu_svm *svm = to_svm(vcpu); in svm_get_nmi_mask()
3771 struct vcpu_svm *svm = to_svm(vcpu); in svm_set_nmi_mask()
3790 struct vcpu_svm *svm = to_svm(vcpu); in svm_nmi_blocked()
3807 struct vcpu_svm *svm = to_svm(vcpu); in svm_nmi_allowed()
3822 struct vcpu_svm *svm = to_svm(vcpu); in svm_interrupt_blocked()
3848 struct vcpu_svm *svm = to_svm(vcpu); in svm_interrupt_allowed()
3868 struct vcpu_svm *svm = to_svm(vcpu); in svm_enable_irq_window()
3898 struct vcpu_svm *svm = to_svm(vcpu); in svm_enable_nmi_window()
3953 struct vcpu_svm *svm = to_svm(vcpu); in svm_flush_tlb_asid()
4008 struct vcpu_svm *svm = to_svm(vcpu); in svm_flush_tlb_gva()
4015 struct vcpu_svm *svm = to_svm(vcpu); in sync_cr8_to_lapic()
4028 struct vcpu_svm *svm = to_svm(vcpu); in sync_lapic_to_cr8()
4045 struct vcpu_svm *svm = to_svm(vcpu); in svm_complete_soft_interrupt()
4074 struct vcpu_svm *svm = to_svm(vcpu); in svm_complete_interrupts()
4143 struct vcpu_svm *svm = to_svm(vcpu); in svm_cancel_injection()
4162 struct vcpu_svm *svm = to_svm(vcpu); in svm_exit_handlers_fastpath()
4184 struct vcpu_svm *svm = to_svm(vcpu); in svm_vcpu_enter_exit()
4202 struct vcpu_svm *svm = to_svm(vcpu); in svm_vcpu_run()
4331 struct vcpu_svm *svm = to_svm(vcpu); in svm_load_mmu_pgd()
4390 struct vcpu_svm *svm = to_svm(vcpu); in svm_vcpu_after_set_cpuid()
4514 struct vcpu_svm *svm = to_svm(vcpu); in svm_check_intercept()
4631 if (to_svm(vcpu)->vmcb->control.exit_code == SVM_EXIT_INTR) in svm_handle_exit_irqoff()
4644 struct vcpu_svm *svm = to_svm(vcpu); in svm_smi_blocked()
4655 struct vcpu_svm *svm = to_svm(vcpu); in svm_smi_allowed()
4671 struct vcpu_svm *svm = to_svm(vcpu); in svm_enter_smm()
4723 struct vcpu_svm *svm = to_svm(vcpu); in svm_leave_smm()
4785 struct vcpu_svm *svm = to_svm(vcpu); in svm_enable_smi_window()
4899 error_code = to_svm(vcpu)->vmcb->control.exit_info_1; in svm_check_emulate_instruction()
4946 struct vcpu_svm *svm = to_svm(vcpu); in svm_apic_init_signal_blocked()