Blame SOURCES/0014-Add-support-statement-to-help-output.patch

357786
From e93d5457df2dde297089b44d185f5fe5b608d744 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)
357786
(cherry picked from commit 5dd2f4706e2fef945771949e59a8fcc1b5452de9)
357786
(cherry picked from commit d660aafa98635de49f7f7a416a4e910d99b10bce)
357786
(cherry picked from commit 6a5d4b1f602318a5b6f4e49bed90624c67848629)
357786
(cherry picked from commit 506816e81f899d3daa6202e50ef12a21dcee7b96)
9bac43
---
9bac43
 vl.c | 9 +++++++++
9bac43
 1 file changed, 9 insertions(+)
9bac43
9bac43
diff --git a/vl.c b/vl.c
357786
index 8dee9d0..7fce42d 100644
9bac43
--- a/vl.c
9bac43
+++ b/vl.c
357786
@@ -1953,9 +1953,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());
357786
@@ -1972,6 +1980,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