Re: [libvirt] [PATCH v2] xen: Prevent updating device when attaching a device

2011-02-11 Thread Osier Yang
于 2011年02月10日 14:09, Daniel Veillard 写道: On Wed, Feb 09, 2011 at 02:01:25PM +, Daniel P. Berrange wrote: On Wed, Feb 09, 2011 at 04:51:27PM +0800, Osier Yang wrote: When attaching a device that already exists, xend driver updates the device with device_configure, it causes problems (e.g.

Re: [libvirt] [PATCH v2] xen: Prevent updating device when attaching a device

2011-02-11 Thread Osier Yang
于 2011年02月11日 16:07, Osier Yang 写道: 于 2011年02月10日 14:09, Daniel Veillard 写道: On Wed, Feb 09, 2011 at 02:01:25PM +, Daniel P. Berrange wrote: On Wed, Feb 09, 2011 at 04:51:27PM +0800, Osier Yang wrote: When attaching a device that already exists, xend driver updates the device with

[libvirt] [PATCH v2] xen: Prevent updating device when attaching a device

2011-02-09 Thread Osier Yang
When attaching a device that already exists, xend driver updates the device with device_configure, it causes problems (e.g. for disk device, 'device_configure' only can be used to update device like CDROM), on the other hand, we provide additional API (virDomainUpdateDevice) to update device, this

Re: [libvirt] [PATCH v2] xen: Prevent updating device when attaching a device

2011-02-09 Thread Osier Yang
于 2011年02月09日 16:51, Osier Yang 写道: When attaching a device that already exists, xend driver updates the device with device_configure, it causes problems (e.g. for disk device, 'device_configure' only can be used to update device like CDROM), on the other hand, we provide additional API

Re: [libvirt] [PATCH v2] xen: Prevent updating device when attaching a device

2011-02-09 Thread Daniel P. Berrange
On Wed, Feb 09, 2011 at 04:51:27PM +0800, Osier Yang wrote: When attaching a device that already exists, xend driver updates the device with device_configure, it causes problems (e.g. for disk device, 'device_configure' only can be used to update device like CDROM), on the other hand, we

Re: [libvirt] [PATCH v2] xen: Prevent updating device when attaching a device

2011-02-09 Thread Daniel Veillard
On Wed, Feb 09, 2011 at 02:01:25PM +, Daniel P. Berrange wrote: On Wed, Feb 09, 2011 at 04:51:27PM +0800, Osier Yang wrote: When attaching a device that already exists, xend driver updates the device with device_configure, it causes problems (e.g. for disk device, 'device_configure'