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