Commit Graph
1193 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com 1676162e17 Merged. 2006-01-09 11:22:17 +00:00
kaf24@firebug.cl.cam.ac.uk 5becda0913 Fix a couple of bogus dom0_op names:
setdomaininfo -> setvcpucontext
  pincpudomain  -> setvcpuaffinity

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-06 12:53:19 +01:00
emellor@leeni.uk.xensource.com 2157498bfb Remove "Died" support from the hotplug monitoring. This error code was used
when hotplugStatusCallback raised VmError, but this can no longer happen.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-03 16:28:00 +00:00
emellor@leeni.uk.xensource.com 49684df079 Use xenctrl.h, not xc_private.h.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-03 16:26:24 +00:00
emellor@leeni.uk.xensource.com c69c2efbcf Vcpu-list's error message shows an unnecessary header.
Signed-off-by: Yoshinori Katase <y_katase@soft.fujitsu.com>
2006-01-03 14:08:32 +00:00
emellor@leeni.uk.xensource.com 1989719e21 These xm info, top, dmesg and log requre no parameter.
But log's error message differs from other 3 command's error messages,
when parameter is given.

# xm log 1
Error: 'xm log' requires 0 argument.

   log                              Print the xend log

Other 3 commands ignore parameter.
I think it might be better symmetricalize.

Signed-off-by: Yoshinori Katase <y_katase@soft.fujitsu.com>
2006-01-03 14:07:43 +00:00
kaf24@firebug.cl.cam.ac.uk 29c3bf78b9 Rename VMX option name lapic to apic, and pass it to xen by
hvm_info_table.  Previous we pass it to xen by guest vcpu context ECX
register, now we unify to use hvm_info_table.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-01-03 14:35:45 +01:00
kaf24@firebug.cl.cam.ac.uk 61cf7e808a Fix VMX disk config string parse (allow leading whitespace).
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-01-02 11:35:29 +01:00
kaf24@firebug.cl.cam.ac.uk cfa0fac2c2 Provide an option to disable ACPI from the VMX config file.
By default ACPI is disabled.

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-01-01 11:29:17 +01:00
kaf24@firebug.cl.cam.ac.uk 7e127cd35f Allow non-privileged domains restricted access to
I/O memory and physical interrupts, under control
of domain0. Capabilities are maintained as rangesets
in Xen.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-31 14:15:22 +01:00
kaf24@firebug.cl.cam.ac.uk 0129e126c4 Avoid xen crash if there is no VMX support. If a platform
doesn't support VMX, creating VMX domain will crash xen
HV.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-30 17:07:34 +01:00
kaf24@firebug.cl.cam.ac.uk 5fb7e24473 Set up X11 authorization when a VMX domain uses SDL.
Signed-off-by: Hiromichi Itou <ito@begi.net>
2005-12-28 15:14:23 +01:00
emellor@leeni.uk.xensource.com 27efc4fd12 This patch fixes a bug/typo of main.py.
1. show option "-c" of help of xm dmesg
2. fix value of parameter of arg_check of xm log
3. fix aliases of vbd-create and vbd-destroy

Signed-off-by Yoshinori Katase <y_katase@soft.fujitsu.com>
2005-12-22 15:38:10 +00:00
emellor@leeni.uk.xensource.com 9f929dc9af Merged. 2005-12-20 17:16:24 +00:00
emellor@leeni.uk.xensource.com c5ea66cfd2 Changed UUID / Xen handle formatting to be compatible with the OSF DCE UUIDs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-20 17:16:15 +00:00
kaf24@firebug.cl.cam.ac.uk 4cbd6b3272 Add sound blaster support to VMX device model.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2005-12-20 12:55:19 +01:00
emellor@leeni.uk.xensource.com c25bfd147c Added error message if the user attempts to shutdown Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2005-12-14 12:03:40 +00:00
emellor@leeni.uk.xensource.com c215f50020 Added a stress test for the Xenstore-Python interface layer.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 11:54:39 +00:00
emellor@leeni.uk.xensource.com a2529a2204 Added unit test for VMX configuration files.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:08:17 +00:00
emellor@leeni.uk.xensource.com 54fd0f2fb9 When we see a httplib.BadStatusLine, sleep 5 seconds and then retry. This
happens when Xend crashes, so retrying once allows it to restart and recover.
If we see Xend crash twice, we give up, but throw a more polite exception than
the BadStatusLine splat that we got previously.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:07:51 +00:00
emellor@leeni.uk.xensource.com 464379d285 Resurrect vifname xm create vif option support. This was present in earlier
versions of Xen, and allows one to name a vif when it is created.  This is
useful for integration with IP accounting packages, for example.

