Commit Graph
2033 Commits
Author SHA1 Message Date
Ewan Mellor b33bb1e4d9 Implementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
bindings for many of the get_all methods elsewhere that Xend already
implemented.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-27 01:05:32 +00:00
Ewan Mellor d8309d27a1 Added some more fields to host_cpu.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-27 00:37:27 +00:00
Ewan Mellor 9923350256 Add argument check for xm network-attach command
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-26 15:50:50 +00:00
Ewan Mellor d804137cf6 Fix xm vcpu-set command for when wrong number of VCPU is given
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-26 15:41:35 +00:00
Ewan Mellor bb5e8c6299 Move credit scheduler configuration into XendDomainInfo, so that the domain
will be cleaned up correctly if the scheduler parameters are wrong.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-26 15:39:34 +00:00
kfraser@localhost.localdomain 4a2a7137e6 Save elfnotes in VM sxpr under image/notes, and load them on restore.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-26 09:59:56 +00:00
kfraser@localhost.localdomain 41881805d1 Write Xen ELF notes into xenstore on domain build.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-26 09:59:33 +00:00
Ewan Mellor f8b1ed8706 Remove unused network.default_{gateway,netmask}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-26 00:07:14 +00:00
Ewan Mellor 51b6900b84 Redefine units of VDI.virtual_size to be bytes, not sectors.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-25 23:45:39 +00:00
Ewan Mellor 496ee4e22a Added host.capabilities field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-25 23:37:05 +00:00
Ewan Mellor 9421735453 Added a VM.domid field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-25 22:31:43 +00:00
Ewan Mellor 0982a6eac0 Fix typo in host record.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-25 21:53:39 +00:00
Ewan Mellor bc26603f4b Added tab completion for methods and object references to xm shell.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-25 21:52:54 +00:00
Ewan Mellor 5baa3458c5 Added host.API_version_{major,minor,vendor,vendor_implementation} fields.
Fix missing host.other_config from the record returned by Xend.

Improve the error diagnosis when we catch TypeError.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-25 17:20:51 +00:00
Keir Fraser da97fcd329 Support new xm command: xm trigger <Domain> <nmi|reset|init> [<VCPU>]
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-02-24 14:10:27 +00:00
Ewan Mellor 160d895b13 Added host.supported_bootloaders field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 22:54:30 +00:00
Ewan Mellor c24f2b2bec Remove host.create and host.destroy -- these never made any sense.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 22:46:21 +00:00
Ewan Mellor fa4627735b Split the VIF I/O statistics fields out into a VIF_metrics class. Implement
this in Xend, and fix the VBD_metrics implementation.  Implement C bindings
also.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 21:55:11 +00:00
Ewan Mellor d8d0f7d08c Split the VBD I/O statistics out into a VBD_metrics class. Document the
VBD.type field, and add it to the C bindings (this was already in Xend).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 21:28:19 +00:00
Ewan Mellor d5ae26ac7a Replace the X_HANDLE_INVALID error codes with a single HANDLE_INVALID that
names the class as a parameter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 15:24:01 +00:00
kfraser@localhost.localdomain fd564aa780 Fix vncdisplay config option for HVM guests.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
2007-02-16 09:57:25 +00:00
Wim Colgate c25f8d6b93 Protect self.domid from being empty 2007-02-14 12:18:32 -08:00
kfraser@localhost.localdomain b3f09a8a4f Merge with xenppc-unstable.hg 2007-02-14 19:01:35 +00:00
Ewan Mellor 1f22680150 Fix localtime setting for PV domains.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2007-02-08 16:52:05 +00:00
Tim Deegan de602931ef [HVM] Save/restore: don't try to set the console ring MFN
in a HVM restore.  In particular, don't print an uninitialized stack
variable, which causes XMLRPC exceptions in xend.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-08 15:00:33 +00:00
wim@xen-wim.site 51efffe712 [blktap] Allow HVM booting from blktap device(s)
Signed-off-by: wim colgate <wim@xensource.com>
2007-02-07 16:53:01 -08:00
Tim Deegan 431be892ae [XEND] Open save/restore files with O_LARGEFILE if possible
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-07 17:29:21 +00:00
kfraser@localhost.localdomain a8d5290171 Improve hotplug script error reporting via xenstore.
Use this to detect and report up-front in vif-bridge script whether
the bridge device exists or not.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-02-07 16:22:55 +00:00
Ewan Mellor 0ea3c30b5b Fix xm sched-credit when given an invalid domain name.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-06 16:05:29 +00:00
Ewan Mellor 19bcd321c5 Fix XendLogging to work on Python 2.4.0 and 2.4.1 (the logging library interface
changed with 2.4.2, not 2.4.0).

Signed-off-by: Qing He <qing.he@intel.com>
2007-02-06 15:37:11 +00:00
Brendan Cully 350318c598 Make sure OptVals.quiet is always present (fixes xm shutdown -w).
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-01-31 11:05:36 -08:00
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