summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/nested.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-01-06 01:13:06 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2023-01-13 10:45:35 -0500
commit72c70ceeaf59330b1d63380add768bdbdeb24b7c (patch)
treed2d04a009b7f19201c3774148656f0092d0d817d /arch/x86/kvm/svm/nested.c
parentd471bd853d38117c90ec02ecc51b3ca731674745 (diff)
downloadlinux-stable-72c70ceeaf59330b1d63380add768bdbdeb24b7c.tar.gz
linux-stable-72c70ceeaf59330b1d63380add768bdbdeb24b7c.tar.bz2
linux-stable-72c70ceeaf59330b1d63380add768bdbdeb24b7c.zip
KVM: x86: Add helpers to recalc physical vs. logical optimized APIC maps
Move the guts of kvm_recalculate_apic_map()'s main loop to two separate helpers to handle recalculating the physical and logical pieces of the optimized map. Having 100+ lines of code in the for-loop makes it hard to understand what is being calculated where. No functional change intended. Suggested-by: Maxim Levitsky <mlevitsk@redhat.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20230106011306.85230-34-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
0 files changed, 0 insertions, 0 deletions