Closes bug #439.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:06:03 +00:00
emellor@leeni.uk.xensource.com dc3c184731 Fix reference to HttpXendClientProtocol. This was previously referring to the
abstract base class, which was never going to work.  (This is debugging code
only, so I presume that no-one has used it for a long time, but it's doing no
harm hanging around.)

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 17:31:35 +00:00
emellor@leeni.uk.xensource.com a9b9f0585c Merged. 2005-12-13 10:57:18 +00:00
Xiaofeng Ling e697c7e8ef change the NIC configuration accordingly after remove "nics=n"
otherwise, nics=-1 will be passed to device model and cause device
model exiting.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-13 10:57:04 +00:00
emellor@leeni.uk.xensource.com b57b530e0a Match previous changeset removing nics option.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:56:50 +00:00
emellor@leeni.uk.xensource.com bc8ed50e6c Deprecate the nics option from the xm create configuration. Instead, we use the
entries in vif to guide the configuration.  This is much less confusing.

Closes bug #440.

Change the example configuration files to match.  Also change them to use the
XenSource OUI in the MAC addresses.  Also change xm-test to match.

Remove the obsolete ipaddr configuration entry, and the backend_mac vif config
option.

Remove the preprocess_vifs function, folding it into the configure_vifs
function, and creating a simple comma_sep_kv_to_dict helper.

Remove the configure_vfr method, as it is unused.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:15:53 +00:00
emellor@leeni.uk.xensource.com 296749cb10 Don't try and close the pipe to the grandparent if it has already been closed
(i.e. we have restarted Xend).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:10:19 +00:00
emellor@leeni.uk.xensource.com 03bbc8cec6 Added a hosts-allow facility to TCP connections, which allows us to restrict
the acceptable connections based upon a regular expression comparison with the
FQDN or the IP address.

Use the hosts-allow facility to restrict access to the relocation socket.  This
adds the configuration option xend-relocation-hosts-allow, which takes a
space-separated sequence of regular expressions.

Pass the protocol class instance through to SocketServerConnection, rather than
a new instance of that class.  This means that the new instance need not be
passed through SocketListener.acceptConnection.

Make the SocketServerConnection and SocketListener classes start their
corresponding threads and open their sockets (in the case of SocketListener)
automatically.  This means that callers do not need to save an instance locally,
just to call run() or listen() on it.  This also means that listenTCP and
listenUnix can go -- simply creating a TCPListener or UnixListener instance is
sufficient.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:43:48 +00:00
emellor@leeni.uk.xensource.com 91da6b2f1c Minor tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:32:50 +00:00
emellor@leeni.uk.xensource.com 6efef1afab Make from_string('') return []. This means that it is not necessary for our
callers to special-case this value -- the [] is a valid sxp.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:32:19 +00:00
emellor@leeni.uk.xensource.com 3b7940ffef Minor import tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:24:32 +00:00
kaf24@firebug.cl.cam.ac.uk e53027149f Fix indentation in a few places.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-11 00:16:26 +01:00
emellor@leeni.uk.xensource.com 53dcf75ccb Merged. 2005-12-09 10:51:35 +00:00
emellor@leeni.uk.xensource.com 9ab74b250b Add one more fork to the Xend start-up process, this time with the parent
staying alive to watch the child.  If the child crashes, then the parent
starts another one in its place.  This provides robustness in the face of
crashes like one currently tracked as bug #411.

Tidy up chunks of SrvDaemon.py on the way past.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-09 10:49:29 +00:00
emellor@leeni.uk.xensource.com ced2f6408d The attached patch uncouples the device id used inside XenD from the
instance number of the vTPM.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-12-08 18:19:24 +00:00
emellor@leeni.uk.xensource.com 028268e9bc Looks like someone merged and moved the pincpu operation to after the
memory reservation and didn't read the comments I left in the code:

