qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Add -name option


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH] Add -name option
Date: Sun, 04 Mar 2007 11:30:37 +0200
User-agent: Thunderbird 1.5.0.9 (X11/20070212)

Anthony Liguori wrote:
This option helps differentiate between guests when running more than one instance of QEMU. It adds a string to the SDL window title and to the VNC server title.

Having a name associated with a guest is also terribly useful for management tools as it gives a standard way to identify guests to the user.

- vnc_write_u32(vs, 4); - vnc_write(vs, "QEMU", 4); + if (qemu_name) + size = snprintf(buf, sizeof(buf), "QEMU (%s)", qemu_name);
+    else
+       size = snprintf(buf, sizeof(buf), "QEMU");
+

Perhaps in the modern style:

   snprintf("%s - QEMU", sizeof, qemu_name)

?

--
Do not meddle in the internals of kernels, for they are subtle and quick to 
panic.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]