All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "Kevin Wolf" <kwolf@redhat.com>,
	"Anthony Liguori" <aliguori@us.ibm.com>,
	"Eduardo Habkost" <ehabkost@redhat.com>,
	libvir-list@redhat.com, "Stefan Hajnoczi" <stefanha@gmail.com>,
	qemu-devel@nongnu.org, "Luiz Capitulino" <lcapitulino@redhat.com>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH v6 1/3] qdev: DEVICE_DELETED event
Date: Thu, 14 Mar 2013 14:22:37 +0200	[thread overview]
Message-ID: <20130314122237.GA18850@redhat.com> (raw)
In-Reply-To: <87fvzyw54t.fsf@blackfin.pond.sub.org>

On Thu, Mar 14, 2013 at 01:13:54PM +0100, Markus Armbruster wrote:
> "Michael S. Tsirkin" <mst@redhat.com> writes:
> 
> > On Thu, Mar 14, 2013 at 09:06:15AM +0100, Markus Armbruster wrote:
> >> "Michael S. Tsirkin" <mst@redhat.com> writes:
> [...]
> >> > diff --git a/qapi-schema.json b/qapi-schema.json
> >> > index 28b070f..bb361e1 100644
> >> > --- a/qapi-schema.json
> >> > +++ b/qapi-schema.json
> >> > @@ -2354,7 +2354,9 @@
> >> >  # Notes: When this command completes, the device may not be removed from the
> >> >  #        guest.  Hot removal is an operation that requires guest cooperation.
> >> >  #        This command merely requests that the guest begin the hot removal
> >> > -#        process.
> >> > +#        process.  Completion of the device removal process is signaled with a
> >> > +#        DEVICE_DELETED event. Guest reset will automatically complete removal
> >> > +#        for all devices.
> >> >  #
> >> >  # Since: 0.14.0
> >> >  ##
> >> 
> >> What do you mean by "Guest reset will automatically complete removal for
> >> all devices"?
> >
> > Just this. Try this: rmmod acpiphp in guest, then:
> >
> > device_del
> > system_reset
> >
> > and see the device disappear even though it was not acked by guest.
> 
> Cool, I didn't know that.
> 
> Just to make sure: does this automatic removal completion send
> DEVICE_DELETED events?

With my patch, it does.

  reply	other threads:[~2013-03-14 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-13 17:46 [Qemu-devel] [PATCH v6 0/3] DEVICE_DELETED event Michael S. Tsirkin
2013-03-13 17:46 ` [Qemu-devel] [PATCH v6 1/3] qdev: " Michael S. Tsirkin
2013-03-14  8:06   ` Markus Armbruster
2013-03-14  8:48     ` Michael S. Tsirkin
2013-03-14 12:13       ` Markus Armbruster
2013-03-14 12:22         ` Michael S. Tsirkin [this message]
2013-03-14 23:31           ` [Qemu-devel] [libvirt] " Eric Blake
2013-03-14  8:53     ` [Qemu-devel] " Michael S. Tsirkin
2013-03-14 12:24       ` Markus Armbruster
2013-03-13 17:46 ` [Qemu-devel] [PATCH v6 2/3] qom: pass original path to unparent method Michael S. Tsirkin
2013-03-13 17:46 ` [Qemu-devel] [PATCH v6 3/3] qmp: add path to device_deleted event Michael S. Tsirkin

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=20130314122237.GA18850@redhat.com \
    --to=mst@redhat.com \
    --cc=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=armbru@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=libvir-list@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /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.