[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default.
From: |
Hu Tao |
Subject: |
[Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default. |
Date: |
Fri, 2 Aug 2013 15:04:38 +0800 |
The problem with pvpanic being an internal device is that VMs running
operating systems without a driver for this device will have problems
when qemu will be upgraded (from qemu without this pvpanic).
The outcome may be, for example: in Windows(let's say XP) the Device
manager will open a "new device" wizard and the device will appear as
an unrecognized device. On a cluster with hundreds of such VMs, If
that cluster has a health monitoring service it may show all the VMs
in a "not healthy" state.
Reported-by: Marcel Apfelbaum <address@hidden>
Signed-off-by: Hu Tao <address@hidden>
---
hw/i386/pc_piix.c | 8 --------
hw/i386/pc_q35.c | 6 ------
2 files changed, 14 deletions(-)
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index ab25458..3ccf96c 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -56,7 +56,6 @@ static const int ide_iobase[MAX_IDE_BUS] = { 0x1f0, 0x170 };
static const int ide_iobase2[MAX_IDE_BUS] = { 0x3f6, 0x376 };
static const int ide_irq[MAX_IDE_BUS] = { 14, 15 };
-static bool has_pvpanic = true;
static bool has_pci_info = true;
/* PC hardware initialisation */
@@ -228,10 +227,6 @@ static void pc_init1(MemoryRegion *system_memory,
if (pci_enabled) {
pc_pci_device_init(pci_bus);
}
-
- if (has_pvpanic) {
- pvpanic_init(isa_bus);
- }
}
static void pc_init_pci(QEMUMachineInitArgs *args)
@@ -257,7 +252,6 @@ static void pc_init_pci_1_5(QEMUMachineInitArgs *args)
static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
{
- has_pvpanic = false;
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
pc_init_pci_1_5(args);
}
@@ -290,7 +284,6 @@ static void pc_init_pci_no_kvmclock(QEMUMachineInitArgs
*args)
const char *kernel_cmdline = args->kernel_cmdline;
const char *initrd_filename = args->initrd_filename;
const char *boot_device = args->boot_device;
- has_pvpanic = false;
has_pci_info = false;
disable_kvm_pv_eoi();
enable_compat_apic_id_mode();
@@ -309,7 +302,6 @@ static void pc_init_isa(QEMUMachineInitArgs *args)
const char *kernel_cmdline = args->kernel_cmdline;
const char *initrd_filename = args->initrd_filename;
const char *boot_device = args->boot_device;
- has_pvpanic = false;
has_pci_info = false;
if (cpu_model == NULL)
cpu_model = "486";
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index 2f35d12..c816c2f 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -46,7 +46,6 @@
/* ICH9 AHCI has 6 ports */
#define MAX_SATA_PORTS 6
-static bool has_pvpanic = true;
static bool has_pci_info = true;
/* PC hardware initialisation */
@@ -211,10 +210,6 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
if (pci_enabled) {
pc_pci_device_init(host_bus);
}
-
- if (has_pvpanic) {
- pvpanic_init(isa_bus);
- }
}
static void pc_q35_init_1_5(QEMUMachineInitArgs *args)
@@ -225,7 +220,6 @@ static void pc_q35_init_1_5(QEMUMachineInitArgs *args)
static void pc_q35_init_1_4(QEMUMachineInitArgs *args)
{
- has_pvpanic = false;
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
pc_q35_init_1_5(args);
}
--
1.8.1.4
- Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, (continued)
- Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, Gerd Hoffmann, 2013/08/01
- Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, Eric Blake, 2013/08/01
- Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, Paolo Bonzini, 2013/08/01
- Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, Eric Blake, 2013/08/01
- Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, Paolo Bonzini, 2013/08/02
- Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, Daniel P. Berrange, 2013/08/02
Re: [Qemu-devel] pvpanic device should not be automatically included as an internal device, Michael S. Tsirkin, 2013/08/01
[Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default.,
Hu Tao <=
[Qemu-devel] [PATCH for-1.6 2/2] pvpanic: make pvpanic known to user, Hu Tao, 2013/08/02