[PATCH v3 10/62] KVM: SVM: Add helper to deduplicate code for getting AVIC backing page
Naveen N Rao
naveen at kernel.org
Fri Jun 13 07:38:26 PDT 2025
On Wed, Jun 11, 2025 at 03:45:13PM -0700, Sean Christopherson wrote:
> Add a helper to get the physical address of the AVIC backing page, both
> to deduplicate code and to prepare for getting the address directly from
> apic->regs, at which point it won't be all that obvious that the address
> in question is what SVM calls the AVIC backing page.
>
> No functional change intended.
>
> Reviewed-by: Maxim Levitsky <mlevitsk at redhat.com>
> Tested-by: Sairaj Kodilkar <sarunkod at amd.com>
> Signed-off-by: Sean Christopherson <seanjc at google.com>
> ---
> arch/x86/kvm/svm/avic.c | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
LGTM.
Reviewed-by: Naveen N Rao (AMD) <naveen at kernel.org>
- Naveen
More information about the linux-arm-kernel
mailing list