Skip to contentSkip to conversation

pvpanic device should not be automatically included as an internal device

Qemu-devel NAK Marcel Apfelbaum 9 participants 19 messages Aug 1, 2013 – Aug 11, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

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. Now what will happen 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.

My point is that a device that requires a driver that is not "inbox", should not be present by default.
One possible solution is to add it manually with -device from command line.

Any thoughts?
Marcel

#1 lore raw
Quoted 8 lines · Marcel Apfelbaum

Hi,

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.

Only happens when also changing the machine type on upgrade as it is turned off on old machine types.

But, yes, pvpanic will show up as "Unknown device" without driver and with the funky yellow exclamation mark in device manager in windows guests. Newer windows versions don't kick the "new device" wizard. But still I have my doubts that it is a good idea to add it unconditionally ...

cheers,
Gerd

#2 lore raw
Quoted 10 lines · Gerd Hoffmann
Quoted 8 lines · Marcel Apfelbaum

Hi,

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.

Quoted 7 lines

Only happens when also changing the machine type on upgrade as it is turned off on old machine types.

But, yes, pvpanic will show up as "Unknown device" without driver and with the funky yellow exclamation mark in device manager in windows guests. Newer windows versions don't kick the "new device" wizard. But still I have my doubts that it is a good idea to add it unconditionally ...

Automatic devices with no command line argument have proven to be a nightmare for libvirt as well. Although the just-released libvirt 1.1.1 now supports the <on_crash> element for controlling the command line parameters of qemu related to how qemu will behave when the pvpanic device is triggered, I would also welcome having the ability to control whether the guest even has a pvpanic device exposed, just as we can control whether a guest has a memballoon device exposed.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#4 lore raw
In reply to Michael S. Tsirkin
Quoted 29 lines · Michael S. Tsirkin
Quoted 19 lines · Eric Blake
Quoted 10 lines · Gerd Hoffmann
Quoted 8 lines · Marcel Apfelbaum

Hi,

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.

Quoted 7 lines

Only happens when also changing the machine type on upgrade as it is turned off on old machine types.

But, yes, pvpanic will show up as "Unknown device" without driver and with the funky yellow exclamation mark in device manager in windows guests. Newer windows versions don't kick the "new device" wizard. But still I have my doubts that it is a good idea to add it unconditionally ...

Quoted 7 lines

Automatic devices with no command line argument have proven to be a nightmare for libvirt as well. Although the just-released libvirt 1.1.1 now supports the <on_crash> element for controlling the command line parameters of qemu related to how qemu will behave when the pvpanic device is triggered, I would also welcome having the ability to control whether the guest even has a pvpanic device exposed, just as we can control whether a guest has a memballoon device exposed.

Quoted 5 lines

A natural way to do this would be with -device pvpanic. I'm not sure why it wasn't done like this from the beginning, but it shouldn't be hard to redo, hopefully we can fix this bug in time for 1.6.

I'll come up with something, hopefully in time.
Marcel

#3 lore raw
In reply to Eric Blake
Quoted 19 lines · Eric Blake
Quoted 10 lines · Gerd Hoffmann
Quoted 8 lines · Marcel Apfelbaum

Hi,

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.

Quoted 7 lines

Only happens when also changing the machine type on upgrade as it is turned off on old machine types.

But, yes, pvpanic will show up as "Unknown device" without driver and with the funky yellow exclamation mark in device manager in windows guests. Newer windows versions don't kick the "new device" wizard. But still I have my doubts that it is a good idea to add it unconditionally ...

Quoted 7 lines

Automatic devices with no command line argument have proven to be a nightmare for libvirt as well. Although the just-released libvirt 1.1.1 now supports the <on_crash> element for controlling the command line parameters of qemu related to how qemu will behave when the pvpanic device is triggered, I would also welcome having the ability to control whether the guest even has a pvpanic device exposed, just as we can control whether a guest has a memballoon device exposed.

A natural way to do this would be with -device pvpanic. I'm not sure why it wasn't done like this from the beginning, but it shouldn't be hard to redo, hopefully we can fix this bug in time for 1.6.

Signature · 1 line
MST
#5 lore raw
In reply to Eric Blake
Quoted 19 lines · Eric Blake
Quoted 10 lines · Gerd Hoffmann
Quoted 8 lines · Marcel Apfelbaum

Hi,

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.

Quoted 7 lines

Only happens when also changing the machine type on upgrade as it is turned off on old machine types.

But, yes, pvpanic will show up as "Unknown device" without driver and with the funky yellow exclamation mark in device manager in windows guests. Newer windows versions don't kick the "new device" wizard. But still I have my doubts that it is a good idea to add it unconditionally ...

