thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
9ae3a8
From 196b2691b4d55361527b887ec7bc044d423b7757 Mon Sep 17 00:00:00 2001
9ae3a8
From: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
Date: Wed, 31 Jul 2013 08:04:01 +0200
9ae3a8
Subject: pc: Drop RHEL-6 compat_props {apic, kvm-apic}.vapic
9ae3a8
9ae3a8
Message-id: <1375201922-6794-8-git-send-email-armbru@redhat.com>
9ae3a8
Patchwork-id: 52816
9ae3a8
O-Subject: [RHEL-7 PATCH v3 07/15] pc: Drop RHEL-6 compat_props {apic, kvm-apic}.vapic
9ae3a8
Bugzilla: 983991
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Bandan Das <bsd@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
RHEL-6's kvm_arch_create() calls kvm_tpr_opt_setup() #ifdef
9ae3a8
KVM_EXIT_TPR_ACCESS, which is defined in RHEL-6.  Adds migration
9ae3a8
section "kvm-tpr-opt" when KVM is enabled.  Comes from qemu-kvm,
9ae3a8
initial commit 885e90b.
9ae3a8
9ae3a8
It went into upstream qemu v1.1.0, but in different form (commit
9ae3a8
e5ad936 "kvmvapic: Introduce TPR access optimization for Windows
9ae3a8
guests").  Here, migration section "kvm-tpr-opt" belongs to qdev
9ae3a8
"kvmvapic", which is created when the property kvm-apic.vapic
9ae3a8
(inherited from apic_common) is on.  Commit 9bea6a2 disables it for
9ae3a8
older machine types, with suitable compat_props.
9ae3a8
9ae3a8
Drop them from the RHEL-6 machine types.
9ae3a8
9ae3a8
Signed-off-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
9ae3a8
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
9ae3a8
index 5dffeb2..9e96b79 100644
9ae3a8
--- a/hw/i386/pc_piix.c
9ae3a8
+++ b/hw/i386/pc_piix.c
9ae3a8
@@ -900,10 +900,6 @@ static QEMUMachine pc_machine_rhel700 = {
9ae3a8
         .property = "class",\
9ae3a8
         .value    = stringify(PCI_CLASS_MEMORY_RAM),\
9ae3a8
     },{\
9ae3a8
-        .driver   = "apic",\
9ae3a8
-        .property = "vapic",\
9ae3a8
-        .value    = "off",\
9ae3a8
-    },{\
9ae3a8
         .driver   = "virtio-blk-pci",\
9ae3a8
         .property = "event_idx",\
9ae3a8
         .value    = "off",\