Commit Graph
1927 Commits
Author SHA1 Message Date
Ewan Mellor a5ae2bb063 Have the sxp parsing cope when the cpus field is a list, which can happen
after a reboot.

From Daniele Palumbo <daniele@retaggio.net>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-25 10:34:17 +00:00
Alastair Tse f3dac803d3 [XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-25 10:29:33 +00:00
Alastair Tse ba01378600 [XEND] Fix typo in XendNode
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 18:06:14 +00:00
Ewan Mellor 787ef778e4 Fix device reordering that occurs when the config gets read into dictionaries.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-24 16:48:41 +00:00
Alastair Tse 16324b1aff [XEND] Add debug class to Xen API plus non-standard debug.wait().
debug.wait(seconds) will just do a time.sleep() so the task progress
support can be tested.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:59:09 +00:00
Alastair Tse 7d65668740 [XEND] Move decorate() to XendAPI.__new__ and have a static flag to
ensure it only runs at instantiation time, and only once per Xend
instance. Otherwise, decorate() runs on every invocation of
/usr/sbin/xend, even if it is xend stop.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:57:10 +00:00
Alastair Tse 2478f46117 [XENAPI] Make test script attempt to login with blank credentials
before prompting for passwords.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:52:26 +00:00
Alastair Tse 64444f844e [XEND] Cleanup old domains in statistics monitor.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:50:58 +00:00
Alastair Tse 673b964755 [XENAPI] Add vif-list to xapi.py script
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:50:02 +00:00
Alastair Tse 464ed488c6 [XEND] Output exception to log files if XendAPI fails to instantiate.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:49:32 +00:00
Alastair Tse b712f9023e [XENAPI] Update test scripts to move from VBD.image to creating VDI's
with the uri attribute.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:48:58 +00:00
Alastair Tse d3cc627bf9 [XEND] Add support for multiple storage repositories.
Splits XendStorageRepository into a helper class and
XendQCowStorageRepo as the QCoW File backed repository. This gives us
the opportunity to introduce a pseudo storage repository to represent
the old way of specifying block devices. This is the
XendLocalStorageRepo.

Note that this still introduces a non-Xen API 'uri' attribute to VDIs
in order to support querying VDIs for their actual location relative
to the Xen host.

The QCoW backed repository is now named QCoW, and the pseudo-SR is
named Local.

This removes the 'image' attribute backwards-compat hack in VBDs in
the Xen API.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:47:31 +00:00
Alastair Tse cd402c7539 [XEND] Add missing Xen API methods
* Added session.get_all, task.get_by_name_label,
  host.get_by_name_label, VM.add_to_otherConfig,
  VM.remove_from_otherConfig

* Added implementations for VM.get_VCPUs_policy,
  VM.get_platform_std_vga, VM.get_vm_by_uuid,
  VM.get_platform_localtime, VM.get_platform_clock_offset,
  VM.get_platform_enable_audio, VM.get_platform_keymap,
  VM.get_otherConfig, VM.set_actions_after_shutdown,
  VM.set_actions_after_reboot, VM.set_actions_after_suspend,
  VM.set_actions_after_crash, VM.set_platform_std_VGA,
  VM.set_platform_serial, VM.set_platform_keymap,
  VM.set_platform_localtime, VM.set_platform_clock_offset,
  VM.set_platform_enable_audio, VM.set_otherConfig, VBD.destroy,
  VBD.get_io_read_kbs, VBD.get_io_write_kbs, VBD.get_all, VIF.destroy,
  VIF.get_VM, VIF.get_name, VIF.get_MTU, VIF.get_MAC, VIF.get_type,
  VIF.get_device, VIF.get_io_read_kbs, VIF.get_io_write_kbs,
  VIF.get_all, VTPM.destroy, VTPM.get_all

* Save devid of a device on creation in XendDomainInfo

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 14:25:21 +00:00
Alastair Tse e5e2ccbed4 [XEND] Make sure UUID in state store are not stored as unicode
objects.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 13:58:06 +00:00
Alastair Tse 697a75a8dd [XEND] Prevent invalid arguments for destroy event channels.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 13:54:37 +00:00
Alastair Tse ffe6776819 Test scripts for Xen API updated to support Async support 2007-01-24 13:49:25 +00:00
Alastair Tse c7cac39d2d [XEND] Add Task support in Xen API implementation.
Added progress tracking to some common methods like VM.start so the
progress during async invocation.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 13:26:26 +00:00
Alastair Tse d3774c5c93 [XEND] Add missing XendMonitor.py
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 12:26:19 +00:00
Alastair Tse a19ccaa253 [XEND] Add simple VCPUs, VBDs, VIFs statistics monitoring
Keep track of xentop like statistics to expose through the Xen API

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 12:09:41 +00:00
Alastair Tse e8d1d26031 [XEND] Strip suffix from device name and add support for 'VBD.type'
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 12:07:54 +00:00
Alastair Tse dc59dbf327 [XEND] Save model attribute for HVM VIFs
This solves the problem of HVM VIFs forgetting their model config on
reboot.

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=867

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-22 17:31:15 +00:00
Alastair Tse c1e978c7cf [XEND] Fix get_dev_property_by_uuid
This patch replaces calls to get_dev_property() by calls to
get_dev_property_by_uuid() in XenAPI.py and fixes the implementation
of get_dev_property_by_uuid.

I am adding a test case to the xapi grouptests to verify the fixes.
There's a FIXME note in the test case which should be looked at.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-22 17:23:53 +00:00
kfraser@localhost.localdomain efa2dca17a Fix failure to localise xm by preventing cd from writing to stdout
which gets incorrectly captured as a value for the bash for loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-22 17:07:16 +00:00
kfraser@localhost.localdomain 11f063545a [PVFB] Set keyboard layout of PVFB from configuration file.
For example:
keymap = "ja"

Default remains en-us.

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tomohiro Takahashi <takatom@tokyo.ssg.fujitsu.com>
Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2007-01-22 16:27:03 +00:00
kfraser@localhost.localdomain f4e8a7e419 Implement clean return from save/restore failure (so that original
domain can continue execution).
Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com>
2007-01-22 15:15:32 +00:00
Tim Deegan 7f39243d68 [PYGRUB] Plumb bootloader I/O through xenconsole.
- xend forwards console traffic between the running bootloader and a pty
   which it writes to the store so the xenconsole client can see it.
 - the xenconsole client handles the domain's console pty changing.
 - xm create no longer runs the bootloader.
 - pygrub gets '-i' option to explicitly request an interactive session.
 - xend unlocks the domain list during bootloading so that "xm console"
   can see the domain and attach to its console pty.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-22 11:49:14 +00:00
kfraser@localhost.localdomain 115209d91b [XEN] New event-channel reset operation.
Plumbed through libxenctrl to python.

From: Andrei Petrov <andrei.petrov@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-19 17:20:57 +00:00
kfraser@localhost.localdomain b686a7d235 xenstore: add XS_RESUME command; export it to xend.
This clears the shutdown flag for a domain in xenstore, allowing
subsequent shutdowns of the same domain to fire the appropriate
watches.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-01-19 15:28:34 +00:00
kfraser@localhost.localdomain e105919b01 Add resumedomain domctl to resume a domain after checkpoint.
Export resumedomain domctl to libxc, xend.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-01-19 15:23:41 +00:00
Ewan Mellor 61a18d9c54 Tidy up the restore path following HVM save/restore patches.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-19 10:12:39 +00:00
kfraser@localhost.localdomain 0511df5aec Merge with xen-ia64-unstable.hg 2007-01-18 18:25:04 +00:00
Ewan Mellor ca662595dc Allow vcpu_avail to be specified in the configuration file. Rationalise our
use of online_vcpus and max_vcpu_id, keeping track of the configured value in
vcpus_number.

Fix HVM SMP configuration to use the XendDomainInfo.getVCpuCount() call that
is used everywhere else, rather than parsing it out of the device config.

Fix xm list to show the configured VCPU count when the VM is down.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-18 17:48:59 +00:00
Alastair Tse b8a73ce6fe Fix get_config_value fix
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-18 17:24:40 +00:00
Ewan Mellor 1ab8a4153b Fix get_config_value call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-18 17:01:44 +00:00
awilliam@xenbuild2.aw 9b7ae1d44f merge with xen-unstable.hg 2007-01-17 21:31:22 -07:00
kfraser@localhost.localdomain 727e8b4154 [XEND] Fix warning about 'cpus' option on domain creation.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-01-17 14:54:59 +00:00
kfraser@localhost.localdomain edf5361fb2 Add scheduler name to 'xm info' output.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-01-17 14:54:06 +00:00
Tim Deegan 4a13cf1b70 [HVM] save restore: frame work
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

frame work for HVM save restore in Control Panel
2007-01-18 16:48:03 +00:00
Alastair Tse 53a668c52d [XEND] Change SrvServer to not require sockets to be non-blocking.
Set all spawned server threads to be daemonic and make sure their
sockets are closed properly using shutdown() and close(), otherwise
reload will complain about the "Address still in use."

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-18 15:52:23 +00:00
john.levon@sun.com d5ff71aae1 Solaris should used a netback of type 'SUNW_mac' and 'vif-vnic' as the
vif-script by default.

Signed-off-by: David Edmondson <dme@sun.com>
2007-01-16 19:44:09 -08:00
Ewan Mellor 674fb7f63e Allow xend configuration via Solaris SMF as well as the config file.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-18 15:07:51 +00:00
Ewan Mellor 2dd9828c75 Rename XendRoot to XendOptions.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-18 15:03:06 +00:00
Alastair Tse 292c6bcd6a [XEND] Fix order of kernel argument construction to prevent arg repeat bug
Make sure user specified kernel args are appended at the end but also
make sure that we do not duplicate root= and ip=.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-18 15:04:59 +00:00
Steven Hand 236c16423b Enable lazy (on-demand) allocation of memory to a guest being restored; this
means that ballooned down domains only require as much memory as is currently
being used (rather than their max) when being restored from save, or when
being migrated.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-01-16 10:02:50 +00:00
awilliam@xenbuild2.aw b5a65552a9 merge with xen-unstable.hg 2007-01-15 15:15:26 -07:00
kfraser@localhost.localdomain 8c8d60ad1a Add vfb config examples.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 14:43:50 +00:00
Alastair Tse b156729779 [XEND] Device update should handle SXP without 'device' as first
param.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-11 17:03:11 +00:00
Alastair Tse 85bc6f4326 [XEND] Fix broken block-configure.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-11 16:36:46 +00:00
awilliam@xenbuild2.aw a77c31c882 merge with xen-unstable.hg 2007-01-10 08:40:47 -07:00
awilliam@xenbuild2.aw 6ed3af384f [IA64] Clean up VTi memory initialization logic
This patch makes the logic in setup_guest() more clear.
domain_translate_gpfn_list() is now gone, so we can make
memory initializtion code simple.
Xend passes memory size which is a sum of normal memory
size and GFW memory to QEMU and Libxc. This patch fixes
this issue.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-01-10 08:00:50 -07:00