All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: "Marcel Apfelbaum" <marcel.a@redhat.com>,
	"Hu Tao" <hutao@cn.fujitsu.com>,
	seabios@seabios.org, qemu-devel@nongnu.org,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH] don't expose pvpanic device in the UI
Date: Mon, 5 Aug 2013 21:32:18 +0300	[thread overview]
Message-ID: <20130805183218.GD4244@redhat.com> (raw)
In-Reply-To: <20130805160421.GB15901@redhat.com>

On Mon, Aug 05, 2013 at 07:04:22PM +0300, Gleb Natapov wrote:
> On Mon, Aug 05, 2013 at 06:03:34PM +0300, Michael S. Tsirkin wrote:
> > On Mon, Aug 05, 2013 at 12:20:44PM +0300, Gleb Natapov wrote:
> > > On Mon, Aug 05, 2013 at 12:18:26PM +0300, Michael S. Tsirkin wrote:
> > > > On Mon, Aug 05, 2013 at 11:16:17AM +0300, Gleb Natapov wrote:
> > > > > On Mon, Aug 05, 2013 at 11:10:55AM +0300, Michael S. Tsirkin wrote:
> > > > > > On Mon, Aug 05, 2013 at 03:47:23PM +0800, Hu Tao wrote:
> > > > > > > pvpanic device is an internal default device in qemu. It may cause
> > > > > > > problem when upgrading qemu from a version without pvpanic.
> > > > > > > 
> > > > > > > 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.
> > > > > > > 
> > > > > > > This patch is a workaround to not show pvpanic in UI to avoid the
> > > > > > > problem in Windows.
> > > > > > > 
> > > > > > > Cc: Marcel Apfelbaum <marcel.a@redhat.com>
> > > > > > > Cc: "Michael S. Tsirkin" <mst@redhat.com>
> > > > > > > Cc: Paolo Bonzini <pbonzini@redhat.com>
> > > > > > > Cc: Gerd Hoffmann <kraxel@redhat.com>
> > > > > > > Cc: Eric Blake <eblake@redhat.com>
> > > > > > > Cc: "Daniel P. Berrange" <berrange@redhat.com>
> > > > > > > Cc: Andreas Färber <afaerber@suse.de>
> > > > > > > Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
> > > > > > 
> > > > > > Quoting from this discussion:
> > > > > > 	>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?
> > > > > > 
> > > > > > I think the correct way to address this is:
> > > > > > - don't create the device by default, only when -device pvpanic is
> > > > > >   present
> > > > > > - teach management to supply said -device pvpanic for guests which
> > > > > >   support the pvpanic device
> > > > > > 
> > > > > That's just pushing the problem elsewhere. How management suppose to know if
> > > > > guest support pvpanic device?
> > > > 
> > > > Same as any PV device really. It's exactly the same problem
> > > > as with virtio: user configures the XML properly.
> > > > 
> > > Virtio has alternatives.
> > 
> > I don't see why does it matter. In any case, only
> > *some* virtio devices have alternatives.
> > What about the balloon device? VIRTIO_9P? There are more examples.
> > What about e.g. ivshmem?
> > 
> They take very limited pci resources and/or provide functionality that
> should not be available for all guests. We do provide ACPI hotplug
> device unconditionally.
> 
> > > > > What if initially guest did not have a
> > > > > driver, but the it was installed?
> > > > 
> > > > You can reconfigure XML and reboot.
> > > > 
> > > Will it cause Windows reactivation? Maybe after adding several devices?
> > 
> > I don't think it will.
> > https://en.wikipedia.org/wiki/Microsoft_Product_Activation
> > says:
> >     Display adapter
> >     SCSI adapter
> >     IDE adapter
> >     Network adapter MAC address
> >     RAM amount range (e.g. 0-512 MB)
> >     Processor type and serial number
> >     Hard drive device and volume serial number
> >     Optical drive (e.g. DVD-ROM)
> > 
> > As you see we do let people change many parameters
> > that do affect activation.
> By editing XML user can shoot himself in the foot, we should not prevent
> that.

So that's what I'm saying basically.
At the moment there's no way to remove this device from XML.
That's just wrong.
In QEMU, we have a standard way to specify devices with -device.
That should be the interface for anything new really
unless there's a very compelling reason for something else.
*Not* building it into the PC machine type.

> It should not be required though.

