cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From 9eb0daf6079beade2bcc13d0062d90a7644685f5 Mon Sep 17 00:00:00 2001
218e99
From: Miroslav Rezanina <mrezanin@redhat.com>
218e99
Date: Wed, 31 Jul 2013 08:04:35 +0200
218e99
Subject: pc: Give rhel6.0.0 a kvmclock
218e99
218e99
Message-id: <1375201922-6794-10-git-send-email-armbru@redhat.com>
218e99
Patchwork-id: 52817
218e99
O-Subject: [RHEL-7 PATCH v3 09/15] pc: Give rhel6.0.0 a kvmclock
218e99
Bugzilla: 983991
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Bandan Das <bsd@redhat.com>
218e99
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
218e99
RHEL-6.0 inherited kvmclock from upstream qemu-kvm.  It later made its
218e99
way into upstream qemu (commit 0ec329d), and we switched to it in
218e99
RHEL-6.2 (commit 17ca2d2).
218e99
218e99
Since kvmclock was new in upstream qemu, the commit took care to
218e99
enable it only for new machine types.  Since it wasn't new in RHEL-6,
218e99
the backport dropped that part.
218e99
218e99
Drop it in RHEL-7, too.
218e99
218e99
Signed-off-by: Markus Armbruster <armbru@redhat.com>
218e99
218e99
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
218e99
index 57877e3..e48545b 100644
218e99
--- a/hw/i386/pc_piix.c
218e99
+++ b/hw/i386/pc_piix.c
218e99
@@ -931,20 +931,10 @@ static QEMUMachine pc_machine_rhel700 = {
218e99
 
218e99
 static void pc_init_rhel600(QEMUMachineInitArgs *args)
218e99
 {
218e99
-    ram_addr_t ram_size = args->ram_size;
218e99
-    const char *cpu_model = args->cpu_model;
218e99
-    const char *kernel_filename = args->kernel_filename;
218e99
-    const char *kernel_cmdline = args->kernel_cmdline;
218e99
-    const char *initrd_filename = args->initrd_filename;
218e99
-    const char *boot_device = args->boot_device;
218e99
     has_pvpanic = false;
218e99
     disable_kvm_pv_eoi();
218e99
     enable_compat_apic_id_mode();
218e99
-    pc_init1(get_system_memory(),
218e99
-             get_system_io(),
218e99
-             ram_size, boot_device,
218e99
-             kernel_filename, kernel_cmdline,
218e99
-             initrd_filename, cpu_model, 1, 0);
218e99
+    pc_init_rhel700(args);
218e99
 }
218e99
 
218e99
 static QEMUMachine pc_machine_rhel600 = {