KVM: SVM: Account scratch allocations used to decrypt SEV guest memory
authorAnish Ghulati <aghulati@google.com>
Fri, 13 Jan 2023 22:09:23 +0000 (22:09 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:06:48 +0000 (10:06 -0800)
commita31b531cd2fa2e6b2a736833a94b990d5cf56b40
treea49c6a86c5e1d7504e83aeed7abb7ee83a47df02
parent36b0256789a72f4d9d173f1a37d6fcb5ded4c244
KVM: SVM: Account scratch allocations used to decrypt SEV guest memory

Account the temp/scratch allocation used to decrypt unaligned debug
accesses to SEV guest memory, the allocation is very much tied to the
target VM.

Reported-by: Mingwei Zhang <mizhang@google.com>
Signed-off-by: Anish Ghulati <aghulati@google.com>
Link: https://lore.kernel.org/r/20230113220923.2834699-1-aghulati@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c