aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/svm/nested.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-01-06 01:12:42 +0000
committerPaolo Bonzini <[email protected]>2023-01-13 10:45:25 -0500
commitc482f2cebe2d169c43c75ca769bdeba16fce6036 (patch)
tree113483932becf2f518cb99f43990f67f69531ffe /arch/x86/kvm/svm/nested.c
parent1459f5c6b8b8dfbc16adf4844421d46459c9ab1f (diff)
KVM: x86: Move APIC access page helper to common x86 code
Move the APIC access page allocation helper function to common x86 code, the allocation routine is virtually identical between APICv (VMX) and AVIC (SVM). Keep APICv's gfn_to_page() + put_page() sequence, which verifies that a backing page can be allocated, i.e. that the system isn't under heavy memory pressure. Forcing the backing page to be populated isn't strictly necessary, but skipping the effective prefetch only delays the inevitable. Reviewed-by: Maxim Levitsky <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
0 files changed, 0 insertions, 0 deletions