ia64/xen-unstable
changeset 6806:4ad19fe76d50
Store dom0 store ring-ref in store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author | cl349@firebug.cl.cam.ac.uk |
---|---|
date | Tue Sep 13 15:32:38 2005 +0000 (2005-09-13) |
parents | c2558a2fe658 |
children | 8ca0f98ba8e2 |
files | tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomainInfo.py Tue Sep 13 15:21:53 2005 +0000 1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Tue Sep 13 15:32:38 2005 +0000 1.3 @@ -1124,12 +1124,14 @@ class XendDomainInfo: 1.4 def dom0_init_store(self): 1.5 if not self.store_channel: 1.6 self.store_channel = self.eventChannel("store/port") 1.7 - self.store_mfn = xc.init_store(self.store_channel.port2) 1.8 - if self.store_mfn >= 0: 1.9 - IntroduceDomain(self.id, self.store_mfn, self.store_channel.port1, 1.10 - self.path) 1.11 - # get run-time value of vcpus and update store 1.12 - self.exportVCPUSToDB(dom_get(self.id)['vcpus']) 1.13 + if not self.store_channel: 1.14 + return 1.15 + ref = xc.init_store(self.store_channel.port2) 1.16 + if ref and ref >= 0: 1.17 + self.setStoreRef(ref) 1.18 + IntroduceDomain(self.id, ref, self.store_channel.port1, self.path) 1.19 + # get run-time value of vcpus and update store 1.20 + self.exportVCPUSToDB(dom_get(self.id)['vcpus']) 1.21 1.22 def vm_field_ignore(vm, config, val, index): 1.23 """Dummy config field handler used for fields with built-in handling.