Commit Graph
2473 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com a5ba036bad Rename parameter to avoid shadowing builtin.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 21:22:02 +01:00
jbulpin@wicket.uk.xensource.com 0e2ea3b8b4 Fixed syntax error in iopif patch.
Signed-off-by: James Bulpin <james@xensource.com>
2005-11-07 13:04:27 +01:00
emellor@leeni.uk.xensource.com ed9f6cba75 Move the randomMAC method from xm.create into server.netif. This way, it can
be shared with other command line tools, and the xm network-attach command.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:36:53 +01:00
emellor@leeni.uk.xensource.com ab6494f226 Fix misnamed call to legacy_mask_to_prefix. Thanks to Tim Moreton for finding
this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:36:44 +01:00
emellor@leeni.uk.xensource.com 3d511563c0 Diagnostic for hitting the nloopbacks limit. This is presumably the cause of
all the "two bridges don't work" bugs that have been reported (bug #381).

Consideration will be given to raising the default limit -- this is just a
diagnostic of the problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:36:35 +01:00
emellor@leeni.uk.xensource.com 3ec891fe7b Wholesale import of xm-test 0.4.0.
This is not yet integrated with the rest of the Xen build system.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:36:16 +01:00
emellor@leeni.uk.xensource.com 27be16e320 Hack around problem whereby VMX domains (using the ioemu device) now fail
because the new hotplug script error checking kicks in.

ioemu really ought to move out of blkif.py.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:35:06 +01:00
emellor@leeni.uk.xensource.com 3dd98c5e02 Added assertion, to stop it blowing up more obscurely a little later.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:30:35 +01:00
emellor@leeni.uk.xensource.com 34c75893fb Tidy exception handling on IntroduceDomain, quieten down one debug message, add
another.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:30:16 +01:00
emellor@leeni.uk.xensource.com 0fad7c8152 Make xenstored reopen its trace file on SIGHUP. This allows one to rotate the
logs beneath the daemon.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:28:53 +01:00
kaf24@firebug.cl.cam.ac.uk 12f3d679c6 Add support for the ioport_permission dom0 op to xend and xm
xm now accepts a parameter 'ioports' that accepts a hex ioport
or ioport range, in the form 02f8[-02ff]

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
2005-11-07 12:05:15 +01:00
kaf24@firebug.cl.cam.ac.uk 4cf846fd30 Revert c/s 7626 -- it's missing a new file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-06 19:50:33 +01:00
kaf24@firebug.cl.cam.ac.uk a8849f0aff Add support for the ioport_permission dom0 op to xend and xm
xm now accepts a parameter 'ioports' that accepts a hex ioport
or ioport range, in the form 02f8[-02ff]

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
2005-11-06 16:40:33 +01:00
kaf24@firebug.cl.cam.ac.uk bfd12bf9c5 Added domain_ioport_permission to the python module xen.lowlevel.xc,
wrapping the equivalent libxc call

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
2005-11-06 16:40:15 +01:00
kaf24@firebug.cl.cam.ac.uk 41df4047b1 Added xc_domain_ioport_permission to libxc, which wraps the dom0 op
Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
2005-11-06 16:39:55 +01:00
kaf24@firebug.cl.cam.ac.uk d24d3ad461 This patch is intended to make qemu support ia64/vti. We have validated
it against latest xen-unstable.hg, both ia32 and x86-64 are not
affected.

Signed-off-by Ke Yu <ke.yu@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Nakajima Jun <nakajima.jun@intel.com>
Signed-off-by Anthony Xu <anthony.xu@intel.com>
2005-11-05 11:30:01 +01:00
kaf24@firebug.cl.cam.ac.uk eb320ac262 This patch is to remove the pit_timer when the vmx domain is
inactive to save HV external IRQ caused by ac_time and some cleanup for
ioapic in HV.
Thx,eddie

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2005-11-05 11:26:29 +01:00
kaf24@firebug.cl.cam.ac.uk 215f35f5c1 This is a fix for some device model corner cases including:
1: mistake sequence of set/clr to virtual IRQ line.
 2: wrong sequence of IRQ request clear
 3: Add one more place to enable_irq_window.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2005-11-04 11:08:45 +01:00
kaf24@firebug.cl.cam.ac.uk d0f9b588c0 This patch adds a check to make sure the config file passed to
vnet-create is correct.  This is better than throwing IOError, because
IOError's are currently reported as xend communication failures.
Also, fix the IOError handling at the end of the file so we don't get
a stack dump if that path is taken.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-04 11:06:41 +01:00
kaf24@firebug.cl.cam.ac.uk 06c12463fc This is another patch that adds an arg_check() to domid and domname so
that we don't dump stack if a user runs either without an argument.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-04 11:05:10 +01:00
kaf24@firebug.cl.cam.ac.uk 4fc33b9db4 This patch adds an arg_check into the set_vcpus code in xm, so that we
don't output a stack trace if <2 arguments are passed.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-04 11:03:20 +01:00
emellor@leeni.uk.xensource.com a9fc2ae6bc Fix handling of child in forkHelper.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-03 02:44:41 +01:00
emellor@leeni.uk.xensource.com f50296a467 Merged. 2005-11-02 16:43:32 +01:00
emellor@leeni.uk.xensource.com fe1e7e447b Rewritten handling of child stderr to avoid deadlock.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-02 16:42:29 +01:00
kaf24@firebug.cl.cam.ac.uk ea894244ed Make the -V option of xenconsoled actually do something.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-11-02 11:25:21 +01:00
kaf24@firebug.cl.cam.ac.uk 0a2a26aa78 Make it clear that the result of xs_get_domain_path() must be free()'d. 2005-11-02 11:25:08 +01:00
kaf24@firebug.cl.cam.ac.uk 68917d1380 Fix memory leak in domain cleanup spotted by doremifa in #xen.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-11-02 11:24:49 +01:00
kaf24@firebug.cl.cam.ac.uk a108cd0052 The attached patch to 1) fix a 64-bit bug with some of the data packing,
and 2) adds a workaround for an Infineon TPM hardware bug.

