]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84df5436d22d9bd915945cafac582337bf3e66ad
treec93b511817558b628b040b6d08e005af01d5ab3b
parent044c11c859da05e495af1adb0b8eaaceb49f561c
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