Quoted 7 lines

Automatic devices with no command line argument have proven to be a nightmare for libvirt as well. Although the just-released libvirt 1.1.1 now supports the <on_crash> element for controlling the command line parameters of qemu related to how qemu will behave when the pvpanic device is triggered, I would also welcome having the ability to control whether the guest even has a pvpanic device exposed, just as we can control whether a guest has a memballoon device exposed.

This is quite different from memballoon.

pvpanic is a single I/O port, it doesn't use up a PCI slot (thus causing conflicts with other devices at the same address).

Perhaps this issue is simply fixed by making the _STA method return 0x0B instead of 0x0F (i.e. turning off the "show in user interface" bit).

Paolo

#6 lore raw
Quoted 8 lines · Paolo Bonzini
Quoted 7 lines

Automatic devices with no command line argument have proven to be a nightmare for libvirt as well. Although the just-released libvirt 1.1.1 now supports the <on_crash> element for controlling the command line parameters of qemu related to how qemu will behave when the pvpanic device is triggered, I would also welcome having the ability to control whether the guest even has a pvpanic device exposed, just as we can control whether a guest has a memballoon device exposed.

Quoted 8 lines

This is quite different from memballoon.

pvpanic is a single I/O port, it doesn't use up a PCI slot (thus causing conflicts with other devices at the same address).

Perhaps this issue is simply fixed by making the _STA method return 0x0B instead of 0x0F (i.e. turning off the "show in user interface" bit).

That may "fix" the issue of a windows guest showing the yellow ! mark, but what if, down the road, someone writes an actual windows driver that is aware of that port and how to make a windows BSOD write a panic notification to the port? How does a user go about installing such a driver if the device is not exposed in the user interface list of devices?

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#9 lore raw
In reply to Marcel Apfelbaum
Quoted 11 lines · Marcel Apfelbaum

Hi,

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. Now what will happen 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.

Quoted 6 lines

My point is that a device that requires a driver that is not "inbox", should not be present by default.
One possible solution is to add it manually with -device from command line.

Any thoughts?
Marcel

Interesting. You are basically saying we should have a rule that no new builtin devices should be added without an explicit request from management interface?

Signature · 1 line
MST
#10 lore raw
Quoted 16 lines · Michael S. Tsirkin
Quoted 15 lines · Marcel Apfelbaum

Hi,

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. Now what will happen 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.

My point is that a device that requires a driver that is not "inbox", should not be present by default.
One possible solution is to add it manually with -device from command line.

Quoted 6 lines
Quoted 2 lines

Any thoughts?
Marcel

Interesting. You are basically saying we should have a rule that no new builtin devices should be added without an explicit request from management interface?

Basically, yes.
The only builtin devices shall be devices that the operating systems know how to handle with the default drivers.
Marcel

Quoted 2 lines
#11 lore raw

PATCH 1/2 don't create pvpanic device by default.

In reply to Marcel Apfelbaum

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.

---
 hw/i386/pc_piix.c | 8 --------
 hw/i386/pc_q35.c  | 6 ------
 2 files changed, 14 deletions(-)
hw/i386/pc_piix.c +0 -8
index ab25458..3ccf96c 100644
@@ -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";
hw/i386/pc_q35.c +0 -6
index 2f35d12..c816c2f 100644
@@ -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);
 }
Signature · 1 line
1.8.1.4
#17 lore raw

PATCH 2/2 pvpanic: make pvpanic known to user

In reply to Marcel Apfelbaum

Thus user can create pvpanic by -device.

---
 hw/misc/pvpanic.c    | 23 ++++++++---------------
 include/hw/i386/pc.h |  3 ---
 2 files changed, 8 insertions(+), 18 deletions(-)
hw/misc/pvpanic.c +8 -15
index 7bb49a5..6e4c53e 100644
@@ -93,14 +93,6 @@ static void pvpanic_isa_initfn(Object *obj)
     memory_region_init_io(&s->io, OBJECT(s), &pvpanic_ops, s, "pvpanic", 1);
 }
 
-static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp)
-{
-    ISADevice *d = ISA_DEVICE(dev);
-    PVPanicState *s = ISA_PVPANIC_DEVICE(dev);
-
-    isa_register_ioport(d, &s->io, s->ioport);
-}
-
 static void pvpanic_fw_cfg(ISADevice *dev, FWCfgState *fw_cfg)
 {
     PVPanicState *s = ISA_PVPANIC_DEVICE(dev);
@@ -111,15 +103,16 @@ static void pvpanic_fw_cfg(ISADevice *dev, FWCfgState *fw_cfg)
                     sizeof(*pvpanic_port));
 }
 
