|
|
9ae3a8 |
From 45dc4ec297fdb6ba95e7a8c1f3d904fe88b0e282 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
9ae3a8 |
Date: Wed, 6 Nov 2013 16:32:37 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 78/81] hw/misc: don't create pvpanic device by default
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1383755557-21590-10-git-send-email-marcel.a@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 55554
|
|
|
9ae3a8 |
O-Subject: [RHEL-7 qemu-kvm PATCH v3 9/9] hw/misc: don't create pvpanic device by default
|
|
|
9ae3a8 |
Bugzilla: 990601
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
We don't need compatibility with 1.5 so we can simply
|
|
|
9ae3a8 |
revert the patch creating it by default.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
This patch:
|
|
|
9ae3a8 |
- reverts "pvpanic: create pvpanic by default for machine 1.5"
|
|
|
9ae3a8 |
- removes cannot_instantiate_with_device_add_yet flag
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Closest upstream commit (currently in qemu-devl-list):
|
|
|
9ae3a8 |
[Qemu-devel] [PATCH v2 1.7] pc: get rid of builtin pvpanic for "-M pc-1.5"
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Related upstream commit:
|
|
|
9ae3a8 |
commit 7f3e341a008c585deed174eaf1f826c88c67948a
|
|
|
9ae3a8 |
Author: Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
9ae3a8 |
Date: Sun Aug 11 18:10:42 2013 +0300
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
hw/misc: don't create pvpanic device by default
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
This patch is based on Hu Tao's:
|
|
|
9ae3a8 |
http://lists.nongnu.org/archive/html/qemu-devel/2013-08/msg00124.html
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
No need to hard-code pvpanic as part of the machine.
|
|
|
9ae3a8 |
It can be added with "-device pvpanic" from command line (The next patch).
|
|
|
9ae3a8 |
Anyway, for backport compatibility it is still part of 1.5
|
|
|
9ae3a8 |
machine.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Hu Tao <hutao@cn.fujitsu.com>
|
|
|
9ae3a8 |
Message-id: 1376233843-19410-2-git-send-email-marcel.a@redhat.com
|
|
|
9ae3a8 |
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
losest upstream patch:
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/i386/pc_piix.c | 12 ------------
|
|
|
9ae3a8 |
hw/i386/pc_q35.c | 6 ------
|
|
|
9ae3a8 |
hw/misc/pvpanic.c | 11 -----------
|
|
|
9ae3a8 |
3 files changed, 29 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/i386/pc_piix.c | 12 ------------
|
|
|
9ae3a8 |
hw/i386/pc_q35.c | 6 ------
|
|
|
9ae3a8 |
hw/misc/pvpanic.c | 11 -----------
|
|
|
9ae3a8 |
3 files changed, 0 insertions(+), 29 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
index 825a5b1..2d8e79f 100644
|
|
|
9ae3a8 |
--- a/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
+++ b/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
@@ -57,7 +57,6 @@ static const int ide_iobase[MAX_IDE_BUS] = { 0x1f0, 0x170 };
|
|
|
9ae3a8 |
static const int ide_iobase2[MAX_IDE_BUS] = { 0x3f6, 0x376 };
|
|
|
9ae3a8 |
static const int ide_irq[MAX_IDE_BUS] = { 14, 15 };
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
-static bool has_pvpanic = true;
|
|
|
9ae3a8 |
static bool smbios_type1_defaults = true;
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* PC hardware initialisation */
|
|
|
9ae3a8 |
@@ -227,10 +226,6 @@ static void pc_init1(QEMUMachineInitArgs *args,
|
|
|
9ae3a8 |
if (pci_enabled) {
|
|
|
9ae3a8 |
pc_pci_device_init(pci_bus);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
- if (has_pvpanic) {
|
|
|
9ae3a8 |
- pvpanic_init(isa_bus);
|
|
|
9ae3a8 |
- }
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static void pc_init_pci(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
@@ -242,7 +237,6 @@ static void pc_init_pci(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
|
|
|
9ae3a8 |
x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
|
|
|
9ae3a8 |
pc_init_pci(args);
|
|
|
9ae3a8 |
@@ -251,7 +245,6 @@ static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
static void pc_init_pci_1_3(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
enable_compat_apic_id_mode();
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
pc_init_pci(args);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -260,7 +253,6 @@ static void pc_init_pci_1_2(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
disable_kvm_pv_eoi();
|
|
|
9ae3a8 |
enable_compat_apic_id_mode();
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
pc_init_pci(args);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -269,14 +261,12 @@ static void pc_init_pci_1_0(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
disable_kvm_pv_eoi();
|
|
|
9ae3a8 |
enable_compat_apic_id_mode();
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
pc_init_pci(args);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* PC init function for pc-0.10 to pc-0.13, and reused by xenfv */
|
|
|
9ae3a8 |
static void pc_init_pci_no_kvmclock(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
disable_kvm_pv_eoi();
|
|
|
9ae3a8 |
enable_compat_apic_id_mode();
|
|
|
9ae3a8 |
pc_init1(args, get_system_memory(), get_system_io(), 1, 0);
|
|
|
9ae3a8 |
@@ -284,7 +274,6 @@ static void pc_init_pci_no_kvmclock(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static void pc_init_isa(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
if (!args->cpu_model) {
|
|
|
9ae3a8 |
args->cpu_model = "486";
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
@@ -931,7 +920,6 @@ static QEMUMachine pc_machine_rhel650 = {
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static void pc_init_rhel640(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
x86_cpu_compat_set_features(NULL, FEAT_1_EDX, 0, CPUID_SEP);
|
|
|
9ae3a8 |
pc_init_rhel650(args);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
9ae3a8 |
index 64995ac..f308098 100644
|
|
|
9ae3a8 |
--- a/hw/i386/pc_q35.c
|
|
|
9ae3a8 |
+++ b/hw/i386/pc_q35.c
|
|
|
9ae3a8 |
@@ -47,7 +47,6 @@
|
|
|
9ae3a8 |
/* ICH9 AHCI has 6 ports */
|
|
|
9ae3a8 |
#define MAX_SATA_PORTS 6
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
-static bool has_pvpanic = true;
|
|
|
9ae3a8 |
static bool smbios_type1_defaults = true;
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* PC hardware initialisation */
|
|
|
9ae3a8 |
@@ -205,17 +204,12 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
if (pci_enabled) {
|
|
|
9ae3a8 |
pc_pci_device_init(host_bus);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
- if (has_pvpanic) {
|
|
|
9ae3a8 |
- pvpanic_init(isa_bus);
|
|
|
9ae3a8 |
- }
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static void pc_q35_init_1_4(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
- has_pvpanic = false;
|
|
|
9ae3a8 |
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
|
|
|
9ae3a8 |
x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
|
|
|
9ae3a8 |
pc_q35_init(args);
|
|
|
9ae3a8 |
diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c
|
|
|
9ae3a8 |
index 1d3178d..1838bc7 100644
|
|
|
9ae3a8 |
--- a/hw/misc/pvpanic.c
|
|
|
9ae3a8 |
+++ b/hw/misc/pvpanic.c
|
|
|
9ae3a8 |
@@ -19,7 +19,6 @@
|
|
|
9ae3a8 |
#include "qemu/log.h"
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
#include "hw/nvram/fw_cfg.h"
|
|
|
9ae3a8 |
-#include "hw/i386/pc.h"
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* The bit of supported pv event */
|
|
|
9ae3a8 |
#define PVPANIC_F_PANICKED 0
|
|
|
9ae3a8 |
@@ -108,11 +107,6 @@ static int pvpanic_isa_initfn(ISADevice *dev)
|
|
|
9ae3a8 |
return 0;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
-void pvpanic_init(ISABus *bus)
|
|
|
9ae3a8 |
-{
|
|
|
9ae3a8 |
- isa_create_simple(bus, TYPE_ISA_PVPANIC_DEVICE);
|
|
|
9ae3a8 |
-}
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
static Property pvpanic_isa_properties[] = {
|
|
|
9ae3a8 |
DEFINE_PROP_UINT16("ioport", PVPanicState, ioport, 0x505),
|
|
|
9ae3a8 |
DEFINE_PROP_END_OF_LIST(),
|
|
|
9ae3a8 |
@@ -125,11 +119,6 @@ static void pvpanic_isa_class_init(ObjectClass *klass, void *data)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ic->init = pvpanic_isa_initfn;
|
|
|
9ae3a8 |
dc->props = pvpanic_isa_properties;
|
|
|
9ae3a8 |
- /*
|
|
|
9ae3a8 |
- * To be dropped in future backport of commit a5d3f64 "hw/misc:
|
|
|
9ae3a8 |
- * make pvpanic known to user":
|
|
|
9ae3a8 |
- */
|
|
|
9ae3a8 |
- dc->cannot_instantiate_with_device_add_yet = true;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static TypeInfo pvpanic_isa_info = {
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|