Blob Blame History Raw
From 945b5f8093aa28267c53d106becab28fc42a9911 Mon Sep 17 00:00:00 2001
From: Miroslav Rezanina <mrezanin@redhat.com>
Date: Fri, 30 Aug 2013 08:51:25 +0200
Subject: Remove no-hpet option

RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
Message-id: <9d2bbee5227f35ee23da66a8689a9cd0faf545f1.1377851454.git.mrezanin@redhat.com>
Patchwork-id: 53936
O-Subject: [RHEL7 qemu-kvm PATCHv2 5/6] Remove no-hpet option
Bugzilla: 947441
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
RH-Acked-by: Michal Novotny <minovotn@redhat.com>

From: Miroslav Rezanina <mrezanin@redhat.com>

Bugzilla: 947441
Upstream: n/a, RHEL only

We disable HPET for RHEL, this patch removes option no-hpet that is
not usable.

Patch is forwardport of RHEL6 patch 1c07ac51 with small difference in
qemu-options.hx STEXI part of no-hpet is removed to keep man page
updated.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>

v2:
 - Remove only STEXI part

diff --git a/qemu-options.hx b/qemu-options.hx
index 1549625..1286904 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -1329,13 +1329,10 @@ it if your guest OS complains about ACPI problems (PC target machine
 only).
 ETEXI
 
+#if 0 /* Disabled for Red Hat Enterprise Linux */
 DEF("no-hpet", 0, QEMU_OPTION_no_hpet,
     "-no-hpet        disable HPET\n", QEMU_ARCH_I386)
-STEXI
-@item -no-hpet
-@findex -no-hpet
-Disable HPET support.
-ETEXI
+#endif
 
 DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable,
     "-acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,{data|file}=file1[:file2]...]\n"
diff --git a/vl.c b/vl.c
index a0a8630..4c1c3d4 100644
--- a/vl.c
+++ b/vl.c
@@ -161,7 +161,7 @@ int smp_threads = 1;
 const char *vnc_display;
 #endif
 int acpi_enabled = 1;
-int no_hpet = 0;
+int no_hpet = 1; /* Always disabled for Red Hat Enterprise Linux */
 int fd_bootchk = 1;
 static int no_reboot;
 int no_shutdown = 0;
@@ -3740,9 +3740,11 @@ int main(int argc, char **argv, char **envp)
             case QEMU_OPTION_no_acpi:
                 acpi_enabled = 0;
                 break;
+#if 0 /* Disabled for Red Hat Enterprise Linux */
             case QEMU_OPTION_no_hpet:
                 no_hpet = 1;
                 break;
+#endif
             case QEMU_OPTION_balloon:
                 if (balloon_parse(optarg) < 0) {
                     fprintf(stderr, "Unknown -balloon argument %s\n", optarg);