-void pvpanic_init(ISABus *bus)
+static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp)
 {
-    ISADevice *dev;
+    ISADevice *d = ISA_DEVICE(dev);
+    PVPanicState *s = ISA_PVPANIC_DEVICE(dev);
     FWCfgState *fw_cfg = fw_cfg_find();
-    if (!fw_cfg) {
-        return;
+
+    isa_register_ioport(d, &s->io, s->ioport);
+    if (fw_cfg) {
+        pvpanic_fw_cfg(d, fw_cfg);
     }
-    dev = isa_create_simple (bus, TYPE_ISA_PVPANIC_DEVICE);
-    pvpanic_fw_cfg(dev, fw_cfg);
 }
 
 static Property pvpanic_isa_properties[] = {
@@ -132,8 +125,8 @@ static void pvpanic_isa_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->realize = pvpanic_isa_realizefn;
-    dc->no_user = 1;
     dc->props = pvpanic_isa_properties;
+    dc->bus_type = TYPE_ISA_BUS;
 }
 
 static TypeInfo pvpanic_isa_info = {
include/hw/i386/pc.h +0 -3
index 3a0c4e3..e54751c 100644
@@ -202,9 +202,6 @@ static inline bool isa_ne2000_init(ISABus *bus, int base, int irq, NICInfo *nd)
 /* pc_sysfw.c */
 void pc_system_firmware_init(MemoryRegion *rom_memory);
 
-/* pvpanic.c */
-void pvpanic_init(ISABus *bus);
-
 /* e820 types */
 #define E820_RAM        1
 #define E820_RESERVED   2
Signature · 1 line
1.8.1.4
#12 lore raw

Re: [Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default.

In reply to Hu Tao
Quoted 4 lines · Hu Tao

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).

Quoted 8 lines

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.

NACK,

this is premature. It is fundamentally a firmware problem.

We have time to apply an even smaller patch that doesn't set has_pvpanic to true, and delay the whole feature to 1.7, if we do not fix the firmware in the next two weeks.

Paolo

#7 lore raw
In reply to Eric Blake
Quoted 18 lines · Eric Blake
Quoted 8 lines · Paolo Bonzini
Quoted 7 lines

Automatic devices with no command line argument have proven to be a nightmare for libvirt as well. Although the just-released libvirt 1.1.1 now supports the <on_crash> element for controlling the command line parameters of qemu related to how qemu will behave when the pvpanic device is triggered, I would also welcome having the ability to control whether the guest even has a pvpanic device exposed, just as we can control whether a guest has a memballoon device exposed.

Quoted 8 lines

This is quite different from memballoon.

pvpanic is a single I/O port, it doesn't use up a PCI slot (thus causing conflicts with other devices at the same address).

Perhaps this issue is simply fixed by making the _STA method return 0x0B instead of 0x0F (i.e. turning off the "show in user interface" bit).

Quoted 5 lines

That may "fix" the issue of a windows guest showing the yellow ! mark, but what if, down the road, someone writes an actual windows driver that is aware of that port and how to make a windows BSOD write a panic notification to the port? How does a user go about installing such a driver if the device is not exposed in the user interface list of devices?

The user can still manually install a driver even for a device that is not exposed.

Having to manually specify the pvpanic device would be yet another knob that nobody uses. Panic notification is a useful feature that should be supported with no particular intervention from the user.

Paolo

#8 lore raw
Quoted 25 lines · Paolo Bonzini
Quoted 18 lines · Eric Blake
Quoted 8 lines · Paolo Bonzini
Quoted 7 lines

Automatic devices with no command line argument have proven to be a nightmare for libvirt as well. Although the just-released libvirt 1.1.1 now supports the <on_crash> element for controlling the command line parameters of qemu related to how qemu will behave when the pvpanic device is triggered, I would also welcome having the ability to control whether the guest even has a pvpanic device exposed, just as we can control whether a guest has a memballoon device exposed.

Quoted 8 lines

This is quite different from memballoon.

pvpanic is a single I/O port, it doesn't use up a PCI slot (thus causing conflicts with other devices at the same address).

Perhaps this issue is simply fixed by making the _STA method return 0x0B instead of 0x0F (i.e. turning off the "show in user interface" bit).

Quoted 5 lines

That may "fix" the issue of a windows guest showing the yellow ! mark, but what if, down the road, someone writes an actual windows driver that is aware of that port and how to make a windows BSOD write a panic notification to the port? How does a user go about installing such a driver if the device is not exposed in the user interface list of devices?

Quoted 6 lines

The user can still manually install a driver even for a device that is not exposed.

Having to manually specify the pvpanic device would be yet another knob that nobody uses. Panic notification is a useful feature that should be supported with no particular intervention from the user.

Yep, that was the big motivation behind doing it as an I/O port that we could have enabled by default, as opposed to a virtio serial device or some other paravirt device that required explicit configuration.

Daniel

Signature · 4 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
#18 lore raw

Re: [Qemu-devel] [PATCH for-1.6 2/2] pvpanic: make pvpanic known to user

In reply to Hu Tao

Am 02.08.2013 09:04, schrieb Hu Tao:

Quoted 38 lines

Thus user can create pvpanic by -device.

---
 hw/misc/pvpanic.c    | 23 ++++++++---------------
 include/hw/i386/pc.h |  3 ---
 2 files changed, 8 insertions(+), 18 deletions(-)
hw/misc/pvpanic.c +3 -10
index 7bb49a5..6e4c53e 100644
@@ -93,14 +93,6 @@ static void pvpanic_isa_initfn(Object *obj)
     memory_region_init_io(&s->io, OBJECT(s), &pvpanic_ops, s, "pvpanic", 1);
 }
 
-static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp)
-{
-    ISADevice *d = ISA_DEVICE(dev);
-    PVPanicState *s = ISA_PVPANIC_DEVICE(dev);
-
-    isa_register_ioport(d, &s->io, s->ioport);
-}
-
 static void pvpanic_fw_cfg(ISADevice *dev, FWCfgState *fw_cfg)
 {
     PVPanicState *s = ISA_PVPANIC_DEVICE(dev);
@@ -111,15 +103,16 @@ static void pvpanic_fw_cfg(ISADevice *dev, FWCfgState *fw_cfg)
                     sizeof(*pvpanic_port));
 }
 