libvirt can pass -device pvpanic by default if nothing
is specified in XML. That discussion really has to happen
on libvirt list.

-- 
MST

       reply	other threads:[~2013-08-05 18:30 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1375688843-19573-1-git-send-email-hutao@cn.fujitsu.com>
     [not found] ` <20130805081055.GA356@redhat.com>
     [not found]   ` <20130805081617.GB2258@redhat.com>
     [not found]     ` <20130805091826.GA877@redhat.com>
     [not found]       ` <20130805092044.GH2258@redhat.com>
     [not found]         ` <20130805150333.GC877@redhat.com>
     [not found]           ` <20130805160421.GB15901@redhat.com>
2013-08-05 18:32             ` Michael S. Tsirkin [this message]
2013-08-06  7:34               ` [Qemu-devel] [SeaBIOS] [PATCH] don't expose pvpanic device in the UI Gleb Natapov
2013-08-06  8:03                 ` Vadim Rozenfeld
2013-08-06  8:05                   ` Gleb Natapov
2013-08-06  8:14                     ` Vadim Rozenfeld
2013-08-06  8:38                       ` Gleb Natapov
     [not found]     ` <51FF6A79.9060603@redhat.com>
     [not found]       ` <703333176.9515483.1375697447963.JavaMail.root@redhat.com>
     [not found]         ` <20130805151723.GF877@redhat.com>
     [not found]           ` <1970367422.9695773.1375718517492.JavaMail.root@redhat.com>
     [not found]             ` <20130805161833.GA4244@redhat.com>
     [not found]               ` <51FFD6CE.5090302@redhat.com>
     [not found]                 ` <20130805182628.GC4244@redhat.com>
     [not found]                   ` <20130806072152.GK10891@redhat.com>
2013-08-06  8:33                     ` Michael S. Tsirkin
2013-08-06  8:36                       ` Gleb Natapov
2013-08-06  8:45                         ` Andreas Färber
2013-08-06  9:15                           ` Michael S. Tsirkin
2013-08-06  9:20                           ` Gleb Natapov
2013-08-06 10:04                             ` Michael S. Tsirkin
2013-08-06 17:53                             ` Andreas Färber
2013-08-06  9:56                           ` Markus Armbruster
2013-08-06 10:11                             ` Michael S. Tsirkin
2013-08-06  9:21                         ` Michael S. Tsirkin
2013-08-06  9:32                           ` Gleb Natapov
2013-08-06 10:19                             ` Michael S. Tsirkin
2013-08-06 10:44                               ` Gleb Natapov
2013-08-06 11:03                                 ` Andreas Färber
2013-08-06 11:16                                   ` Gleb Natapov
2013-08-06 11:48                                     ` Markus Armbruster
2013-08-06 12:03                                       ` Gleb Natapov
2013-08-06 12:09                                   ` Michael S. Tsirkin
2013-08-06 12:45                                     ` Andreas Färber
2013-08-07  8:17                                       ` Stefan Hajnoczi
2013-08-06 11:54                                 ` Gerd Hoffmann
2013-08-06 12:08                                   ` Gleb Natapov
2013-08-06 10:35                             ` Andreas Färber
2013-08-06 11:00                               ` Gleb Natapov
2013-08-06 11:23                                 ` Andreas Färber
2013-08-06 12:00                                   ` Gleb Natapov
2013-08-06 12:02                                     ` Gerd Hoffmann
2013-08-06 12:05                                     ` Michael S. Tsirkin
2013-08-06 12:17                                       ` Gleb Natapov
2013-08-06 17:22                                     ` Andreas Färber
2013-08-06 12:08                                 ` Michael S. Tsirkin
2013-08-06 12:19                                   ` Gleb Natapov
2013-08-06  9:26                       ` Hu Tao
2013-08-06  9:29                         ` Gleb Natapov
2013-08-06 10:13                           ` Michael S. Tsirkin
2013-08-06 10:14                             ` Gleb Natapov
2013-08-06 10:23                               ` Michael S. Tsirkin
2013-08-06 10:28                                 ` Gleb Natapov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130805183218.GD4244@redhat.com \
    --to=mst@redhat.com \
    --cc=afaerber@suse.de \
    --cc=gleb@redhat.com \
    --cc=hutao@cn.fujitsu.com \
    --cc=kraxel@redhat.com \
    --cc=marcel.a@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.