Signed-off-by: Vinnie Scarlata, Joseph Cihula (@intel.com)
2005-11-02 11:21:46 +01:00
emellor@leeni.uk.xensource.com 6a889fa0e3 Merged. 2005-11-01 16:02:43 +01:00
emellor@leeni.uk.xensource.com c174bece23 Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-01 15:57:19 +01:00
emellor@leeni.uk.xensource.com f8681f1674 Added missing __init__.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-01 15:24:47 +01:00
kaf24@firebug.cl.cam.ac.uk b35976750a Disable guest firmware apm since no apm is supported now to remove the
apm handle idle request error when guest os boot

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2005-11-01 10:37:07 +01:00
kaf24@firebug.cl.cam.ac.uk 2c6df848e6 There is an error in xenstat, such that a wild pointer is being
dereferenced and written to.

Signed-off-by:  Charles Coffing <ccoffing@novell.com>
2005-11-01 10:33:22 +01:00
kaf24@firebug.cl.cam.ac.uk e4072e1c33 Fix the DISPLAY configration that breaks vmx domain creation with SDL
on vncserver or remote X. Changeset 7547 added a test of
opts.vals.display when getenv("DISPLAY"); because there is a default
value:localhost:0, that causes the test always to be true.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-01 10:31:25 +01:00
emellor@leeni.uk.xensource.com cb3d870a1a From Murillo Fernandes Bernardes <mfb@br.ibm.com>:
The problem is: There is no mechanism to detect block device setup failure

Network devices have the same problem, and are fixed with this too.

