yeahuh / rpms / qemu-kvm

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