mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Update consoled to use xs_get_domain_path and cleanup domain tracking code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
7b89279cfb
commit
b042c7d63f
4 files changed
+135
-89
No files matched your search
@@ -231,7 +231,7 @@ class XendDomainInfo:
|
||||
DBVar('start_time', ty='float'),
|
||||
DBVar('state', ty='str'),
|
||||
DBVar('store_mfn', ty='long'),
|
||||
DBVar('console_mfn', ty='long'),
|
||||
DBVar('console_mfn', ty='long', path="console/ring-ref"),
|
||||
DBVar('restart_mode', ty='str'),
|
||||
DBVar('restart_state', ty='str'),
|
||||
DBVar('restart_time', ty='float'),
|
||||
@@ -302,7 +302,7 @@ class XendDomainInfo:
|
||||
self.store_channel.saveToDB(self.db.addChild("store_channel"),
|
||||
save=save)
|
||||
if self.console_channel:
|
||||
self.console_channel.saveToDB(self.db.addChild("console_channel"),
|
||||
self.console_channel.saveToDB(self.db.addChild("console/console_channel"),
|
||||
save=save)
|
||||
if self.image:
|
||||
self.image.exportToDB(save=save, sync=sync)
|
||||
@@ -886,7 +886,7 @@ class XendDomainInfo:
|
||||
"""
|
||||
self.channel = self.openChannel("channel", 0, 1)
|
||||
self.store_channel = self.eventChannel("store_channel")
|
||||
self.console_channel = self.eventChannel("console_channel")
|
||||
self.console_channel = self.eventChannel("console/console_channel")
|
||||
|
||||
def create_configured_devices(self):
|
||||
devices = sxp.children(self.config, 'device')
|
||||
|
||||