Commit Graph
1996 Commits
Author SHA1 Message Date
Ewan Mellor 8ae342b80b Added default for the vcpus_params key.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-02 14:32:48 +00:00
Ewan Mellor 8389ab43f5 Added host.dmesg method.
Also, fixed all of the host methods, which had been broken by the introduction
of the host_metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-02 10:25:17 +00:00
Ewan Mellor d650ce4366 Remove VM_power_state value ShuttingDown. This should be indicated with
an in-progress task, when known.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-02 10:07:58 +00:00
Ewan Mellor 437919c58f Remove some obsolete constants (XEN_API_DRIVER_TYPE, XEN_API_BOOT_TYPE).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-02 10:03:21 +00:00
Ewan Mellor d1e7d46990 Clean up some cruft.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 18:45:50 +00:00
Ewan Mellor f51cfb888b Treat the empty string as an absent UUID, not an invalid one. Fix to_sxp
wrt dictionaries.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 18:15:36 +00:00
Ewan Mellor 19b7983432 Return the stored vcpus_params if the domain is not running.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 18:14:40 +00:00
Ewan Mellor fa39434f9a Fix SDL option for HVM domains.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:44:00 +00:00
Ewan Mellor c3bf42e922 Fix handling of HVM boot.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:32:16 +00:00
Ewan Mellor f9d2dae496 Fix merge conflict between new HVM console handling and new HVM boot handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:31:34 +00:00
Ewan Mellor d6f8b69ced Fix HVM save/restore wrt console handling.
From Tim Deegan <Tim.Deegan@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:30:22 +00:00
Tim Deegan 45d4d259a2 Merge 2007-02-01 15:03:55 +00:00
Tim Deegan 479f9c8a5d [PYGRUB] Invoke pygrub with TERM=vt100
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-01 15:03:37 +00:00
Ewan Mellor 73c92d7bb2 Change VM.HVM_boot to VM.HVM_boot_policy and VM.HVM_boot_params.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 11:55:31 +00:00
Alastair Tse 68429d2e80 [XEND] Fix typos in vfb/vnc detect in image.py
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:22:33 +00:00
Alastair Tse ad643e3ef0 [XENAPI] Remove some deprecated fields from the Xen API test script.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:06:40 +00:00
Alastair Tse 48af590de3 [XEND] Use VDI.location rather than VDI.image_uri/uri for Xen API
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:05:58 +00:00
Alastair Tse 975e8c9154 [XEND] Make sure other_config is by default an empty string map.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:04:06 +00:00
Alastair Tse 1f66881925 [XEND] Make VBD.bootable in XendConfig kept as int.
This will prevent it from being displayed as 'False' and 'True'
everywhere in the device SXP.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:03:22 +00:00
Alastair Tse f32d400767 [XEND] Hide other_config from console and vfb SXP to prevent string
representation of dict to appear in SXP.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:02:20 +00:00
Alastair Tse c8cce1eddd [XEND] Fix VCPU_params to return string map.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:01:09 +00:00
Alastair Tse f492dd97fb [XEND] Merge VFB support for PV and HVM guests.
This patch merges the way VFB are represented inside Xend by making
HVM VNC consoles use the VFB as its configuration object.

It preserves the way options are specified through xm but will create
a new VFB device that is used by image.py to put vnc config into
qemu-dm's command line. The parsing is moved into image.py's
parseDeviceModel() rather than in configVNC().

Through the Xen API, you can create a 'console' of protocol 'rfb' and
end up with a VNC console, on both HVM and PV guests. The location of
the connecting port is stored in the location attribute of the console
object. This is updated on each XendDomainInfo.update() if it
changes.

Also fixes missing read of the vnclisten and HVM_boot from the
config when initialised via xm. Makes sure bootable attribute for VBD
is store as an int when making SXP config.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 13:20:36 +00:00
Alastair Tse 6501ac6994 [XEND] Make python-pam warning only appear if using XenAPI
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 12:58:41 +00:00
Ewan Mellor 8a3405e402 Added VM_metrics class, taking some of the fields from VM. Make VM.static_max
and static_min read-write.  Added VM.VCPUs/{max,at_startup}.  Make
VM.VCPUs/params a string -> string map.

