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: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Add -name option
Date: Sun, 04 Mar 2007 11:11:15 -0600
User-agent: Thunderbird 1.5.0.9 (X11/20070103)

Avi Kivity wrote:
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)

So right now we have:

QEMU
QEMU - Press Ctrl+Alt to exit grab

My patch would add:

QEMU (WinXP Home)
QEMU (WinXP Home) - Press Ctrl+Alt to exit grab

You're suggesting:

WinXP Home - QEMU
WinXP Home - QEMU - Press Ctrl+Alt to exit grab

I like yours for the first title but the SDL grab version seems a little strange. That's why I stuck it in ()s in the first place.

Anyone else have ideas?

Regards,

Anthony Liguori

?






reply via email to

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