Ewan Mellor
0a8e4657af
Implement network.set_{name_{label,description},default_{gateway,netmask}}.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 16:36:48 +00:00
Ewan Mellor
05c6990f46
Implement network.get_{name_{label,description},default_{gateway,netmask}}.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 16:32:35 +00:00
Ewan Mellor
d33afed19d
Change the way that networks and PIFs relate to each other -- the PIF holds a
...
reference to the network (and the host) not the other way around. Persist only
the necessary details for the network (not the set of PIFs and VIFs).
Fix the plumbing of the network class inside XendAPI, and implement a few more
functions.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 16:26:51 +00:00
Ewan Mellor
c1a482bad3
Cope with corrupt or empty VDI config files. Have to_record return strings
...
rather than integers, as required by the Xen-API spec.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 16:24:15 +00:00
Ewan Mellor
5474facc9b
Change the way that MESSAGE_PARAMETER_COUNT_MISMATCH is diagnosed (using a
...
separate dictionary to record parameter counts, rather than trying to parse them
out of the exception) and tidy up the validator preprocessing and the
validators themselves.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 16:20:23 +00:00
Ewan Mellor
36d5fb9d37
Plumb the new PIF and network implementations in through the XendAPI class.
...
Use the new stateful records to save host, SR, network, and PIF configuration.
Add extra functionality to the SR class, to calculate capacities et al.
By Alastair Tse <atse@xensource.com >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 15:04:28 +00:00
Ewan Mellor
d3fa64928f
Added get_record method.
...
By Alastair Tse <atse@xensource.com >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 14:59:11 +00:00
Ewan Mellor
d9510a25ab
New XendNetwork and XendPIF classes, for implementing the Xen-API network and
...
PIF classes.
By Alastair Tse <atse@xensource.com >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 14:47:36 +00:00
Ewan Mellor
3e9ef3ef0a
Added support for state records in Xend, for keeping storage and network
...
details.
By Alastair Tse <atse@xensource.com >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 14:38:25 +00:00
Ewan Mellor
6e59829ed2
Adjust the argument counts for a MESSAGE_PARAMETER_COUNT_MISMATCH to account for
...
the fact that XenAPI adds the session handle transparently.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-25 14:32:41 +00:00
Ewan Mellor
84172b6306
Don't try to copy the .mo files if they haven't been built.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-23 21:32:05 +00:00
Ewan Mellor
5bde93a974
Added retry behaviour when receiving SESSION_INVALID. This means that xm shell
...
and XenAPI.Session will reauthenticate across a Xend restart.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-23 20:20:34 +00:00
Ewan Mellor
42a0276111
Only build the message database if msgfmt is installed.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-23 19:06:31 +00:00
Ewan Mellor
8ecdc794ab
Added I18N support for Xen-API error codes.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-23 11:24:10 +00:00
Ewan Mellor
055785c1c8
Move get_by_uuid to the right place to have the input validated. The recent
...
move was wrong.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-23 11:23:27 +00:00
kaf24@firebug.cl.cam.ac.uk
c9deb7c4a3
More 'const' cleanups (and fixes, for Solaris).
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-12-23 09:38:07 +00:00
Tim Deegan
a20cd2c5ce
[HVM] Revert cset 13103 for now, as it is causing boot errors.
...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2006-12-22 22:57:47 +00:00
Alastair Tse
720520b42d
[XEND] Fix parsing of bootloader and bootloader_args in XendConfig
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-12-22 11:58:22 +00:00
Ewan Mellor
86650d1bd2
Added Xen-API-style error handling for INTERNAL_ERROR and
...
MESSAGE_METHOD_UNKNOWN. Only add the Xen-API methods to the official Xen-API
XML-RPC server, not to the legacy one.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-22 11:39:29 +00:00
Ewan Mellor
9cb668c334
Move the decoration of all the Xen-API methods out of XendAPI.__init__ and
...
into the module scope. This avoids the decorators being added multiple times,
once for each server running.
Fix handling of MESSAGE_PARAMETER_COUNT_MISMATCH in many cases. Move the
get_by_uuid declarations, so that those functions get the per-class validator
as well, to check for existence of the object requested.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-22 11:38:05 +00:00
Ewan Mellor
4de19fce56
Cope with a response that's not a dictionary.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-22 11:34:13 +00:00
Ewan Mellor
a72da7c894
Add a function for creating a domain from an existing XendConfig, and use that
...
on reboot, rather than writing out sxp and reparsing.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-21 17:39:32 +00:00
kfraser@localhost.localdomain
2e9da9ee69
Create new public header directory for x86-specific definitions.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-12-21 16:20:11 +00:00
Alastair Tse
126fd46d21
[XEND] Xen API commands cleanup.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-12-21 14:49:19 +00:00
Alastair Tse
eb6c68c585
[XEND] Minor syntax cleanup in security.py for sxp parsing.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-12-21 14:33:37 +00:00
Ewan Mellor
78e2e56bdc
Implement the major part of the new error handling for the Xen-API.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-21 15:16:25 +00:00
kfraser@localhost.localdomain
f9396bbfe8
Improve consistency of type-attribute usage (volatile/const).
...
From: Christoph Egger <Christoph.Egger@amd.com >
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-12-21 13:58:51 +00:00
Tim Deegan
95dae30a62
[QEMU] Align VGA ram allocation
...
This makes the SSE-optimized vram_dirty() safe again.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2006-12-21 13:43:19 +00:00
Alastair Tse
bbfa63024e
[XEND] Add cpu_weight and cpu_cap parsing for SXP config create
...
Reported by Masaki Kanno on :
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=835
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-12-21 12:08:27 +00:00
Alastair Tse
3f3404d127
[XM] Throw proper exception for xm console for unstarted domains.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-12-21 12:05:41 +00:00
kfraser@localhost.localdomain
e4caeac504
[HVM] Emulates HPET in hypervisor and extend ACPI tables.
...
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com >
Signed-off-by: Eddie Dong <eddie.dong@intel.com >
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com >
2006-12-21 12:05:34 +00:00
Christian Limpach
d158b8d4ec
[qemu patches] Update patches upto changeset 13113:fd1ccd818f2c.
...
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
2006-12-21 11:33:15 +00:00
kfraser@localhost.localdomain
878729b1cf
[QEMU] Include pthread.h.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-12-21 11:06:37 +00:00
Christian Limpach
05bc927f90
[qemu patches] Update patches upto changeset 13108:ed815cbdc90e.
...
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
2006-12-20 15:22:46 +00:00
kfraser@localhost.localdomain
0a967eccec
[XEN] Emulator extensions to decode ModRM.MOD == 3.
...
This allows emulation of register-only instructions.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-12-20 15:16:13 +00:00
Tim Deegan
6f7ff73d57
[HVM] Add Etherboot option ROM, for network-booting HVM guests.
...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2006-12-20 11:59:54 +00:00
Tim Deegan
15fbe9ca52
[HVM] Add expansion-ROM boot support to the ROMBIOS
...
This is rudimentary support for parts of the BIOS Boot Specification,
just enough to use Etherboot ROM images.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2006-12-20 11:57:53 +00:00
kfraser@localhost.localdomain
db6dca73cd
[BLTAP] Use getpagesize() for portability.
...
Signed-off-by: Alex Williamson <alex.williamson@hp.com >
2006-12-20 10:11:45 +00:00
kfraser@localhost.localdomain
a6c89ee595
[LIBXC] Fix iteration over GDT in save/restore code.
...
Bug spotted by Tim Wood.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-12-20 10:06:33 +00:00
Julian Chesterfield
518df287df
Qcow-create reserve flag update.
...
Signed-off-by: Julian Chesterfield <julian@xensource.com >
2006-12-19 21:33:12 +00:00
Julian Chesterfield
9b27068f37
Qcow driver code cleanup:
...
- Remove global QCOW flags
- rename sparseness flag to -r fore 'reserve'
- Add ROUNDUP macro
- Check for qtruncate failures
Signed-off-by: Julian Chesterfield <julian@xensource.com >
2006-12-19 20:42:56 +00:00
Ewan Mellor
9dc2a309b5
Fix parsing of cpus in the guest configuration file.
...
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com >
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com >
2006-12-19 12:00:11 +00:00
Ewan Mellor
75bbf9d488
Fix _login to pass arguments to the server unconditionally, rather than
...
requiring precisely two on the client-side.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-18 00:14:40 +00:00
Ewan Mellor
6d6cd40676
Fix the parsing of the image sexpr to use PV_kernel et al, rather than the old
...
kernel_ variables. This fixes reboot of PV guests.
Also, give XendConfig its own logger, to allow us to tweak the log level for
that module independently.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-18 00:07:55 +00:00
Ewan Mellor
99ffd43bcd
Write the xfb configuration details to the store, rather than storing them in
...
memory. This ensures that the VM can be rebooted after a xend restart.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-18 00:00:57 +00:00
Ewan Mellor
c7272094f3
Minor tidyup.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-17 23:59:08 +00:00
Ewan Mellor
cbdf115ddb
Fix printing of usage when OptionError is thrown.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2006-12-17 18:24:40 +00:00
Ewan Mellor
92e6c93c21
Only try to label resources if ACM is enabled.
...
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2006-12-16 12:54:43 +00:00
Ewan Mellor
324ad7a4a8
An error occurs if the first detach was successful and the 2nd one is
...
not (of course). Return if the 1st detach is successful, try the 2nd one
if it was not successful. Throw an error if the 2nd one fails.
This should also fix problems I am currently seeing in the xm-test
suite.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2006-12-16 12:52:18 +00:00
Brendan Cully
24a6ed484b
Improve XendCheckpoint's forkHelper error handling.
...
When inputHandler raises an exception, close stdin and stdout in the
child before attempting to close stderr, which is held open by a
separate thread. Without this patch, exceptions raised by device
migration caused xend to hang on child.childerr.close().
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca >
2006-12-13 17:45:50 -08:00