From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/5] Add -uuid command line option.
Date: Thu, 05 Jun 2008 10:13:24 -0500 [thread overview]
Message-ID: <48480294.4040405@codemonkey.ws> (raw)
In-Reply-To: <20080605083541.11678.90045.stgit@gleb-debian.qumranet.com.qumranet.com>
Gleb Natapov wrote:
> Let user specify UUID of the virtual machine.
>
Looks good to me. Note, this is a very common feature request for
management tools running agents within a guest. They need to have a
unique identifier to be able to correlate guests with hosts. Normally,
this would be exposed via DMI tables but that's an obvious extension.
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Regards,
Anthony Liguori
> Signed-off-by: Gleb Natapov <gleb@qumranet.com>
> ---
>
> vl.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index 18ddcce..8e9e841 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -240,6 +240,8 @@ static CPUState *cur_cpu;
> static CPUState *next_cpu;
> static int event_pending = 1;
>
> +const char *qemu_uuid_str;
> +
> #define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
>
> /***********************************************************/
> @@ -7195,6 +7197,7 @@ static void help(int exitcode)
> "-g WxH[xDEPTH] Set the initial graphical resolution and depth\n"
> #endif
> "-name string set the name of the guest\n"
> + "-uuid %%08x-%%04x-%%04x-%%04x-%%012x specify machine UUID\n"
> "\n"
> "Network options:\n"
> "-net nic[,vlan=n][,macaddr=addr][,model=type]\n"
> @@ -7379,6 +7382,7 @@ enum {
> QEMU_OPTION_clock,
> QEMU_OPTION_startdate,
> QEMU_OPTION_tb_size,
> + QEMU_OPTION_uuid,
> };
>
> typedef struct QEMUOption {
> @@ -7467,6 +7471,7 @@ const QEMUOption qemu_options[] = {
> #ifdef CONFIG_CURSES
> { "curses", 0, QEMU_OPTION_curses },
> #endif
> + { "uuid", HAS_ARG, QEMU_OPTION_uuid },
>
> /* temporary options */
> { "usb", 0, QEMU_OPTION_usb },
> @@ -8227,6 +8232,9 @@ int main(int argc, char **argv)
> case QEMU_OPTION_show_cursor:
> cursor_hide = 0;
> break;
> + case QEMU_OPTION_uuid:
> + qemu_uuid_str = optarg;
> + break;
> case QEMU_OPTION_daemonize:
> daemonize = 1;
> break;
>
>
>
>
next prev parent reply other threads:[~2008-06-05 15:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-05 8:35 [Qemu-devel] [PATCH 1/5] Add OUT support to vmport Gleb Natapov
2008-06-05 8:35 ` [Qemu-devel] [PATCH 2/5] Add -uuid command line option Gleb Natapov
2008-06-05 15:13 ` Anthony Liguori [this message]
2008-06-05 8:35 ` [Qemu-devel] [PATCH 3/5] Add "info uuid" command to monitor Gleb Natapov
2008-06-05 15:14 ` Anthony Liguori
2008-06-05 8:35 ` [Qemu-devel] [PATCH 4/5] Use libuuid if available Gleb Natapov
2008-06-05 15:18 ` Anthony Liguori
2008-06-05 20:20 ` Gleb Natapov
2008-06-05 20:27 ` Anthony Liguori
2008-06-05 22:22 ` Paul Brook
2008-06-06 0:18 ` Anthony Liguori
2008-06-06 9:18 ` Daniel P. Berrange
2008-06-05 8:35 ` [Qemu-devel] [PATCH 5/5] Add support for UUID query to vmport interface Gleb Natapov
2008-06-05 15:19 ` Anthony Liguori
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=48480294.4040405@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).