Commit Graph
1609 Commits
Author SHA1 Message Date
Alastair Tse c4a7eda6cd [XEND][XM] Move system memory reporting to XendConfig rather than getSysMem.
Remove the additional XMLRPC calls per domain just to get system
memory and instead make sure we update that value and return it via
the SXP that gets returned when xm list is called.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 12:36:20 +00:00
Ewan Mellor 218f1a9dc5 Write the /local/domain/<domid>/vm node early in the startup process
(immediately after the domain is created).  QEMU needs this in place when it
starts up, in order to find the VNC password.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 18:29:16 +00:00
Ewan Mellor 27c39debdc Ignore dying domains on recreate, and log the fact.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 18:27:31 +00:00
Ewan Mellor 0fb54203dd Don't complain about name non-uniqueness if one domain is dying. This happens
across a reboot regularly.  Inside _refresh, there is the occasion for new
domains to appear, if an existing domain reboots itself.  In this case, we
need to get the list of running domains from Xen again.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 12:56:45 +00:00
Ewan Mellor 063ac3b074 cpu_weight is now an int, not a float.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 12:26:34 +00:00
Ewan Mellor 6037d8bec8 Add a shutdownWatch field in the HVMImageHandler constructor, to avoid error
messages if creation fails and the watch gets torn down.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 12:25:56 +00:00
Ewan Mellor 3756da027a Refresh the domain list on domain_start or domain_create. We need to do this
so that the list of running domains is up-to-date for the name-uniqueness
check.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 11:13:50 +00:00
Ewan Mellor d1e3da560b Save the old domid when restarting, as it may get wiped out before we need to
log it (on restart failure).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 11:08:18 +00:00
Ewan Mellor ac31115528 This patch addresses bugzilla #649, enabling `xm list' to display the
actual amount of memory allocated by a guest.  Also this patch:
  -  makes it more apparent that 'xm mem-set' has no effect on HVM's.
  -  show's that memory is changing if 'xm list' is issued while guest is
ballooning (w/o touching balloon driver)

Signed-off-by: Tommie McAfee <tommie.mcafee@unisys.com>
2006-11-08 09:50:09 +00:00
Ewan Mellor 447a08c789 Catch IOError when using local configuration files, to give better diagnostics.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-06 11:36:38 +00:00
kaf24@localhost.localdomain 6bc01e4efd [XEN] Replace hvm_setup_platform() with hvm_domain_initialise()
and extra code in hvm_vcpu_initialise(). Remove 'apic' config
option -- HVM CPUs will always have an APIC (which should be
set up in virtual wire mode for backward compatibility, just as
in a real system).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-05 20:17:40 +00:00
Alastair Tse 14267ebb9a [XEND] Fix xen_version and missing os import
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 16:51:28 +00:00
Alastair Tse 2791eeb645 [XEND] Cleanup HVM image shutdown watch and move readDom call away
from image.py

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 15:47:05 +00:00
Alastair Tse 5061e2c063 [XEND] XendDomainInfo.refreshShutdown is called from image.py.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 15:17:00 +00:00
Alastair Tse 6f9758b848 [XEND] Fix HVM image shutdown.
Missed HVM image creation's hook into XendDomainInfo.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 15:15:16 +00:00
Alastair Tse 0d29624ec0 [XEND] Don't hide the 'type' SXP config item from HVM guests
Should allow network devices to properly initialised in HVM guests.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 11:42:57 +00:00
Alastair Tse e5a17f0ebf [XEND] Make sure lookups cause a refresh so xm list gets the latest
info.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 11:29:16 +00:00
Steven Hand 99e04f18ad Fix syntax error.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-11-03 11:22:22 +00:00
kfraser@localhost.localdomain 457ee10d4c [XEN] Remove VGCF_hvm_guest, replace with XEN_DOMINF_hvm_guest.
Rename DOMFLAGS_* to XEN_DOMINF_*.
Clean up tools to deal with flags changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-03 10:52:29 +00:00
Alastair Tse 1974ebc7dd [XEND] Handle permission denied when calling xc.domain_getinfo
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 10:41:20 +00:00
Alastair Tse 38a1a16494 [XEND][XM] Restore old state string in xm.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 10:39:32 +00:00
Alastair Tse e558eb26ff [XEND] Silence Xen API debugging messages.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 10:38:18 +00:00
Alastair Tse 0bed6642af Merge 2006-11-02 18:52:04 +00:00
Alastair Tse 3fc456d6c8 [XEND] Reverting self.domains UUID indexing
Due to localhost migration, it is possible to have two VMs with the
same UUID on the same host. So instead, we revert back to XendDomain
where there are two lists, a "domains" of active domains indexed by
domid and a "managed_domains" which is a list of all domains whose
lifecycle is managed by Xend.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-02 18:51:23 +00:00
kfraser@localhost.localdomain a034a6ad0e Dynamically link to libgcc on Solaris. Also clean up duplicate -Wall flags.
Signed-off-by: John Levon <john.levon@sun.com>
2006-11-02 18:19:22 +00:00
Alastair Tse 20c0ef90f1 [XEND] Fix paused state being overriden by refreshShutdown
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-02 15:48:32 +00:00
Alastair Tse 147350e843 Merge with tip 2006-11-02 14:27:16 +00:00
Alastair Tse dfce37614d [XEND][XM] Fixes for xm list output
Do not output image, security if they are empty
Change xm list slightly to be more informative about state.
Add back store_mfn and console_mfn to the SXP so save/restore can work
again.


Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-02 14:26:01 +00:00
kfraser@localhost.localdomain 7554501778 [TOOLS] Paravirt guests have their memory allocated in the
libxenguest builder function.

