KVM: account allocation in generic version of kvm_arch_alloc_vm()
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 17 Nov 2022 20:34:19 +0000 (23:34 +0300)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:04:57 +0000 (10:04 -0800)
commitb1cd16330c8c6bc73e769b7b63e46cec2e292d6c
tree887d502738b061595b030f398c7a26c6b89ad409
parent7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f
KVM: account allocation in generic version of kvm_arch_alloc_vm()

Account the allocation of VMs in the generic version of
kvm_arch_alloc_vm(), the VM is tied to the current task/process.

Note, x86 already accounts its allocation.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/Y3aay2u2KQgiR0un@p183
[sean: reworded changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
include/linux/kvm_host.h