Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-18 Thread Jens Freimann
On Wed, Dec 11, 2019 at 01:52:33PM +0100, Damien Hedde wrote: On 12/4/19 7:51 PM, Eduardo Habkost wrote: On Wed, Dec 04, 2019 at 05:21:25PM +0100, Jens Freimann wrote: On Wed, Dec 04, 2019 at 11:35:37AM -0300, Eduardo Habkost wrote: On Wed, Dec 04, 2019 at 10:18:24AM +0100, Jens Freimann wrote

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-11 Thread Igor Mammedov
On Wed, 4 Dec 2019 15:51:06 -0300 Eduardo Habkost wrote: > On Wed, Dec 04, 2019 at 05:21:25PM +0100, Jens Freimann wrote: > > On Wed, Dec 04, 2019 at 11:35:37AM -0300, Eduardo Habkost wrote: > > > On Wed, Dec 04, 2019 at 10:18:24AM +0100, Jens Freimann wrote: > > > > On Tue, Dec 03, 2019 at 0

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-11 Thread Damien Hedde
On 12/4/19 7:51 PM, Eduardo Habkost wrote: > On Wed, Dec 04, 2019 at 05:21:25PM +0100, Jens Freimann wrote: >> On Wed, Dec 04, 2019 at 11:35:37AM -0300, Eduardo Habkost wrote: >>> On Wed, Dec 04, 2019 at 10:18:24AM +0100, Jens Freimann wrote: On Tue, Dec 03, 2019 at 06:40:04PM -0300, Eduard

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-04 Thread Eduardo Habkost
On Wed, Dec 04, 2019 at 05:21:25PM +0100, Jens Freimann wrote: > On Wed, Dec 04, 2019 at 11:35:37AM -0300, Eduardo Habkost wrote: > > On Wed, Dec 04, 2019 at 10:18:24AM +0100, Jens Freimann wrote: > > > On Tue, Dec 03, 2019 at 06:40:04PM -0300, Eduardo Habkost wrote: > > > > +jfreimann, +mst > > >

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-04 Thread Jens Freimann
On Wed, Dec 04, 2019 at 11:35:37AM -0300, Eduardo Habkost wrote: On Wed, Dec 04, 2019 at 10:18:24AM +0100, Jens Freimann wrote: On Tue, Dec 03, 2019 at 06:40:04PM -0300, Eduardo Habkost wrote: > +jfreimann, +mst > > On Sat, Nov 30, 2019 at 11:10:19AM +, Peter Maydell wrote: > > On Fri, 29 No

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-04 Thread Eduardo Habkost
On Wed, Dec 04, 2019 at 10:18:24AM +0100, Jens Freimann wrote: > On Tue, Dec 03, 2019 at 06:40:04PM -0300, Eduardo Habkost wrote: > > +jfreimann, +mst > > > > On Sat, Nov 30, 2019 at 11:10:19AM +, Peter Maydell wrote: > > > On Fri, 29 Nov 2019 at 20:05, Eduardo Habkost wrote: > > > > So, to s

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-04 Thread Jens Freimann
On Tue, Dec 03, 2019 at 06:40:04PM -0300, Eduardo Habkost wrote: +jfreimann, +mst On Sat, Nov 30, 2019 at 11:10:19AM +, Peter Maydell wrote: On Fri, 29 Nov 2019 at 20:05, Eduardo Habkost wrote: > So, to summarize the current issues: > > 1) realize triggers a plug operation implicitly. > 2)

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-12-03 Thread Eduardo Habkost
+jfreimann, +mst On Sat, Nov 30, 2019 at 11:10:19AM +, Peter Maydell wrote: > On Fri, 29 Nov 2019 at 20:05, Eduardo Habkost wrote: > > So, to summarize the current issues: > > > > 1) realize triggers a plug operation implicitly. > > 2) unplug triggers unrealize implicitly. > > > > Do you expe

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-30 Thread Peter Maydell
On Fri, 29 Nov 2019 at 20:05, Eduardo Habkost wrote: > So, to summarize the current issues: > > 1) realize triggers a plug operation implicitly. > 2) unplug triggers unrealize implicitly. > > Do you expect to see use cases that will require us to implement > realize-without-plug? I don't think so

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-29 Thread Eduardo Habkost
On Fri, Nov 29, 2019 at 12:45:09PM +, Peter Maydell wrote: > On Fri, 29 Nov 2019 at 12:26, Igor Mammedov wrote: > > But from the my very limited understanding, on real hardware, > > once device is uplugged it's gone (finalized) from machine > > perspective, so it's unclear to my why someone wo

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-29 Thread Eduardo Habkost
On Fri, Nov 29, 2019 at 01:40:55PM +0100, Igor Mammedov wrote: > On Thu, 28 Nov 2019 13:33:58 -0300 > Eduardo Habkost wrote: > > > On Thu, Nov 28, 2019 at 04:00:06PM +, Peter Maydell wrote: > > > Hi; this is a question which came up in Damien's reset series > > > which I don't know the answer

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-29 Thread Igor Mammedov
On Fri, 29 Nov 2019 14:05:23 +0100 Damien Hedde wrote: > On 11/29/19 1:45 PM, Peter Maydell wrote: > > On Fri, 29 Nov 2019 at 12:26, Igor Mammedov wrote: > >> But from the my very limited understanding, on real hardware, > >> once device is uplugged it's gone (finalized) from machine > >> pers

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-29 Thread Damien Hedde
On 11/29/19 1:45 PM, Peter Maydell wrote: > On Fri, 29 Nov 2019 at 12:26, Igor Mammedov wrote: >> But from the my very limited understanding, on real hardware, >> once device is uplugged it's gone (finalized) from machine >> perspective, so it's unclear to my why someone would use >> realize->un

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-29 Thread Peter Maydell
On Fri, 29 Nov 2019 at 12:26, Igor Mammedov wrote: > But from the my very limited understanding, on real hardware, > once device is uplugged it's gone (finalized) from machine > perspective, so it's unclear to my why someone would use > realize->unrealize->realize hotplug scenario. Well, on real

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-29 Thread Igor Mammedov
On Thu, 28 Nov 2019 13:33:58 -0300 Eduardo Habkost wrote: > On Thu, Nov 28, 2019 at 04:00:06PM +, Peter Maydell wrote: > > Hi; this is a question which came up in Damien's reset series > > which I don't know the answer to: > > > > What is the interaction of the QOM device lifecycle (instance

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-29 Thread Igor Mammedov
On Thu, 28 Nov 2019 17:57:56 + Peter Maydell wrote: > On Thu, 28 Nov 2019 at 17:27, Igor Mammedov wrote: > > > > On Thu, 28 Nov 2019 16:00:06 + > > Peter Maydell wrote: > > > Once a device is hot-unplugged (and thus unrealized) is it valid > > > for it to be re-hot-plugged, or is the

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-28 Thread Peter Maydell
On Thu, 28 Nov 2019 at 17:27, Igor Mammedov wrote: > > On Thu, 28 Nov 2019 16:00:06 + > Peter Maydell wrote: > > Once a device is hot-unplugged (and thus unrealized) is it valid > > for it to be re-hot-plugged, or is the assumption that it's then > > destroyed and a fresh device is created if

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-28 Thread Eduardo Habkost
On Thu, Nov 28, 2019 at 04:00:06PM +, Peter Maydell wrote: > Hi; this is a question which came up in Damien's reset series > which I don't know the answer to: > > What is the interaction of the QOM device lifecycle (instance_init/realize/ > unrealize/instance_finalize) with hotplug and hot-unp

Re: qom device lifecycle interaction with hotplug/hotunplug ?

2019-11-28 Thread Igor Mammedov
On Thu, 28 Nov 2019 16:00:06 + Peter Maydell wrote: > Hi; this is a question which came up in Damien's reset series > which I don't know the answer to: > > What is the interaction of the QOM device lifecycle (instance_init/realize/ > unrealize/instance_finalize) with hotplug and hot-unplug ?