yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
ddf19c
From 2754dd8da8975757753fd491985d5e7b36966106 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)
ddf19c
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 vl.c | 9 +++++++++
ae23c9
 1 file changed, 9 insertions(+)
ae23c9
ae23c9
diff --git a/vl.c b/vl.c
ddf19c
index 668a34577e..9f3e7e7733 100644
ae23c9
--- a/vl.c
ae23c9
+++ b/vl.c
ddf19c
@@ -1822,9 +1822,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());
ddf19c
@@ -1841,6 +1849,7 @@ static void help(int exitcode)
ae23c9
            "\n"
ae23c9
            QEMU_HELP_BOTTOM "\n");
ae23c9
 
ae23c9
+    print_rh_warning();
ae23c9
     exit(exitcode);
ae23c9
 }
ae23c9
 
ae23c9
-- 
ddf19c
2.21.0
ae23c9