# repin domain vcpus if a restricted cpus list is provided
# this is done prior to memory allocation to aide in memory
# distribution for NUMA systems.

This patch moves the pincpu op back to where it was.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-12-08 18:17:59 +00:00
emellor@leeni.uk.xensource.com d2b3b7424b Detach Xend from terminal, courtesy of Horms <horms@verge.net.au>.
* For setsid to effectively detach a process from the terminal,
  the following needs to occur:

    fork ()   Return control to the shell
    setsid () New session with no controlling terminal
    fork ()   The session leader (parent) exits and thus
              the resulting child process can never regain the terminal

  This patch adds the second fork

* The call to self.daemonize(), which now forks, is moved to
  run before self.tracing(), as now that it actually disconnects
  from the terminal, and thus the prevailing process, the trace
  loses the processes created in self.run().

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 16:17:53 +00:00
emellor@leeni.uk.xensource.com ae0212521e Strip huge piles of cruft from the connection infrastructure. We now actually
block inside accept rather than using select to poll and then calling accept
regardless of the outcome of the select call, and then failing because the
socket is non-blocking.

SocketClientConnection, SocketConnector, TCPClientConnection, TCPConnector,
connectTCP, UnixClientConnection, UnixConnector, connectUnix have gone.

loseConnection and stopListening and closeSocket (where they are needed) are
now called close.  startListening is now called listen.

Closes bug #379.

Relieves a weight from the shoulders of the universe.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 15:04:31 +00:00
emellor@leeni.uk.xensource.com 5ea39e7063 Move xm destroy handling out of crufty destroy.py and into main.py, where it
can share the better argument parsing.

Closes bug #443.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 14:30:15 +00:00
emellor@leeni.uk.xensource.com 6a6999e3fb Fix start_time parsing on restart -- it's a float, not an int.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 14:28:53 +00:00
emellor@leeni.uk.xensource.com 1c68755227 Merged. 2005-12-08 12:14:33 +00:00
emellor@leeni.uk.xensource.com 5c896ea1a5 Loop retrying when ballooning out, even when the dom0-min-mem setting means
that there is not sufficient memory available at the moment.  Memory may be
about to be freed up by the system after a domain destruction (i.e. the memory
is being scrubbed asynchronously, and will be released soon).

Closes bug #407, bug #429.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 12:13:06 +00:00
emellor@leeni.uk.xensource.com 83c3ceb178 Read start_time and image from the store on restart. Closes bugs #441 and
#442.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 12:10:22 +00:00
emellor@leeni.uk.xensource.com 7b4fe715a5 Refuse to save dom0, and move the check that refuses to migrate dom0 from
migrate.py into XendDomain.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-08 12:08:59 +00:00
vhanquez@kneesa.uk.xensource.com c2c982f908 allow a port to be specified for migration.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-08 07:11:09 +00:00
emellor@leeni.uk.xensource.com d96a859929 Don't try and print out the info returned by the server after a restore -- there
isn't any.  Don't try and unpause the restored domain either -- XendCheckpoint
does that.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 16:26:07 +00:00
emellor@leeni.uk.xensource.com 5e61562a32 Change configuration handling wrt to the vcpus entry, so that we only see a
vcpus entry in the image section when using VMX, only add VMX options at all
if the builder is vmx, and issue a warning when overriding the global vcpus
setting with the one from the image.

This removes the duplicated vcpus entries in the domain's sxpr.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 11:50:55 +00:00
emellor@leeni.uk.xensource.com df964c1d71 Remove one of the multiple occurrences of vcpus in the sxpr. This value is
in ROUNDTRIPPING_CONFIG_ENTRIES, so there is no need for it to be mentioned
explicitly in sxpr() too.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 10:51:55 +00:00
kaf24@firebug.cl.cam.ac.uk 32dc1c6ed9 Fix vtpm support in xend.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-12-06 12:45:30 +01:00
cl349@firebug.cl.cam.ac.uk abbe050874 Rename set-vcpus to vcpu-set (match docs) and update short help page.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-04 17:29:46 +01:00