|
|
9ae3a8 |
From a766091a8693181b77b0b1e3b5de9a05aab25c18 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9ae3a8 |
Date: Wed, 4 Dec 2013 18:53:17 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 01/16] Add support statement to -help output
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1386183197-27761-1-git-send-email-ehabkost@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 55994
|
|
|
9ae3a8 |
O-Subject: [qemu-kvm RHEL7 PATCH] Add support statement to -help output
|
|
|
9ae3a8 |
Bugzilla: 972773
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: knoel@redhat.com
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Bugzilla: 972773
|
|
|
9ae3a8 |
Brew scratch build: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6676272
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Add support statement to -help output, reporting direct qemu-kvm usage
|
|
|
9ae3a8 |
as unsupported by Red Hat, and advising users to use libvirt instead.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
vl.c | 9 +++++++++
|
|
|
9ae3a8 |
1 file changed, 9 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
vl.c | 9 +++++++++
|
|
|
9ae3a8 |
1 files changed, 9 insertions(+), 0 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/vl.c b/vl.c
|
|
|
9ae3a8 |
index 4a79f62..b9074c5 100644
|
|
|
9ae3a8 |
--- a/vl.c
|
|
|
9ae3a8 |
+++ b/vl.c
|
|
|
9ae3a8 |
@@ -1993,9 +1993,17 @@ static void version(void)
|
|
|
9ae3a8 |
printf("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n");
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
+static void print_rh_warning(void)
|
|
|
9ae3a8 |
+{
|
|
|
9ae3a8 |
+ printf("\nWARNING: Direct use of qemu-kvm from the command line is not supported by Red Hat.\n"
|
|
|
9ae3a8 |
+ "WARNING: Use libvirt as the stable management interface.\n"
|
|
|
9ae3a8 |
+ "WARNING: Some command line options listed here may not be available in future releases.\n\n");
|
|
|
9ae3a8 |
+}
|
|
|
9ae3a8 |
+
|
|
|
9ae3a8 |
static void help(int exitcode)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
version();
|
|
|
9ae3a8 |
+ print_rh_warning();
|
|
|
9ae3a8 |
printf("usage: %s [options] [disk_image]\n\n"
|
|
|
9ae3a8 |
"'disk_image' is a raw hard disk image for IDE hard disk 0\n\n",
|
|
|
9ae3a8 |
error_get_progname());
|
|
|
9ae3a8 |
@@ -2010,6 +2018,7 @@ static void help(int exitcode)
|
|
|
9ae3a8 |
"\n"
|
|
|
9ae3a8 |
"When using -nographic, press 'ctrl-a h' to get some help.\n");
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
+ print_rh_warning();
|
|
|
9ae3a8 |
exit(exitcode);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|