|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Allow setting qemu process name |
Date: | Wed, 01 Jul 2009 08:29:22 -0500 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
Andi Kleen wrote:
[this is a port of a old KVM userland patch I had; Avi back then suggested to submit it to qemu]Set the Linux process name to the name argument specified with "-name". I find this useful to see which guests are taking CPU time in top.
This is not a bad idea but it has to be optional and non-default. Maybe a new command line option?
/***************/ /* ballooning */ @@ -6008,11 +6022,15 @@ int main(int argc, char **argv, char **envp) if (kvm_enabled()) { int ret;+ set_proc_name("kvm", qemu_name);+ ret = kvm_init(smp_cpus); if (ret < 0) { fprintf(stderr, "failed to initialize KVM\n"); exit(1); } + } else { + set_proc_name("qemu", qemu_name); }
I'd rather see qemu be the prefix unconditionally. Regards, Anthony Liguori
if (monitor_device) {
[Prev in Thread] | Current Thread | [Next in Thread] |