-void pvpanic_init(ISABus *bus)
+static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp)
 {
-    ISADevice *dev;
+    ISADevice *d = ISA_DEVICE(dev);
+    PVPanicState *s = ISA_PVPANIC_DEVICE(dev);
     FWCfgState *fw_cfg = fw_cfg_find();

hw/misc/pvpanic.c static void pvpanic_fw_cfg(ISADevice *dev, FWCfgState *fw_cfg) · line 116

Quoted 10 lines
hw/misc/pvpanic.c +4 -4
-    if (!fw_cfg) {
-        return;
+
+    isa_register_ioport(d, &s->io, s->ioport);
+    if (fw_cfg) {
+        pvpanic_fw_cfg(d, fw_cfg);
     }
-    dev = isa_create_simple (bus, TYPE_ISA_PVPANIC_DEVICE);
-    pvpanic_fw_cfg(dev, fw_cfg);
 }

Doing this in-place above might've been a bit easier to read. ;)

The only thing fw_cfg does at realize time is registering its I/O ports, the /machine/fw_cfg path is set up in fw_cfg_init() helper function before, so there are no potential realize ordering problems here.

hw/misc/pvpanic.c static void pvpanic_isa_class_init(ObjectClass *klass, void *data) · line 130

Quoted 10 lines
hw/misc/pvpanic.c +1 -1
 static Property pvpanic_isa_properties[] = {
@@ -132,8 +125,8 @@ static void pvpanic_isa_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->realize = pvpanic_isa_realizefn;
-    dc->no_user = 1;
     dc->props = pvpanic_isa_properties;
 
+    dc->bus_type = TYPE_ISA_BUS;

This is already done in hw/isa/isa-bus.c:isa_device_class_init(), please drop if we go with this.

Regards,
Andreas

Quoted 18 lines
hw/misc/pvpanic.c +0 -0
 }
 

static TypeInfo pvpanic_isa_info = {

include/hw/i386/pc.h +0 -3
index 3a0c4e3..e54751c 100644
@@ -202,9 +202,6 @@ static inline bool isa_ne2000_init(ISABus *bus, int base, int irq, NICInfo *nd)
 /* pc_sysfw.c */
 void pc_system_firmware_init(MemoryRegion *rom_memory);
 
-/* pvpanic.c */
-void pvpanic_init(ISABus *bus);
-
 /* e820 types */
 #define E820_RAM        1
 #define E820_RESERVED   2
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#13 lore raw

Re: [Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default.

In reply to Paolo Bonzini
Quoted 16 lines · Paolo Bonzini
Quoted 4 lines · Hu Tao

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).

Quoted 8 lines

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.

NACK,

Quoted 7 lines

this is premature. It is fundamentally a firmware problem.

We have time to apply an even smaller patch that doesn't set has_pvpanic to true, and delay the whole feature to 1.7, if we do not fix the firmware in the next two weeks.

Paolo

I think this is not just a firmware problem. Adding device by default was too rush, assumption was risk of guest bugs was 0.

We are now seeing problems with bios guest code and with linux guest drivers as well. Yes they all can be fixed, but we simply shouldn't force this risk of broken guests on everyone.

libvirt is the main user and libvirt people indicated their preference to creating device with -device pvpanic rather than a built-in one that can't be removed.

So please reconsider, and here's an ack from me.

#14 lore raw

Re: [Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default.

Am 11.08.2013 12:33, schrieb Michael S. Tsirkin:

Quoted 32 lines · Paolo Bonzini
Quoted 16 lines · Hu Tao
Quoted 4 lines

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).

Quoted 8 lines

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.

NACK,

Quoted 7 lines

this is premature. It is fundamentally a firmware problem.

We have time to apply an even smaller patch that doesn't set has_pvpanic to true, and delay the whole feature to 1.7, if we do not fix the firmware in the next two weeks.

Paolo

I think this is not just a firmware problem. Adding device by default was too rush, assumption was risk of guest bugs was 0.

We are now seeing problems with bios guest code and with linux guest drivers as well. Yes they all can be fixed, but we simply shouldn't force this risk of broken guests on everyone.

Quoted 8 lines

libvirt is the main user and libvirt people indicated their preference to creating device with -device pvpanic rather than a built-in one that can't be removed.

So please reconsider, and here's an ack from me.

NACK for this v1: As pointed out on the KVM call, we still need to keep the pvpanic device around by default for pc-*-1.5. Removing has_pvpanic completely therefore seems wrong. Can you submit a v2 for rc3 tomorrow?

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#15 lore raw

Re: [Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default.

Quoted 38 lines · Andreas Färber

Am 11.08.2013 12:33, schrieb Michael S. Tsirkin:

Quoted 37 lines · Paolo Bonzini
Quoted 16 lines · Hu Tao
Quoted 4 lines

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).

Quoted 8 lines

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.

NACK,

Quoted 7 lines

this is premature. It is fundamentally a firmware problem.

We have time to apply an even smaller patch that doesn't set has_pvpanic to true, and delay the whole feature to 1.7, if we do not fix the firmware in the next two weeks.

Paolo

I think this is not just a firmware problem. Adding device by default was too rush, assumption was risk of guest bugs was 0.

We are now seeing problems with bios guest code and with linux guest drivers as well. Yes they all can be fixed, but we simply shouldn't force this risk of broken guests on everyone.

libvirt is the main user and libvirt people indicated their preference to creating device with -device pvpanic rather than a built-in one that can't be removed.

Quoted 7 lines
Quoted 3 lines

So please reconsider, and here's an ack from me.

NACK for this v1: As pointed out on the KVM call, we still need to keep the pvpanic device around by default for pc-*-1.5. Removing has_pvpanic completely therefore seems wrong.

We also mentioned an option to patch 1.5 stable to change it there, but I'm fine with not doing it.

Quoted 8 lines

Can you submit a v2 for rc3 tomorrow?

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#16 lore raw

Re: [Qemu-devel] [PATCH for-1.6 1/2] don't create pvpanic device by default.

In reply to Andreas Färber
Quoted 38 lines · Andreas Färber

Am 11.08.2013 12:33, schrieb Michael S. Tsirkin:

Quoted 37 lines · Paolo Bonzini
Quoted 16 lines · Hu Tao
Quoted 4 lines

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).

Quoted 8 lines

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.

NACK,

Quoted 7 lines

this is premature. It is fundamentally a firmware problem.

We have time to apply an even smaller patch that doesn't set has_pvpanic to true, and delay the whole feature to 1.7, if we do not fix the firmware in the next two weeks.

Paolo

I think this is not just a firmware problem. Adding device by default was too rush, assumption was risk of guest bugs was 0.

We are now seeing problems with bios guest code and with linux guest drivers as well. Yes they all can be fixed, but we simply shouldn't force this risk of broken guests on everyone.

libvirt is the main user and libvirt people indicated their preference to creating device with -device pvpanic rather than a built-in one that can't be removed.

Quoted 7 lines
Quoted 3 lines

So please reconsider, and here's an ack from me.

NACK for this v1: As pointed out on the KVM call, we still need to keep the pvpanic device around by default for pc-*-1.5. Removing has_pvpanic completely therefore seems wrong. Can you submit a v2 for rc3 tomorrow?

I just sent a patchset with V2. Can you please review it? Thanks,
Marcel

Quoted 3 lines

Andreas