From: Alexey Dobriyan <adobriyan@gmail.com>
To: pbonzini@redhat.com
Cc: kvm@vger.kernel.org, adobriyan@gmail.com
Subject: [PATCH] kvm: account allocation in generic version of kvm_arch_alloc_vm()
Date: Thu, 17 Nov 2022 23:34:19 +0300 [thread overview]
Message-ID: <Y3aay2u2KQgiR0un@p183> (raw)
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
next reply other threads:[~2022-11-17 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-17 20:34 Alexey Dobriyan [this message]
2022-11-18 17:30 ` [PATCH] kvm: account allocation in generic version of kvm_arch_alloc_vm() Sean Christopherson
2023-01-19 21:04 ` Sean Christopherson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y3aay2u2KQgiR0un@p183 \
--to=adobriyan@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox