thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
ff9ada
From b736b0c41dd62ed6f874a7b33ca1d4f9ceab4573 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
---
ff9ada
 softmmu/vl.c | 9 +++++++++
ae23c9
 1 file changed, 9 insertions(+)
ae23c9
ff9ada
diff --git a/softmmu/vl.c b/softmmu/vl.c
ff9ada
index 620a1f1367..d46b8fb4ab 100644
ff9ada
--- a/softmmu/vl.c
ff9ada
+++ b/softmmu/vl.c
ff9ada
@@ -827,9 +827,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());
ff9ada
@@ -855,6 +863,7 @@ static void help(int exitcode)
ae23c9
            "\n"
ae23c9
            QEMU_HELP_BOTTOM "\n");
ae23c9
 
ae23c9
+    print_rh_warning();
ae23c9
     exit(exitcode);
ae23c9
 }
ae23c9
 
ae23c9
-- 
ff9ada
2.27.0
ae23c9