|
|
ae23c9 |
From 9fad36498006352be79a39ca3428079b6b7ddcc9 Mon Sep 17 00:00:00 2001
|
|
|
ae23c9 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
Date: Wed, 4 Dec 2013 18:53:17 +0100
|
|
|
ae23c9 |
Subject: Add support statement to -help output
|
|
|
ae23c9 |
|
|
|
ae23c9 |
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
Message-id: <1386183197-27761-1-git-send-email-ehabkost@redhat.com>
|
|
|
ae23c9 |
Patchwork-id: 55994
|
|
|
ae23c9 |
O-Subject: [qemu-kvm RHEL7 PATCH] Add support statement to -help output
|
|
|
ae23c9 |
Bugzilla: 972773
|
|
|
ae23c9 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: knoel@redhat.com
|
|
|
ae23c9 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Add support statement to -help output, reporting direct qemu-kvm usage
|
|
|
ae23c9 |
as unsupported by Red Hat, and advising users to use libvirt instead.
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
(cherry picked from commit 2a07700936e39856cc9f149c6a6517f0715536a6)
|
|
|
ae23c9 |
(cherry picked from commit 5dd2f4706e2fef945771949e59a8fcc1b5452de9)
|
|
|
ae23c9 |
---
|
|
|
ae23c9 |
vl.c | 9 +++++++++
|
|
|
ae23c9 |
1 file changed, 9 insertions(+)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
diff --git a/vl.c b/vl.c
|
|
|
ae23c9 |
index 03950fc..8c89bee 100644
|
|
|
ae23c9 |
--- a/vl.c
|
|
|
ae23c9 |
+++ b/vl.c
|
|
|
ae23c9 |
@@ -1953,9 +1953,17 @@ static void version(void)
|
|
|
ae23c9 |
QEMU_COPYRIGHT "\n");
|
|
|
ae23c9 |
}
|
|
|
ae23c9 |
|
|
|
ae23c9 |
+static void print_rh_warning(void)
|
|
|
ae23c9 |
+{
|
|
|
ae23c9 |
+ printf("\nWARNING: Direct use of qemu-kvm from the command line is not supported by Red Hat.\n"
|
|
|
ae23c9 |
+ "WARNING: Use libvirt as the stable management interface.\n"
|
|
|
ae23c9 |
+ "WARNING: Some command line options listed here may not be available in future releases.\n\n");
|
|
|
ae23c9 |
+}
|
|
|
ae23c9 |
+
|
|
|
ae23c9 |
static void help(int exitcode)
|
|
|
ae23c9 |
{
|
|
|
ae23c9 |
version();
|
|
|
ae23c9 |
+ print_rh_warning();
|
|
|
ae23c9 |
printf("usage: %s [options] [disk_image]\n\n"
|
|
|
ae23c9 |
"'disk_image' is a raw hard disk image for IDE hard disk 0\n\n",
|
|
|
ae23c9 |
error_get_progname());
|
|
|
ae23c9 |
@@ -1972,6 +1980,7 @@ static void help(int exitcode)
|
|
|
ae23c9 |
"\n"
|
|
|
ae23c9 |
QEMU_HELP_BOTTOM "\n");
|
|
|
ae23c9 |
|
|
|
ae23c9 |
+ print_rh_warning();
|
|
|
ae23c9 |
exit(exitcode);
|
|
|
ae23c9 |
}
|
|
|
ae23c9 |
|
|
|
ae23c9 |
--
|
|
|
ae23c9 |
1.8.3.1
|
|
|
ae23c9 |
|