[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e38f0d14-419d-7b3d-4ce4-bd37200ba232@redhat.com>
Date: Wed, 9 Mar 2022 14:00:04 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Maxim Levitsky <mlevitsk@...hat.com>, kvm@...r.kernel.org
Cc: Ingo Molnar <mingo@...hat.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Sean Christopherson <seanjc@...gle.com>,
Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>,
Thomas Gleixner <tglx@...utronix.de>,
Jim Mattson <jmattson@...gle.com>, x86@...nel.org,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Joerg Roedel <joro@...tes.org>, linux-kernel@...r.kernel.org,
Wanpeng Li <wanpengli@...cent.com>
Subject: Re: [PATCH v3 1/7] KVM: x86: nSVM: correctly virtualize LBR msrs when
L2 is running
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
Powered by blists - more mailing lists