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