]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xen: Prevent updating device when attaching a device
authorOsier Yang <jyang@redhat.com>
Sat, 12 Feb 2011 06:29:09 +0000 (14:29 +0800)
committerOsier Yang <jyang@redhat.com>
Sat, 12 Feb 2011 06:29:09 +0000 (14:29 +0800)
commit0e629db3bf7dceb1d8392742aac23bda5d3ba9a6
tree3cb97cf6b3565686e0a283e419496f0b28b36706
parent699a5888b7446e0c2060389af6cdac9c4e60d80e
xen: Prevent updating device when attaching a device

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 fix is to raise up
errors instead of updating the existed device which is not CDROM
device.

Changes from v1 to v2:
  - allow to update CDROM

* src/xen/xend_internal.c
src/xen/xend_internal.c