This is the modelling, the C bindings, and the message file -- Xend support to
follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 18:30:18 +00:00
Ewan Mellor f2c7f02e99 Fix XendNode when no host state is saved.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 16:55:51 +00:00
Ewan Mellor 37704ecd82 Fix typo, as suggested by Stefan Berger.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 16:32:50 +00:00
Ewan Mellor 77442ed1d3 Added task.session field.
Fix session.get_by_uuid and get_uuid, and remove session.get_all.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 16:09:16 +00:00
Ewan Mellor 899dc94915 Added VM.is_control_domain field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 15:27:10 +00:00
kaf24@localhost.localdomain a36b1fbb02 Align vTPM support in the Xen-API, documentation and lib-xen
(after the recent changes).

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-30 14:51:05 +00:00
Ewan Mellor a417e6aaaf Added backreference from PIF_metrics to PIF, and added a uuid to the session
record.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 13:53:44 +00:00
Ewan Mellor 4704ee8540 Added uuid to the PIF_metrics record.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 13:52:03 +00:00
Ewan Mellor f397e61b89 Added uuid to the PIF record.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 13:51:45 +00:00
Ewan Mellor e9363fa86b Added host_metrics class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 13:46:46 +00:00
kaf24@localhost.localdomain 5d63cf3871 Fix passing keymap parameter to xen-vncfb.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
2007-01-30 13:42:19 +00:00
Alastair Tse 52c24132c3 [XEND] Fix bootable flag bypass in XendConfig
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-30 11:56:27 +00:00
Alastair Tse 9fd37a7622 [XEND] Unparsable VLAN numbers should default to -1
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-30 11:37:18 +00:00
Ewan Mellor 4708b773f5 Set the log level back to WARN, reverting accidentally committed change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 11:14:23 +00:00
Ewan Mellor 9057060b19 Added host.other_config.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 01:23:58 +00:00
Ewan Mellor 2ee3755575 Remove XEN_API_CPU_FEATURE enum.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 00:36:43 +00:00
Ewan Mellor ff9fb017b3 Remove the CPU feature handling, unimplementable as it stands.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 00:10:05 +00:00
Ewan Mellor bc1f80dd2c Move the io bandwidth fields from PIF onto a new PIF_metrics class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-29 19:00:48 +00:00
Ewan Mellor 8ed82355a0 Remove the VDI.parent and VDI.children fields -- this needs more thinking out,
and cannot be supported in this form.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-29 12:19:40 +00:00
Ewan Mellor 22309ac566 Rename VM.otherConfig to VM.other_config, for consistency with the other fields,
and implement add_to_other_config and remove_from_other_config in the C
bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-29 12:11:13 +00:00
Ewan Mellor fbe0a45886 Remove VBD.driver, VIF.type, VIF.name, VTPM.driver. This modelling was never
correct, and the values are best left implicit.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-29 00:05:40 +00:00
Ewan Mellor c7f15f456a Added TASK_HANDLE_INVALID to the messages file.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-28 23:06:21 +00:00
Ewan Mellor 02f22726b5 Tidy up the VBD API calls.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-28 23:05:59 +00:00
Ewan Mellor 6a288c4b02 Match recent changes to the task class in XenAPI with the get_record call here.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-28 18:39:17 +00:00
Ewan Mellor fcbd69e648 Fix bootloader handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-28 18:38:47 +00:00
Ewan Mellor 1e382e1113 Fix the handling of MESSAGE_METHOD_UNKNOWN, MESSAGE_PARAMETER_COUNT_MISMATCH,
through the AsyncProxy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-28 18:37:42 +00:00
Ewan Mellor 063417a54b Add task.allowed_operations field, and task.cancel message. The
task_status_type enum has gained cancelling and cancelled values.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-28 18:05:13 +00:00