Commit Graph
4561 Commits
Author SHA1 Message Date
Ewan Mellor b16ecf8d4e Added Brctl.get_state, to support upcoming PIF implementation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 15:39:32 +00:00
Ewan Mellor 85a87721a7 Override logging.Logger.findCaller so that the trace function here does not
appear as the source of log messages.

Remove the logger name from the log format -- it's adding no useful information.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 15:39:04 +00:00
Ewan Mellor bbe21e102e Tidy and fix bindings for the SR class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 11:49:59 +00:00
Ewan Mellor 866cc9cd43 Fix HVM booting through Xen-API when the kernel is unspecified.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 00:38:01 +00:00
Ewan Mellor 53211200e3 Tidy up bindings for VDI class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 00:35:27 +00:00
kaf24@localhost.localdomain 175eac1a6d [HVM] Route ISA IRQ 0 to IOAPIC GSI 2, just like 99% of native systems.
This is a built-in assumption of HPET 'legacy' IRQ routing, which is
why we have changed to this routing strategy now.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-26 19:49:11 +00:00
Ewan Mellor 894243ac7b Implement VM_BAD_POWER_STATE handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 19:29:05 +00:00
Ewan Mellor 686cfca86a Persist the VLAN setting.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 17:02:16 +00:00
Ewan Mellor 0d46f85d6c Fix plumbing for PIF calls. Change xen_api_success to convert None to the
empty string, to make it easier to write setters.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 16:56:46 +00:00
Ewan Mellor 8f56ead6e6 Persist network details when they change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 16:42:24 +00:00
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