emellor@ewan
c353c7fdd0
Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
2005-09-18 14:42:13 +01:00
emellor@ewan
00cac7da1c
In all cases, move the creation of a new transaction outside of the block
...
handling exceptions raised inside that transaction. If the creation (start) of
the transaction fails, then t has not been assigned, and in any case no
transaction has been created, so it is wrong to attempt to abort that
(non-existent) transaction.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-09-18 10:09:22 +01:00
emellor@ewan
ab2a633ba1
Remove assignment to unused field memory_target.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-09-17 22:34:34 +01:00
emellor@ewan
68d5f41cac
Use XendDomainInfo.getDomain, getName to decouple XendDomain from the internals
...
of XendDomainInfo, prior to changing those internals.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-09-17 21:00:33 +01:00
emellor@ewan
8098ee1674
Remove unused restoreFromDB, saveToDB.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2005-09-17 20:23:53 +01:00
emellor@ewan
9956336767
Replace XendDomainInfo.setStoreChannel with XendDomainInfo.closeStoreChannel.
...
setStoreChannel was only ever called with channel=None (implying that the
current channel would be closed) so the other code there was superfluous.
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 18:09:31 +01:00
emellor@ewan
0fd36627da
Added getVCpuCount to XendDomainInfo and use that and getName, getDomain,
...
getTargetMemory inside image.py to decouple the latter from the internals of
the former. Move the definition of xc inside image.py to please pylint.
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 17:34:58 +01:00
emellor@ewan
60ebaf4dca
Fix indentation.
2005-09-17 16:11:49 +01:00
emellor@ewan
b92a3ca11f
Added getTargetMemory, getSsidref methods to XendDomainInfo, and use these and
...
getDomain, getName in SrvDomainDir, to decouple the latter from the internals of
the former, in preparation for changes internal to XendDomainInfo.
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 16:10:04 +01:00
emellor@ewan
d048bdf4fc
Changed ssidref default to 0 when parsing config file.
...
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 10:52:31 +01:00
emellor@ewan
b7411027d6
Added diagnostic message to exception when TypeError occurs on write.
2005-09-17 10:49:14 +01:00
emellor@ewan
fd3926cff3
Removed unused getDB method.
...
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 10:46:55 +01:00
emellor@ewan
80ad0e7711
Moved xroot variable to not confuse pylint (and me).
...
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 10:44:29 +01:00
emellor@ewan
8a91f23c2b
Removed unused impotr and marked some parameters as unused.
...
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 10:42:49 +01:00
emellor@ewan
a7106466d1
Rename feilds to fields throughout.
...
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 10:33:50 +01:00
emellor@ewan
31e173c963
Remove unused import, and unused class TwistedAdapter. Mark one variable as
...
unused.
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 10:29:33 +01:00
emellor@ewan
eba9ff6ab9
Added _1,.._5 to dummy-variables, so that we can specify multiple unused
...
parameters in our code. Removed map and filter from bad-functions - I don't
think that we have any problem with functional programming styles!
Signed-off-by: Ewan Mellor<ewan@xensource.com >
2005-09-17 10:22:42 +01:00
cl349@firebug.cl.cam.ac.uk
41409e43bd
Cleanup domain listing on xend start. Fix reaper some more.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 23:55:50 +00:00
cl349@firebug.cl.cam.ac.uk
9c7fd21cca
Add bindings for xs_get_domain_path().
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 22:27:04 +00:00
cl349@firebug.cl.cam.ac.uk
ff6958a316
Don't run reap() or domain_restarts() as side-effects of refresh.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 20:12:42 +00:00
cl349@firebug.cl.cam.ac.uk
9b707eca60
Move dom0 setup code out of initial_refresh.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 20:03:57 +00:00
cl349@firebug.cl.cam.ac.uk
1bc5147c84
Remove pretty random cleanup code in _add_domain.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 20:02:18 +00:00
cl349@firebug.cl.cam.ac.uk
9a96bf893d
Use "vcpu" when referring to vcpus.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 19:11:39 +00:00
cl349@firebug.cl.cam.ac.uk
71a28c9e9d
Make dom0_enforce_cpus() use vcpu_hotplug rather than directly modifying the sysfs entries.
...
Directly modifying the sysfs entries causes the xenstore state of
a cpu's availability to be incorrect. Also slightly modify the
dom0-cpus description in the xend-config. Rather than specifying which
dom0 vcpus are to be used, it is now a target of how many vcpus to use
as pinvcpu ops are the preferred method for setting which physical cpu a
vcpu uses.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com >
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 19:08:36 +00:00
cl349@firebug.cl.cam.ac.uk
87371321cc
merge?
2005-09-16 18:59:59 +00:00
cl349@firebug.cl.cam.ac.uk
ea87907b81
Fix the control panel problem.
...
The new image handling structure broke the vmx guest loading.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com >
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 18:50:50 +00:00
cl349@firebug.cl.cam.ac.uk
0be4977779
Cleanup domain reaper and domain destruction functions.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 18:06:42 +00:00
cl349@firebug.cl.cam.ac.uk
a3dd96110a
Fix setStoreChannel(None) - fixes cleanup on destroy.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-16 18:05:03 +00:00
cl349@firebug.cl.cam.ac.uk
e6dd08d983
Simplify backend flag parsing.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-15 19:46:14 +00:00
cl349@firebug.cl.cam.ac.uk
5d7ce7cc39
Export block device read-only state into store.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-15 18:39:17 +00:00
cl349@firebug.cl.cam.ac.uk
7bf7e25879
Fix bootloader support some more.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-15 18:38:44 +00:00
cl349@firebug.cl.cam.ac.uk
8638ed8980
Maybe fix running bootloader after reboot.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-15 17:19:08 +00:00
cl349@firebug.cl.cam.ac.uk
69c01cf908
merge?
2005-09-15 16:55:32 +00:00
cl349@firebug.cl.cam.ac.uk
5d2ca06d84
Update image handling code for xstransact.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-15 16:55:05 +00:00
shand@ubuntu.eng.hq.xensource.com
e999e0f1ae
Actually update domain info when dom_get() succeeds.
...
Signed-off-by: Steven Hand <steven@xensource.com >
2005-09-15 08:15:48 -08:00
vh249@arcadians.cl.cam.ac.uk
1e2fc48ada
add support for ipv6 address in choose_vnc_display function
...
getting the port from the latest field, not the first one.
fix suggested by Nickolai Zeldovich. close bug #231
Signed-off-by: Vincent Hanquez <vincent@xensource.com >
2005-09-15 12:21:23 +00:00
cl349@firebug.cl.cam.ac.uk
c4bc27e939
Don't special case getDomainMemory for ia64.
...
This makes how we account the "system pages" consistent.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-15 09:21:10 +00:00
cl349@firebug.cl.cam.ac.uk
8db030c862
Cleanup timeout code for when socket is already in use.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-15 08:59:35 +00:00
kaf24@firebug.cl.cam.ac.uk
2ba4b43df9
merge?
2005-09-15 07:38:53 +00:00
shand@ubuntu.eng.hq.xensource.com
7de330334a
Deal with domain info going away (handle new error path introduced by
...
cset 6828). Believe Dan Smith is working up a more comprehensive patch.
Signed-off-by: Steven Hand <steven@xensource.com >
2005-09-14 20:12:54 -08:00
shand@ubuntu.eng.hq.xensource.com
e739a4d453
O_REUSEADDR is not enough to ensure we don't get address in use errors when
...
xend dies from a signal.
We implement a 30 second time to ensure we don't fail if we don't have to.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2005-09-14 17:46:40 -08:00
shand@ubuntu.eng.hq.xensource.com
590d9c58a1
Make sure xend start doesn't return until xend is ready to accept connections.
...
This means xend start && xm list actually works now (instead of throwing an
exception).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2005-09-14 17:45:51 -08:00
shand@ubuntu.eng.hq.xensource.com
b22d5eebe3
The dom destroy path is doing a dom_get on a non-existent domain to
...
ensure it is non-existent. This changes throws an explicit exception
when xc_domain_getinfo returns an error, instead of triggering an
internal python error. It then handles the exception in dom_get by
returning None, which callers already expect to mean failure.
Signed-off-by: Robert Read <robert@xensource.com >
2005-09-14 14:36:29 -08:00
djm@kirby.fc.hp.com
6be63db55d
Merge latest xen-unstable into xen-ia64-unstable to prep
...
for push back to xen-unstable
2005-09-14 15:36:10 -06:00
cl349@firebug.cl.cam.ac.uk
28a6a6b4c5
Switch most uses of write over to store.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-14 19:53:29 +00:00
cl349@firebug.cl.cam.ac.uk
eae219de6f
Explicit test for None.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-14 19:52:04 +00:00
cl349@firebug.cl.cam.ac.uk
7c3dc1de84
More syntactic sugar.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-14 19:34:13 +00:00
cl349@firebug.cl.cam.ac.uk
569f9c8878
Move start_time out of xend dir and use gather/store.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-14 19:30:08 +00:00
cl349@firebug.cl.cam.ac.uk
413f5b924c
Support removing nodes from store if value to store is None.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-14 19:29:25 +00:00
cl349@firebug.cl.cam.ac.uk
e995abd494
Add store function.
...
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
2005-09-14 19:22:31 +00:00