mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1766 (42c17071SPDLo7qPlXAiQzrKjMu6Mw)
Add xenbus driver. XendDomainInfo.py: Connect/Disconnect domains to/from store. Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored) Signed-off-by: Mike Wray <mike.wray@hp.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
92a9aed70c
commit
a575a4a3a8
9 files changed
+1749
-9
No files matched your search
@@ -565,10 +565,10 @@ class XendDomainInfo:
|
||||
self.create_channel()
|
||||
self.image.createImage()
|
||||
self.exportToDB()
|
||||
#if self.store_channel:
|
||||
# self.db.introduceDomain(self.id,
|
||||
# self.store_mfn,
|
||||
# self.store_channel)
|
||||
if self.store_channel:
|
||||
self.db.introduceDomain(self.id,
|
||||
self.store_mfn,
|
||||
self.store_channel)
|
||||
|
||||
def delete(self):
|
||||
"""Delete the vm's db.
|
||||
@@ -615,11 +615,11 @@ class XendDomainInfo:
|
||||
self.store_channel = None
|
||||
except:
|
||||
pass
|
||||
#try:
|
||||
# self.db.releaseDomain(self.id)
|
||||
#except Exception, ex:
|
||||
# log.warning("error in domain release on xenstore: %s", ex)
|
||||
# pass
|
||||
try:
|
||||
self.db.releaseDomain(self.id)
|
||||
except Exception, ex:
|
||||
log.warning("error in domain release on xenstore: %s", ex)
|
||||
pass
|
||||
if self.image:
|
||||
try:
|
||||
self.image.destroy()
|
||||
|
||||