ia64/xen-unstable

changeset 19802:f3211c71e8f0

xend: fix BlktapController's device creation

Reset BlktapController's device class back to 'tap' once the device
has been created. This fixes save/restore for VMs with blktap2 disks.

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
Signed-off-by: Dutch Meyer <dmeyer@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 19 08:43:28 2009 +0100 (2009-06-19)
parents c3a94ac4c031
children 07fea69baadc
files tools/python/xen/xend/server/BlktapController.py
line diff
     1.1 --- a/tools/python/xen/xend/server/BlktapController.py	Fri Jun 19 08:42:58 2009 +0100
     1.2 +++ b/tools/python/xen/xend/server/BlktapController.py	Fri Jun 19 08:43:28 2009 +0100
     1.3 @@ -159,6 +159,8 @@ class BlktapController(BlkifController):
     1.4          #modify the configuration to attach as a vbd, now that the
     1.5          #device is configured.  Then continue to create the device
     1.6          config.update({'uname' : 'phy:' + device.rstrip()})
     1.7 +
     1.8          self.deviceClass='vbd'
     1.9 -
    1.10 -        return BlkifController.createDevice(self, config);
    1.11 +        devid = BlkifController.createDevice(self, config)
    1.12 +        self.deviceClass='tap'
    1.13 +        return devid