Again, PPC and IA64 will need to do some fixing up.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 11:11:28 +00:00
kaf24@firebug.cl.cam.ac.uk e935122cf5 [XEND] Compare result of blkdev_name_to_number() explicitly against None.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 07:46:06 +00:00
Ewan Mellor c82aef9e98 Return the restored VM at the end of XendDomainInfo.restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 18:39:33 +00:00
kfraser@localhost.localdomain 8082f8f784 [HVM] Move shadow initialisation into domain-creation hypercall.
Allocate HVM guest memory in the libxc builder function rather
than in xend. Clean up fall out from these changes.

Todo: Fix ia64. Move PV builder to same model (it should allocate the
memory rather than xend doing so -- then it can avoid using
xc_get_pfn_list()).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 18:37:23 +00:00
Ewan Mellor 58afddc807 Return the domain renaming during migration.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 18:20:23 +00:00
kfraser@localhost.localdomain 3f4c0e0087 [HVM] HVM is now a flag parameter to domain-creation hypercall.
This cleans up HVM start-of-day in Xen and means that the
HVM status of a domain is maintained from cradle to grave.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 16:08:19 +00:00
Ewan Mellor 54ab7bfb1a This patch adds a checking of wrong parameter into xm dmesg command.
If wrong parameter is given, xm dmesg command shows the following
error messages.

Error: No parameter required
Usage: xm dmesg [-c|--clear]

Read and/or clear Xend's message buffer.
  -c, --clear                    Clear dmesg buffer


Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-01 15:56:55 +00:00
Ewan Mellor 3c2c455c3b Add full flag to domain(domid), fixing xm list --long VM1.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 15:41:35 +00:00
Ewan Mellor cbdc70f049 Create /var/lib/xend/domains on startup if it doesn't exist.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 13:50:02 +00:00
Ewan Mellor fb2358c250 Merge xen-api.hg changeset 142:d75413e65ba319d577c764be6c13efa5eae6da1c.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 10:40:46 +00:00
kfraser@localhost.localdomain f0d0046d31 [XEND] Improve error message for unparsed disk modes.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-31 18:24:44 +00:00
kfraser@localhost.localdomain fc229c860b Clean up recent changes to reboot code. This fixes PV save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 15:54:03 +00:00
Steven Smith 111a11e5f5 [HVM][LINUX][TOOLS] Split control/reboot_module into control/feature-reboot
and control/feature-sysrq.  This is more consistent with the other
PV device protocols.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 10:11:53 +00:00
Steven Smith 65ae4fc8cd [HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVM
domains with PV drivers loaded.  This patch creates a new PV-on-HVM
module, reboot.ko, which, when loaded, creates control/reboot_module
in the store.  The tools notice this, and disable the watch which would
normally destroy HVM domains which are the target of an xm shutdown
command, allowing the reboot module to shut the domain down cleanly.

Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>

(Checkin comments by Steven Smith <sos22@cam.ac.uk>)
2006-10-31 09:54:49 +00:00
Ewan Mellor ad0cc56145 Fix handling of SXP for devices through device_add -- this solves the
Invalid device (uname) problem that breaks just about everything once you've
done xm block-attach.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-29 19:28:26 +00:00
kaf24@localhost.localdomain 25884d981b [XEND] Do not delete VNC password from configuration.
Fixes reboot of HVM guest when VNC authentication is in use.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-27 18:15:14 +01:00
kaf24@localhost.localdomain 9033715d28 [XEND] Do not delete VNC password from configuration.
Fixes reboot of HVM guest when VNC authentication is in use.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-27 18:15:14 +01:00
Ewan Mellor 70c562ec15 Import Xend part of xen-unstable changeset
11922:1e6b0a8a0822a22d313d9058fa0dc10c7a319821.

[IA64][HVM] Add buffer IO mechanism for Xen/VTi domain. Current
implementation can accelerate Windows guest's dense IO operations
at boot time.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-10-25 15:29:08 +01:00
kfraser@localhost.localdomain 54a5a3c6b9 [IA64][HVM] Add buffer IO mechanism for Xen/VTi domain. Current
implementation can accelerate Windows guest's dense IO operations
at boot time.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-10-25 15:29:08 +01:00
Ewan Mellor 59b7cdb9fa Print the time to xend-debug.log, when starting or restarting Xend.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 15:01:51 +01:00
Ewan Mellor 9d8bfdc56a Print the time to xend-debug.log, when starting or restarting Xend.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 15:01:51 +01:00
Tim Deegan 67e2961733 [XEND] Be more generous with the default shadow allocation.
Allow enough shadow memory to avoid thrashing the shadow pages,
rather than just enough for safety.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-25 11:44:58 +01:00