Commit Graph
1639 Commits
Author SHA1 Message Date
Ewan Mellor 7443d72fde A small fix to the documentation to reflect recent changes to the
'cfgbootpolicy' command.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-21 10:21:00 +00:00
Ewan Mellor 32562d7bec There is a somewhat trivial issue with XendCheckpoint.py right now in
that it logs everything written to stderr by xc_save and xc_restore as
errors whereas in fact the vast majority of this output is
information/debug (and all actual errors are marked by the string ERROR:
at the start of the message) -- this is confusing to folks looking at
the logs and makes automated log analysis tricky.

Fix is to scan for the ERROR: string and log anything without it using
log.info instead.

Signed-off by: Simon Graham <Simon.Graham@stratus.com>
2006-11-21 10:19:01 +00:00
Ewan Mellor a9df6cf30f Cleanup after the bootloader even if the domain building fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-20 16:59:07 +00:00
Alastair Tse edd64e7966 [XEND] Accomodate extra "devices" in SXP that do not have DevControllers
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 17:57:49 +00:00
Alastair Tse 13dde37355 [XEND] Revert changes in changeset 12328
Mistakenly reverted some fixes for rebooting, un-reverting.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 17:03:59 +00:00
Alastair Tse e1e7aa6e07 [XEND] Fix missing domains on domU reboot.
Fixed regression with rebooting domU caused by the change in handling
syncing state from Xen and Xend.

Added missing implementation for XendDomainInfo.unwatchVm() which
disappeared during a merge.

Added protection for console/vnc-port reading for managed domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 15:53:29 +00:00
Alastair Tse 90dfddafb5 [XEND] Fix PCI configuration parsing and SXP output
PCI configuration is formatted differently from other device
configurations because of the requirement that all pci devices need to
be present when it is initialised.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-16 13:49:05 +00:00
kasai.takanori@jp.fujitsu.com 654de638ac Add to select keyboard layout
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
2006-11-16 13:13:55 +00:00
kasai.takanori@jp.fujitsu.com 6ed32fb898 Fix of floppy disk configuration check
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-11-16 10:50:21 +00:00
Ewan Mellor d5548a599e This patch improves an usage message about xm dump-core command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:44:23 +00:00
Ewan Mellor 51c072044f Fix cpu_cap option.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:28:26 +00:00
Ewan Mellor 54e573d0af Improve error message when trying to pause / unpause domain 0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:26:20 +00:00
Ewan Mellor 016e7e1c8c Fix xm migrate error message when trying to migrate domain 0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:25:23 +00:00
Ewan Mellor 563e6b4690 Add the VNC port to the output of xm list --long, if the value has been written
to xenstore by QEMU.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-15 09:44:12 +00:00
Andrew Warfield 650e610eda Fix breakage of blktap device strings from cset 63d1b02dad347e8feb845d8a8b482e251a478164.
Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-11-14 11:20:45 -08:00
Ewan Mellor cbe35a1196 Fix xm block-configure, by allowing the device ID to be unspecified inside
device_configure (in which case it will be specified by the incoming config).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-14 18:52:58 +00:00
jfehlig@jfehlig2.provo.novell.com dedbb36558 Add uuid to host record returned by host_get_record. libxen fails to parse the host record with this field missing.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-13 17:23:49 -07:00
john.levon@sun.com 335af9950f Parsing 'df' output is extremely non-portable. Replace with a direct statvfs().
Signed-off-by: John Levon <john.levon@sun.com>
2006-11-09 15:03:51 -08:00
Alastair Tse 069672061c [XEND] Add missing parameter and import from XendAPI and XendCheckpoint.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 13:09:01 +00:00
Alastair Tse 7bab7df15b [XEND] Make clear the distinction between backendPath and backendRoot
in DevController.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:49:22 +00:00
Alastair Tse 555e555de8 [XEND][XM] Fix sched-sedf to return the domid to correspond with xc.c
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:48:18 +00:00
Alastair Tse 16d155c8c6 [XEND] Add missing implementation for host_set_name_{label,description}.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:46:25 +00:00
Alastair Tse 9f1731ecc0 [XENAPI] Make xapi.py work with modules in /usr/lib/python.
Also Add host_set_name command.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:44:47 +00:00
Ewan Mellor d53bdf0f83 Server-side capitalisation fixes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-09 15:43:24 +00:00
Ewan Mellor e5c3d644cd The attached patch implements more of the Xen-API functionality related
to the vTPM.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-09 15:27:32 +00:00
Alastair Tse 361ad9ae8b [XEND] Ignore dying domains when refreshing list of domains.
Also cleanup stored configuration if managed domain is deleted.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 16:05:00 +00:00
Alastair Tse 4b7d8cd407 Merge 2006-11-09 13:18:58 +00:00
Alastair Tse 1d5686b8ac [XEND] Fix bug with managed domains not having their state updated.
Also added some protection against corrupted sxp configuration files.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 13:16:55 +00:00
Alastair Tse d3b8d73b44 [XEND] Fix domain_lookup_nr to check managed_domains too.
Bug introduced when moving managed domains out of self.domains caused
domain_lookup_nr ignoring managed domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 12:38:12 +00:00
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
kfraser@localhost.localdomain de083f6648 [BLK] Expand number of fake-SCSI VBD volumes supported to 120.
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-11-09 12:07:28 +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