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