[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Store dom0 store ring-ref in store.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID 4ad19fe76d50f96361e21638672359b8db96310f # Parent c2558a2fe6585ec87db5f2f47595efcb13b6858b Store dom0 store ring-ref in store. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r c2558a2fe658 -r 4ad19fe76d50 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Tue Sep 13 15:21:53 2005 +++ b/tools/python/xen/xend/XendDomainInfo.py Tue Sep 13 15:32:38 2005 @@ -1124,12 +1124,14 @@ def dom0_init_store(self): if not self.store_channel: self.store_channel = self.eventChannel("store/port") - self.store_mfn = xc.init_store(self.store_channel.port2) - if self.store_mfn >= 0: - IntroduceDomain(self.id, self.store_mfn, self.store_channel.port1, - self.path) - # get run-time value of vcpus and update store - self.exportVCPUSToDB(dom_get(self.id)['vcpus']) + if not self.store_channel: + return + ref = xc.init_store(self.store_channel.port2) + if ref and ref >= 0: + self.setStoreRef(ref) + IntroduceDomain(self.id, ref, self.store_channel.port1, self.path) + # get run-time value of vcpus and update store + self.exportVCPUSToDB(dom_get(self.id)['vcpus']) def vm_field_ignore(vm, config, val, index): """Dummy config field handler used for fields with built-in handling. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |