[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/2] SVM: introduce a VM entry helper
On 30/04/18 12:37, Jan Beulich wrote: > --- a/xen/arch/x86/hvm/svm/entry.S > +++ b/xen/arch/x86/hvm/svm/entry.S > @@ -61,24 +61,14 @@ UNLIKELY_START(ne, nsvm_hap) > jmp .Lsvm_do_resume > __UNLIKELY_END(nsvm_hap) > > - call svm_asid_handle_vmrun > + mov %rsp, %rdi > + call svm_vmenter_helper > > cmpb $0,tb_init_done(%rip) > UNLIKELY_START(nz, svm_trace) > call svm_trace_vmentry > UNLIKELY_END(svm_trace) This trace call can also be moved up into C, at which point you can fold svm_trace_vmentry() (which is a 1-liner anyway) into svm_vmenter_helper() which would be its sole caller. Otherwise, Reivewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > > - mov VCPU_svm_vmcb(%rbx),%rcx > - mov UREGS_rax(%rsp),%rax > - mov %rax,VMCB_rax(%rcx) > - mov UREGS_rip(%rsp),%rax > - mov %rax,VMCB_rip(%rcx) > - mov UREGS_rsp(%rsp),%rax > - mov %rax,VMCB_rsp(%rcx) > - mov UREGS_eflags(%rsp),%rax > - or $X86_EFLAGS_MBS,%rax > - mov %rax,VMCB_rflags(%rcx) > - > mov VCPU_arch_msr(%rbx), %rax > mov VCPUMSR_spec_ctrl_raw(%rax), %eax > > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |