]> www.infradead.org Git - nvme.git/commit
kvm: do not account temporary allocations to kmem
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 10 Jun 2024 10:31:21 +0000 (13:31 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2024 18:19:12 +0000 (14:19 -0400)
commitf474092c6fe1e2154a35308a1a1aef3212c3ecf2
tree7ca0bea9c81c710a28f2aeafcf02f18c4a8270c7
parentb018589013d6db43fdc894c635d6590e0a7e3285
kvm: do not account temporary allocations to kmem

Some allocations done by KVM are temporary, they are created as result
of program actions, but can't exists for arbitrary long times.

They should have been GFP_TEMPORARY (rip!).

OTOH, kvm-nx-lpage-recovery and kvm-pit kernel threads exist for as long
as VM exists but their task_struct memory is not accounted.
This is story for another day.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Message-ID: <c0122f66-f428-417e-a360-b25fc0f154a0@p183>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c