ia64/xen-unstable

changeset 15398:63077ce6a7dc

hvm: Ensure ioemu sees media-change events even when media filename
remains constant my writing a dummy blank string first.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Wed Jun 20 14:41:27 2007 +0100 (2007-06-20)
parents ea52a66e43a8
children 168b143a1a88
files tools/python/xen/xend/server/blkif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/blkif.py	Wed Jun 20 14:36:11 2007 +0100
     1.2 +++ b/tools/python/xen/xend/server/blkif.py	Wed Jun 20 14:41:27 2007 +0100
     1.3 @@ -98,6 +98,11 @@ class BlkifController(DevController):
     1.4  
     1.5          if (dev_type == 'cdrom' and new_front['device-type'] == 'cdrom' and
     1.6              dev == new_back['dev'] and mode == 'r'):
     1.7 +            # dummy device
     1.8 +            self.writeBackend(devid,
     1.9 +                              'type', new_back['type'],
    1.10 +                              'params', '')
    1.11 +            # new backend-device
    1.12              self.writeBackend(devid,
    1.13                                'type', new_back['type'],
    1.14                                'params', new_back['params'])