KVM: x86: Account a variety of miscellaneous allocations
authorSean Christopherson <seanjc@google.com>
Wed, 31 Mar 2021 02:30:25 +0000 (19:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 17 Apr 2021 12:30:58 +0000 (08:30 -0400)
commiteba04b20e4861d9bdbd8470a13c0c6e824521a36
treec93b511817558b628b040b6d08e005af01d5ab3b
parent8727906fde6ea665b52e68ddc58833772537f40a
KVM: x86: Account a variety of miscellaneous allocations

Switch to GFP_KERNEL_ACCOUNT for a handful of allocations that are
clearly associated with a single task/VM.

Note, there are a several SEV allocations that aren't accounted, but
those can (hopefully) be fixed by using the local stack for memory.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210331023025.2485960-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/sev.c
arch/x86/kvm/vmx/vmx.c