Lines Matching refs:save
345 svm->vmcb->save.efer = efer | EFER_SVME; in svm_set_efer()
391 old_rflags = svm->vmcb->save.rflags; in __svm_skip_emulated_instruction()
397 svm->vmcb->save.rflags = old_rflags; in __svm_skip_emulated_instruction()
446 svm->soft_int_csbase = svm->vmcb->save.cs.base; in svm_update_soft_interrupt_rip()
989 to_vmcb->save.dbgctl = from_vmcb->save.dbgctl; in svm_copy_lbrs()
990 to_vmcb->save.br_from = from_vmcb->save.br_from; in svm_copy_lbrs()
991 to_vmcb->save.br_to = from_vmcb->save.br_to; in svm_copy_lbrs()
992 to_vmcb->save.last_excp_from = from_vmcb->save.last_excp_from; in svm_copy_lbrs()
993 to_vmcb->save.last_excp_to = from_vmcb->save.last_excp_to; in svm_copy_lbrs()
1051 bool enable_lbrv = (svm_get_lbr_vmcb(svm)->save.dbgctl & DEBUGCTLMSR_LBR) || in svm_update_lbrv()
1071 svm->vmcb->save.rflags &= ~X86_EFLAGS_TF; in disable_nmi_singlestep()
1073 svm->vmcb->save.rflags &= ~X86_EFLAGS_RF; in disable_nmi_singlestep()
1241 struct vmcb_save_area *save = &vmcb->save; in init_vmcb() local
1308 init_seg(&save->es); in init_vmcb()
1309 init_seg(&save->ss); in init_vmcb()
1310 init_seg(&save->ds); in init_vmcb()
1311 init_seg(&save->fs); in init_vmcb()
1312 init_seg(&save->gs); in init_vmcb()
1314 save->cs.selector = 0xf000; in init_vmcb()
1315 save->cs.base = 0xffff0000; in init_vmcb()
1317 save->cs.attrib = SVM_SELECTOR_READ_MASK | SVM_SELECTOR_P_MASK | in init_vmcb()
1319 save->cs.limit = 0xffff; in init_vmcb()
1321 save->gdtr.base = 0; in init_vmcb()
1322 save->gdtr.limit = 0xffff; in init_vmcb()
1323 save->idtr.base = 0; in init_vmcb()
1324 save->idtr.limit = 0xffff; in init_vmcb()
1326 init_sys_seg(&save->ldtr, SEG_TYPE_LDT); in init_vmcb()
1327 init_sys_seg(&save->tr, SEG_TYPE_BUSY_TSS16); in init_vmcb()
1336 save->g_pat = vcpu->arch.pat; in init_vmcb()
1337 save->cr3 = 0; in init_vmcb()
1583 unsigned long rflags = svm->vmcb->save.rflags; in svm_get_rflags()
1605 to_svm(vcpu)->vmcb->save.rflags = rflags; in svm_set_rflags()
1691 struct vmcb_save_area *save = &to_svm(vcpu)->vmcb->save; in svm_seg() local
1692 struct vmcb_save_area *save01 = &to_svm(vcpu)->vmcb01.ptr->save; in svm_seg()
1695 case VCPU_SREG_CS: return &save->cs; in svm_seg()
1696 case VCPU_SREG_DS: return &save->ds; in svm_seg()
1697 case VCPU_SREG_ES: return &save->es; in svm_seg()
1700 case VCPU_SREG_SS: return &save->ss; in svm_seg()
1779 var->dpl = to_svm(vcpu)->vmcb->save.cpl; in svm_get_segment()
1786 struct vmcb_save_area *save = &to_svm(vcpu)->vmcb->save; in svm_get_cpl() local
1788 return save->cpl; in svm_get_cpl()
1804 dt->size = svm->vmcb->save.idtr.limit; in svm_get_idt()
1805 dt->address = svm->vmcb->save.idtr.base; in svm_get_idt()
1812 svm->vmcb->save.idtr.limit = dt->size; in svm_set_idt()
1813 svm->vmcb->save.idtr.base = dt->address ; in svm_set_idt()
1821 dt->size = svm->vmcb->save.gdtr.limit; in svm_get_gdt()
1822 dt->address = svm->vmcb->save.gdtr.base; in svm_get_gdt()
1829 svm->vmcb->save.gdtr.limit = dt->size; in svm_set_gdt()
1830 svm->vmcb->save.gdtr.base = dt->address ; in svm_set_gdt()
1847 svm->vmcb->save.cr3 = cr3; in sev_post_set_cr3()
1868 svm->vmcb->save.efer |= EFER_LMA | EFER_LME; in svm_set_cr0()
1874 svm->vmcb->save.efer &= ~(EFER_LMA | EFER_LME); in svm_set_cr0()
1894 svm->vmcb->save.cr0 = hcr0; in svm_set_cr0()
1935 to_svm(vcpu)->vmcb->save.cr4 = cr4; in svm_set_cr4()
1968 svm->vmcb->save.cpl = (var->dpl & 3); in svm_set_segment()
2005 if (unlikely(value != vmcb->save.dr6)) { in svm_set_dr6()
2006 vmcb->save.dr6 = value; in svm_set_dr6()
2026 vcpu->arch.dr6 = svm->vmcb->save.dr6; in svm_sync_dirty_debug_regs()
2027 vcpu->arch.dr7 = svm->vmcb->save.dr7; in svm_sync_dirty_debug_regs()
2039 svm->vmcb->save.dr7 = value; in svm_set_dr7()
2096 u32 payload = svm->vmcb->save.dr6 ^ DR6_ACTIVE_LOW; in db_interception()
2110 kvm_run->debug.arch.dr6 = svm->vmcb->save.dr6; in db_interception()
2111 kvm_run->debug.arch.dr7 = svm->vmcb->save.dr7; in db_interception()
2113 svm->vmcb->save.cs.base + svm->vmcb->save.rip; in db_interception()
2127 kvm_run->debug.arch.pc = svm->vmcb->save.cs.base + svm->vmcb->save.rip; in bp_interception()
2285 ret = kvm_vcpu_map(vcpu, gpa_to_gfn(svm->vmcb->save.rax), &map); in vmload_vmsave_interception()
2418 if (svm->vmcb->save.rax & ~PAGE_MASK) in gp_interception()
2495 trace_kvm_invlpga(to_svm(vcpu)->vmcb->save.rip, asid, gva); in invlpga_interception()
2505 trace_kvm_skinit(to_svm(vcpu)->vmcb->save.rip, kvm_rax_read(vcpu)); in skinit_interception()
2872 msr_info->data = svm->vmcb01.ptr->save.star; in svm_get_msr()
2876 msr_info->data = svm->vmcb01.ptr->save.lstar; in svm_get_msr()
2879 msr_info->data = svm->vmcb01.ptr->save.cstar; in svm_get_msr()
2882 msr_info->data = svm->vmcb01.ptr->save.gs.base; in svm_get_msr()
2885 msr_info->data = svm->vmcb01.ptr->save.fs.base; in svm_get_msr()
2888 msr_info->data = svm->vmcb01.ptr->save.kernel_gs_base; in svm_get_msr()
2891 msr_info->data = svm->vmcb01.ptr->save.sfmask; in svm_get_msr()
2895 msr_info->data = svm->vmcb01.ptr->save.sysenter_cs; in svm_get_msr()
2898 msr_info->data = (u32)svm->vmcb01.ptr->save.sysenter_eip; in svm_get_msr()
2903 msr_info->data = svm->vmcb01.ptr->save.sysenter_esp; in svm_get_msr()
2911 msr_info->data = svm_get_lbr_vmcb(svm)->save.dbgctl; in svm_get_msr()
2914 msr_info->data = svm_get_lbr_vmcb(svm)->save.br_from; in svm_get_msr()
2917 msr_info->data = svm_get_lbr_vmcb(svm)->save.br_to; in svm_get_msr()
2920 msr_info->data = svm_get_lbr_vmcb(svm)->save.last_excp_from; in svm_get_msr()
2923 msr_info->data = svm_get_lbr_vmcb(svm)->save.last_excp_to; in svm_get_msr()
2937 msr_info->data = svm->vmcb->save.spec_ctrl; in svm_get_msr()
3059 svm->vmcb01.ptr->save.g_pat = data; in svm_set_msr()
3073 svm->vmcb->save.spec_ctrl = data; in svm_set_msr()
3103 svm->vmcb01.ptr->save.star = data; in svm_set_msr()
3107 svm->vmcb01.ptr->save.lstar = data; in svm_set_msr()
3110 svm->vmcb01.ptr->save.cstar = data; in svm_set_msr()
3113 svm->vmcb01.ptr->save.gs.base = data; in svm_set_msr()
3116 svm->vmcb01.ptr->save.fs.base = data; in svm_set_msr()
3119 svm->vmcb01.ptr->save.kernel_gs_base = data; in svm_set_msr()
3122 svm->vmcb01.ptr->save.sfmask = data; in svm_set_msr()
3126 svm->vmcb01.ptr->save.sysenter_cs = data; in svm_set_msr()
3129 svm->vmcb01.ptr->save.sysenter_eip = (u32)data; in svm_set_msr()
3140 svm->vmcb01.ptr->save.sysenter_esp = (u32)data; in svm_set_msr()
3175 svm_get_lbr_vmcb(svm)->save.dbgctl = data; in svm_set_msr()
3362 struct vmcb_save_area *save = &svm->vmcb->save; in dump_vmcb() local
3363 struct vmcb_save_area *save01 = &svm->vmcb01.ptr->save; in dump_vmcb()
3412 save->es.selector, save->es.attrib, in dump_vmcb()
3413 save->es.limit, save->es.base); in dump_vmcb()
3416 save->cs.selector, save->cs.attrib, in dump_vmcb()
3417 save->cs.limit, save->cs.base); in dump_vmcb()
3420 save->ss.selector, save->ss.attrib, in dump_vmcb()
3421 save->ss.limit, save->ss.base); in dump_vmcb()
3424 save->ds.selector, save->ds.attrib, in dump_vmcb()
3425 save->ds.limit, save->ds.base); in dump_vmcb()
3436 save->gdtr.selector, save->gdtr.attrib, in dump_vmcb()
3437 save->gdtr.limit, save->gdtr.base); in dump_vmcb()
3444 save->idtr.selector, save->idtr.attrib, in dump_vmcb()
3445 save->idtr.limit, save->idtr.base); in dump_vmcb()
3451 save->vmpl, save->cpl, save->efer); in dump_vmcb()
3453 "cr0:", save->cr0, "cr2:", save->cr2); in dump_vmcb()
3455 "cr3:", save->cr3, "cr4:", save->cr4); in dump_vmcb()
3457 "dr6:", save->dr6, "dr7:", save->dr7); in dump_vmcb()
3459 "rip:", save->rip, "rflags:", save->rflags); in dump_vmcb()
3461 "rsp:", save->rsp, "rax:", save->rax); in dump_vmcb()
3473 "gpat:", save->g_pat, "dbgctl:", save->dbgctl); in dump_vmcb()
3475 "br_from:", save->br_from, "br_to:", save->br_to); in dump_vmcb()
3477 "excp_from:", save->last_excp_from, in dump_vmcb()
3478 "excp_to:", save->last_excp_to); in dump_vmcb()
3545 vcpu->arch.cr0 = svm->vmcb->save.cr0; in svm_handle_exit()
3547 vcpu->arch.cr3 = svm->vmcb->save.cr3; in svm_handle_exit()
3824 ? !(svm->vmcb01.ptr->save.rflags & X86_EFLAGS_IF) in svm_interrupt_blocked()
3941 svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); in svm_enable_nmi_window()
4200 svm->vmcb->save.rax = vcpu->arch.regs[VCPU_REGS_RAX]; in svm_vcpu_run()
4201 svm->vmcb->save.rsp = vcpu->arch.regs[VCPU_REGS_RSP]; in svm_vcpu_run()
4202 svm->vmcb->save.rip = vcpu->arch.regs[VCPU_REGS_RIP]; in svm_vcpu_run()
4231 svm->vmcb->save.cr2 = vcpu->arch.cr2; in svm_vcpu_run()
4264 vcpu->arch.cr2 = svm->vmcb->save.cr2; in svm_vcpu_run()
4265 vcpu->arch.regs[VCPU_REGS_RAX] = svm->vmcb->save.rax; in svm_vcpu_run()
4266 vcpu->arch.regs[VCPU_REGS_RSP] = svm->vmcb->save.rsp; in svm_vcpu_run()
4267 vcpu->arch.regs[VCPU_REGS_RIP] = svm->vmcb->save.rip; in svm_vcpu_run()
4342 svm->vmcb->save.cr3 = cr3; in svm_load_mmu_pgd()
4682 svm->vmcb->save.rax = vcpu->arch.regs[VCPU_REGS_RAX]; in svm_enter_smm()
4683 svm->vmcb->save.rsp = vcpu->arch.regs[VCPU_REGS_RSP]; in svm_enter_smm()
4684 svm->vmcb->save.rip = vcpu->arch.regs[VCPU_REGS_RIP]; in svm_enter_smm()
4705 BUILD_BUG_ON(offsetof(struct vmcb, save) != 0x400); in svm_enter_smm()
4708 &svm->vmcb01.ptr->save); in svm_enter_smm()
4751 svm_copy_vmrun_state(&svm->vmcb01.ptr->save, map_save.hva + 0x400); in svm_leave_smm()
4761 nested_copy_vmcb_save_to_cache(svm, &vmcb12->save); in svm_leave_smm()