Commit Graph
1025 Commits
Author SHA1 Message Date
mafetter@seana.research.intel-research.net 2fc4655033 Fix vncviewer spawning so it actually works.
How did this ever work for other people?
2005-11-08 11:31:16 +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 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
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 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 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
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 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
emellor@leeni.uk.xensource.com 6bcc179281 Added doccomment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 17:19:35 +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 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
kaf24@firebug.cl.cam.ac.uk 1464591d5f merge 2005-10-29 09:51:35 +01:00
jbulpin@wicket.uk.xensource.com adeed21529 Prevent event listener socket from being inherited by children.
This was passing down to dhclient which was keeping the 8001 port
open and preventing xend restarting.

Also fixed a case typo in setCloExec

Signed-off-by: James Bulpin <james@xensource.com>
2005-10-29 01:58:00 +01:00
emellor@leeni.uk.xensource.com 8c48c9e2ad Fix reboot logic. An indentation error meant that every second reboot would
be refused, with the domain being destroyed instead.

Further fix for reboot logic when using on_reboot=rename-restart: the incorrect
node was being removed once restart has completed, leaving Xend to conclude
later that it had crashed in the middle of a restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-28 13:02:06 +01:00
kaf24@firebug.cl.cam.ac.uk 7429bfd50d This patch provide local APIC support for vmx guest.
A configure option is also added to disable it, which is off by default.

Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Li Xin <xin.b.li@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-10-28 09:48:46 +01:00
kaf24@firebug.cl.cam.ac.uk a3cdca7914 xm help notes that domid can be used in place of domname.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2005-10-27 18:22:45 +01:00
emellor@leeni.uk.xensource.com f76bd5cf5e Fix Jerone Young's xenstat / xenstore patch:
Reject the removal of -Werror from the xentop Makefile.

Reject the #include of xs.h inside xentop -- there is no need for it.

Have XendDomainInfo write domain names into /local/domain (which used to happen,
but hasn't for a little while).

Remove the dead code from xentop.c.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-27 10:53:02 +01:00
emellor@leeni.uk.xensource.com 0edd55be19 Move exception handler for sxp.ParseError above that for Exception, as the
latter subsumes the former.  Minor tidy-ups.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-26 14:59:29 +01:00
emellor@leeni.uk.xensource.com 655b6990ad Merged. 2005-10-25 11:24:01 +01:00
djm@kirby.fc.hp.com 8620f56614 Necessary change to support ia64/vti domain build in common code.
Signed-off-by Ke Yu <ke.yu@intel.com>
Signed-off-by Anthony Xu <anthony.xu@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2005-10-24 20:57:47 -06:00
chris@ubuntu.eng.hq.xensource.com be8604faf3 Don't run network stop script when doing xend stop.
It doesn't make sense to undo the network configuration when stopping
xend since that would cut off all VMs from the network.  Undoing the
network setup should be an option independent of xend stop.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-10-24 19:04:30 -07:00
emellor@leeni.uk.xensource.com 31ad1c62b7 Change argument spec for introduce_domain argument parsing, as the MFN is a long.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-24 18:24:07 +01:00
djm@kirby.fc.hp.com 8250e0c500 Merge 2005-10-24 09:08:13 -06:00
emellor@leeni.uk.xensource.com 9f8f052650 Removed some unnecessary imports.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-24 15:18:31 +01:00
emellor@leeni.uk.xensource.com fea7782321 Change the semantics of GetDomainPath so that it always succeeds, regardless of
whether a domain has been introduced to the store.  Added a separate message
XS_IS_DOMAIN_INTRODUCED and API for that (xs_is_domain_introduced) to determine
whether the domain has really been introduced.  This change means that the
tools can determine the correct domain path earlier in the domain creation
process, which is particularly a factor with live migration, as it allows us
to create the devices earlier in the process, and unpause the new domain before
performing the introduce.  Until recently we already had these features, but
the simplification of the interface between xend and xenstored caused breakage.

No longer clear out the domain path when a domain is introduced -- this was a
hack to work around the recent problematic semantics of GetDomainPath.

Do not write the contents of the info block to the store.  All the configuration
info is written to the /vm path, and anything else in the info block is either
dealt with explicitly or is ephemeral and has no place in the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-23 22:45:15 +01:00
emellor@leeni.uk.xensource.com 4384b3fc70 Instead of writing errors to
/local/domain/0/backend/<devclass>/<dom>/<devid>/error, write them instead to
/local/domain/0/error/backend/<yada>.  This is not the best place for them
perhaps, but it moves them out of the backend directory, on which the drivers
have a watch.  This fixes the problem whereby writing an error will trigger a
watch, causing the error message to be written again, and repeat.  Fixes bug
#286.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-23 22:34:13 +01:00
kaf24@firebug.cl.cam.ac.uk 9329e6405d Fix an issue for passing arguement from control panel to deivce model
for some arguemnt like 'localtime', 'isa', device model need an argument
"-localtime", instead of "-localtime 1"
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-10-23 16:51:47 +01:00
kaf24@firebug.cl.cam.ac.uk 74df472110 some fixes to VMX:
1) enable ACPI in VMXAssist by default.
2) do nothing when emulating wbinvd instruction in VMXAssist.
3) use MACRO in cpu number setting/getting code.
4) remove useless parameter flags from xc_vmx_build.
5) remove usage of dsi.v_start in xc_vmx_build when not handling
vmxloader elf.
6) unmap shared_page_va when destroy VMX domain.
7) change virtual_platform_def to vmx_platform.
8) remove useless code in vmx_setup_platform.
9) change parameter of vmx_setup_platform from vcpu to domain.
10) in xen HV, vmx domain get domain processor number from the reserved
E820 area.
11) in domain.c, don't define some functions when on i386 platform or no
CONFIG_VMX.
Also removed some ugly tailing space.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-10-23 11:51:15 +01:00
emellor@leeni.uk.xensource.com bacb111591 Reintroduce the changes made by changeset 7455:021324804fbd, which were
disabled by workaround 7468:17a9f111fa93.  We additionally need to set the
FD_CLOEXEC flag on the status fd given to SrvServer when spawning the network
script, as at least on some platforms this causes xend to fail to start
properly.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-22 11:04:45 +01:00
kaf24@firebug.cl.cam.ac.uk 55179ce8a5 Fix 'xm vcpu-list'. List cpumap as 'CPU Affinity'. Use
special descriptive strings for empty and full cpu maps.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-22 10:33:26 +01:00
kaf24@firebug.cl.cam.ac.uk 900a11e8ed cpumap cleanups -- Python now deals with lists of cpus
rather than cpu bitmaps.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-22 08:35:03 +01:00