lkml.org 
[lkml]   [2022]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 1/7] KVM: x86: nSVM: correctly virtualize LBR msrs when L2 is running
From
On 3/1/22 15:36, Maxim Levitsky wrote:
> +void svm_copy_lbrs(struct vmcb *from_vmcb, struct vmcb *to_vmcb)
> +{
> + to_vmcb->save.dbgctl = from_vmcb->save.dbgctl;
> + to_vmcb->save.br_from = from_vmcb->save.br_from;
> + to_vmcb->save.br_to = from_vmcb->save.br_to;
> + to_vmcb->save.last_excp_from = from_vmcb->save.last_excp_from;
> + to_vmcb->save.last_excp_to = from_vmcb->save.last_excp_to;
> +
> + vmcb_mark_dirty(to_vmcb, VMCB_LBR);
> +}
> +

I think "struct vmcb *to_vmcb, struct vmcb *from_vmcb" is more common
(e.g. svm_copy_vmrun_state, svm_copy_vmloadsave_state).

Paolo

\
 
 \ /
  Last update: 2022-03-09 14:01    [W:0.158 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site