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
Hollis Blanchard
4c03b0792e
[POWERPC][XEN] Merge with xen-unstable.hg.
...
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com >
2007-02-06 15:03:52 -06:00
Jimi Xenidis
d22902b432
[XEN][XEND][POWERPC] Don't ignore shadow memory requirement
...
We don't need a custom buildDomain() anymore but we do need to provide a
shadow memory calculation.
- Create PPC_LinuxImageHandler class to implement
getRequiredShadowMemory().
- Derive prose builder from PPC_LinuxImageHandlerClass.
- Drop configure() as it is not needed according to Jimi.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com >
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com >
--HG--
extra : transplant_source : %09%80%DF%BA%E7F%80%5CQpNb%A1%BCF%03%CD%81PA
2007-01-25 15:55:25 -05:00
Jimi Xenidis
7ba577bada
[XEND][POWERPC] Remove FlatDeviceTree.py, eliminate devtree from prose builder.
...
Signed-off-by: Ryan Harper <ryanh@us.ibm.com >
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com >
2007-01-21 08:15:39 -05:00
Jimi Xenidis
c7c4025be9
[XEND][POWERPC] Move flat device tree construction from python to libxc for xc_linux_build().
...
Signed-off-by: Ryan Harper <ryanh@us.ibm.com >
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com >
2007-01-21 08:14:27 -05:00
Jimi Xenidis
6b06747394
[TOOLS][POWERPC] fixes for the prose builder.
...
Signed-off-by: Maria Butrico <butrico@watson.ibm.com >
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com >
--HG--
extra : transplant_source : %C1e%86%00%05%25%F9%D9%DF%BB%E36%D9%D4X%DD%08%B4J%0E
2007-01-17 19:37:20 -05: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
Tim Deegan
db442369b3
When booting via xm, only run the bootloader if it's in non-interactive mode:
...
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.
Signed-off-by: John Levon <john.levon@sun.com >
2007-01-09 13:24:45 +00:00
Tim Deegan
38d6397a83
Fix xm create direct call to XendBootloader
...
Signed-off-by: John Levon <john.levon@sun.com >
2007-01-09 13:24:44 +00:00
Tim Deegan
eb568d6624
Fix bootloader = "pygrub" via 'xm create'.
...
Signed-off-by: John Levon <john.levon@sun.com >
2007-01-09 13:24:43 +00:00
Tim Deegan
662e32f5cc
Fix auto-bootloading via 'xm create'.
...
Signed-off-by: John Levon <john.levon@sun.com >
2007-01-09 13:24:42 +00:00
Tim Deegan
8c119d2ee4
Pass in kernel/ramdisk settings to pygrub; if specified, don't try to use
...
grub.conf; this allows hands-off bootloading in the absence of a grub.conf.
It's also useful for specifying temporary changes etc.
Signed-off-by: John Levon <john.levon@sun.com >
2007-01-09 13:24:40 +00:00
Tim Deegan
b624e752bd
Fix for pygrub path on Solaris.
...
Signed-off-by: John Levon <john.levon@sun.com >
2007-01-09 13:24:40 +00:00
Ewan Mellor
2166b8b539
Do not call refreshShutdown in XendDomain for VM-list operations, as this
...
is unnecessary and expensive.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-01-09 11:52:15 +00:00