public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: account allocation in generic version of kvm_arch_alloc_vm()
@ 2022-11-17 20:34 Alexey Dobriyan
  2022-11-18 17:30 ` Sean Christopherson
  2023-01-19 21:04 ` Sean Christopherson
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2022-11-17 20:34 UTC (permalink / raw)
  To: pbonzini; +Cc: kvm, adobriyan

This is persistent allocation and arch-specific versions account it.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 include/linux/kvm_host.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -1466,7 +1466,7 @@ int kvm_arch_create_vm_debugfs(struct kvm *kvm);
  */
 static inline struct kvm *kvm_arch_alloc_vm(void)
 {
-	return kzalloc(sizeof(struct kvm), GFP_KERNEL);
+	return kzalloc(sizeof(struct kvm), GFP_KERNEL_ACCOUNT);
 }
 #endif
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-19 21:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-17 20:34 [PATCH] kvm: account allocation in generic version of kvm_arch_alloc_vm() Alexey Dobriyan
2022-11-18 17:30 ` Sean Christopherson
2023-01-19 21:04 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox