Commit Graph
2025 Commits
Author SHA1 Message Date
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
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