I handling this problem in the way suggested by aliguori:
- hotplug scripts write a "hotplug-status" node on store
- Xend DevController.createDevice() check verify this node and return success
or throw an exception on failure.
- If no changes in "hotplug-status" node after DEVICE_CREATE_TIMEOUT seconds
Xend throw an exception showing the problem with hotplug scripts.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 17:10:57 +01:00
emellor@leeni.uk.xensource.com 3bbe6d0380 Removed the event server, and all it entails. This is unused, and a big pile
of crusty rubbish.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 16:56:34 +01:00
emellor@leeni.uk.xensource.com 6eae10ab53 Removed some dead code.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 16:54:05 +01:00
kaf24@firebug.cl.cam.ac.uk 2442eccf6d Sanitise the trace-buffer hypervisor<->user interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-31 10:45:31 +01:00
kaf24@firebug.cl.cam.ac.uk f6556b0d17 This is a set of changes which allow the tracebuffer functionality to
be enabled and disabled dynamically while the system is running. The
existing DOM0_TBUFCONTROL hypercall is used, and three new operations
have been added: enable, disable, and set_size. This is to address
concerns that use of the trace buffers impacts system performance.

The initial value of opt_tbuf_size is set to zero, so that trace
buffers remain disabled by default. They can be enabled as they used
to be, by adding tbuf_size= to the xen command line at boot time. They
can also be turned on and off any time when the system is running. The
size of the trace buffer allocation can also be changed dynamically
while the system is running. The trace buffers may be completely
deallocated by setting the size to zero. No change in buffer size can
be done while tracing is enabled;

Other Changes made:
 - Update the constants in tools/xentrace/formats to match those in 
public/trace.h
 - libxc functions for enable/disable, get/set size
Still left to do:
 - remove all ifdef's for trace buffers and the 'trace' build option
 - xm command to do enable/disable trace buffers and get/set size
 
Signed-off-by: Rob Gardner  <rob.gardner@hp.com>
2005-10-30 22:31:45 +01:00
emellor@leeni.uk.xensource.com 07237aa4f3 Merged. 2005-10-30 19:23:36 +01:00
emellor@leeni.uk.xensource.com 6bcc179281 Added doccomment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 17:19:35 +01:00
kaf24@firebug.cl.cam.ac.uk 0bc575ba3a This patch is to fix the NIC driven mechanism to make it event
driven. We will also send it to Qemu mailing list.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2005-10-30 16:47:59 +01:00
emellor@leeni.uk.xensource.com 1df0c600a7 Added network-attach and network-detach. Fixes bug #300.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 16:44:47 +01:00
emellor@leeni.uk.xensource.com b67a7e6305 Force the devid given to destroyDevice to an integer. This means that that
method copes with the values given to xm network-detach without netif.py having
to intervene. 

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 16:43:52 +01:00
emellor@leeni.uk.xensource.com 302aa2f721 Added -lpthread to qemu-dm link line, in order to compile even without SDL
installed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 16:35:06 +01:00
emellor@leeni.uk.xensource.com ff9465e411 Merged. 2005-10-30 14:00:35 +01:00
emellor@leeni.uk.xensource.com 77e1fe3493 Change the interface between XendRoot.get_network_script and Vifctl so that a
list is passed rather than a single string.  This expands the config-file
interface so that parameters may be passed to the network scripts from the
config file.

Fix XendRoot._logError (missing asterisk before args parameter).

In XendRoot, allow an empty configuration file.  This makes it easier to unit
test code reliant on XendRoot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 13:48:34 +01:00
emellor@leeni.uk.xensource.com d2e3b493ab Don't use XendRoot.get_vif_bridge to provide a default bridge -- instead, pass
no bridge parameter and let the vif-bridge script find one for itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 13:45:06 +01:00
emellor@leeni.uk.xensource.com 466acdeb47 Added test_create.py, a test script for create.py. This contains a unit test
for the command line parsing code in xm create.  To make it easier to test,
create.py has changed in structure around the main(argv) function, adding a new
parseCommandLine function.

Remove a large number of useless parameters, where the opts structure was being
passed all over the place, just to eventually log through it.  Instead two
methods -- err and warn -- have been broken out from the Opts class, and there
is now no need to pass the opts value everywhere.

Change the parsing inside make_config to remove lots of cut-and-pasted cruft.

Change the documentation to the vif command to indicate that the bridge can be
auto-detected.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 13:42:30 +01:00
emellor@leeni.uk.xensource.com 480d7883b5 Added xen.xm.tests package to build.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 13:34:12 +01:00