[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-14 Thread Michael S. Tsirkin
On Sun, Nov 14, 2010 at 11:57:52AM +0900, Isaku Yamahata wrote: > On Sat, Nov 13, 2010 at 10:59:15PM +0200, Michael S. Tsirkin wrote: > > On Fri, Nov 12, 2010 at 09:50:30PM +0900, Isaku Yamahata wrote: > > > On Fri, Nov 12, 2010 at 01:26:30PM +0200, Michael S. Tsirkin wrote: > > > > No, I am just t

[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-13 Thread Isaku Yamahata
On Sat, Nov 13, 2010 at 10:59:15PM +0200, Michael S. Tsirkin wrote: > On Fri, Nov 12, 2010 at 09:50:30PM +0900, Isaku Yamahata wrote: > > On Fri, Nov 12, 2010 at 01:26:30PM +0200, Michael S. Tsirkin wrote: > > > No, I am just trying to understand why is hotplug event dangerous. > > > We still get i

[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-13 Thread Michael S. Tsirkin
On Fri, Nov 12, 2010 at 09:50:30PM +0900, Isaku Yamahata wrote: > On Fri, Nov 12, 2010 at 01:26:30PM +0200, Michael S. Tsirkin wrote: > > No, I am just trying to understand why is hotplug event dangerous. > > We still get it if we do device add before starting the VM, right? > > I'm not sure if it

[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-12 Thread Isaku Yamahata
On Fri, Nov 12, 2010 at 01:26:30PM +0200, Michael S. Tsirkin wrote: > No, I am just trying to understand why is hotplug event dangerous. > We still get it if we do device add before starting the VM, right? I'm not sure if it's safe to call enable/disable_device() and pm_update_sci() before startin

[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-12 Thread Michael S. Tsirkin
On Fri, Nov 12, 2010 at 06:59:52PM +0900, Isaku Yamahata wrote: > On Fri, Nov 12, 2010 at 11:18:57AM +0200, Michael S. Tsirkin wrote: > > On Fri, Nov 12, 2010 at 04:24:11PM +0900, Isaku Yamahata wrote: > > > On Thu, Nov 11, 2010 at 11:29:39PM -0700, Cam Macdonell wrote: > > > > Hi, > > > > > > > >

[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-12 Thread Isaku Yamahata
On Fri, Nov 12, 2010 at 11:18:57AM +0200, Michael S. Tsirkin wrote: > On Fri, Nov 12, 2010 at 04:24:11PM +0900, Isaku Yamahata wrote: > > On Thu, Nov 11, 2010 at 11:29:39PM -0700, Cam Macdonell wrote: > > > Hi, > > > > > > I was trying to do a "device_del" on my ivshmem device and it won't > > > w

[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-12 Thread Michael S. Tsirkin
On Fri, Nov 12, 2010 at 04:24:11PM +0900, Isaku Yamahata wrote: > On Thu, Nov 11, 2010 at 11:29:39PM -0700, Cam Macdonell wrote: > > Hi, > > > > I was trying to do a "device_del" on my ivshmem device and it won't > > work unless the device is added via hotplug. If the device is > > coldplugged (a

[Qemu-devel] Re: Cannot not unplug cold-plugged devices

2010-11-11 Thread Isaku Yamahata
On Thu, Nov 11, 2010 at 11:29:39PM -0700, Cam Macdonell wrote: > Hi, > > I was trying to do a "device_del" on my ivshmem device and it won't > work unless the device is added via hotplug. If the device is > coldplugged (added at startup) then nothing happens. I think I > tracked this behaviour t