Lines Matching +full:0 +full:x170
48 memset(svm->msr_hva, 0, getpagesize()); in vcpu_alloc_svm()
79 memset(vmcb, 0, sizeof(*vmcb)); in generic_svm_setup()
80 asm volatile ("vmsave %0\n\t" : : "a" (vmcb_gpa) : "memory"); in generic_svm_setup()
81 vmcb_set_seg(&save->es, get_es(), 0, -1U, data_seg_attr); in generic_svm_setup()
82 vmcb_set_seg(&save->cs, get_cs(), 0, -1U, code_seg_attr); in generic_svm_setup()
83 vmcb_set_seg(&save->ss, get_ss(), 0, -1U, data_seg_attr); in generic_svm_setup()
84 vmcb_set_seg(&save->ds, get_ds(), 0, -1U, data_seg_attr); in generic_svm_setup()
85 vmcb_set_seg(&save->gdtr, 0, get_gdt().address, get_gdt().size, 0); in generic_svm_setup()
86 vmcb_set_seg(&save->idtr, 0, get_idt().address, get_idt().size, 0); in generic_svm_setup()
89 save->cpl = 0; in generic_svm_setup()
91 asm volatile ("mov %%cr4, %0" : "=r"(save->cr4) : : "memory"); in generic_svm_setup()
92 asm volatile ("mov %%cr3, %0" : "=r"(save->cr3) : : "memory"); in generic_svm_setup()
93 asm volatile ("mov %%cr0, %0" : "=r"(save->cr0) : : "memory"); in generic_svm_setup()
94 asm volatile ("mov %%dr7, %0" : "=r"(save->dr7) : : "memory"); in generic_svm_setup()
95 asm volatile ("mov %%dr6, %0" : "=r"(save->dr6) : : "memory"); in generic_svm_setup()
96 asm volatile ("mov %%cr2, %0" : "=r"(save->cr2) : : "memory"); in generic_svm_setup()
113 "xchg %%rbx, guest_regs+0x20\n\t" \
114 "xchg %%rcx, guest_regs+0x10\n\t" \
115 "xchg %%rdx, guest_regs+0x18\n\t" \
116 "xchg %%rbp, guest_regs+0x30\n\t" \
117 "xchg %%rsi, guest_regs+0x38\n\t" \
118 "xchg %%rdi, guest_regs+0x40\n\t" \
119 "xchg %%r8, guest_regs+0x48\n\t" \
120 "xchg %%r9, guest_regs+0x50\n\t" \
121 "xchg %%r10, guest_regs+0x58\n\t" \
122 "xchg %%r11, guest_regs+0x60\n\t" \
123 "xchg %%r12, guest_regs+0x68\n\t" \
124 "xchg %%r13, guest_regs+0x70\n\t" \
125 "xchg %%r14, guest_regs+0x78\n\t" \
126 "xchg %%r15, guest_regs+0x80\n\t"
140 "mov %%r15, 0x170(%[vmcb])\n\t" in run_guest()
142 "mov %%r15, 0x1f8(%[vmcb])\n\t" in run_guest()
146 "mov 0x170(%[vmcb]), %%r15\n\t" // rflags in run_guest()
148 "mov 0x1f8(%[vmcb]), %%r15\n\t" // rax in run_guest()
163 return open_path_or_exit(SEV_DEV_PATH, 0); in open_sev_dev_path_or_exit()