Commit Graph
111 Commits
Author SHA1 Message Date
xenbk@gandalf.hpl.hp.com 5149cc539b bitkeeper revision 1.1400 (4284b9fcQX9z9IzwMeHwdHYRkEIjFA)
Merge
2005-05-13 14:30:20 +00:00
cl349@firebug.cl.cam.ac.uk 1ab02347d8 bitkeeper revision 1.1389.15.14 (428242a6WycHvjFblUGQbKtJd94NPg)
Many files:
  Merge interface changes from previous 'Split out context fetching into
  separate DOM0 op' and 'xen,tools: pincpu use vcpu and cpumap_t' checkins.
xc_linux_save.c:
  Undo incorrect change from previous patch.
xc.h, xc_domain.c:
  Cleanup whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 17:36:38 +00:00
cl349@firebug.cl.cam.ac.uk[cl349] b7c498208c bitkeeper revision 1.1389.15.10 (428202c9Vz9xfNsG-q-WtZpPrER7xQ)
[PATCH] xen,tools: pincpu use vcpu and cpumap_t

The following patch updates the dom0 pincpu operation to read the VCPU
value from the xend interface rather than hard-coding the exec_domain to
0.  This prevented pinning VCPUS other than 0 to a particular cpu.  The
pincpu cpu argument is replaced with cpumap, a u64 bitmap representing
which CPUs a VCPU can use.

I added the number of VCPUS to the main xm list output and also included
a new sub-option to xm list to display the VCPU to CPU mapping.  While
working on the pincpu code, I fixed an out-of-bounds indexing for the
pincpu operation that wasn't previously exposed since the
vcpu/exec_domain value was hard-coded to 0.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 13:04:09 +00:00
mjw@wray-m-3.hpl.hp.com 83a12f2ba6 bitkeeper revision 1.1327.2.15 (4270e4efrExxOueWy0PzsA_9yhB0tA)
Move blkif utility functions into xen.util.
Importing xen.xend.server.blkif from xm create caused
errors.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-28 13:28:15 +00:00
mjw@wray-m-3.hpl.hp.com 51a9f171a5 bitkeeper revision 1.1327.2.13 (4270d6c35WpxFmhdkREjmSvk82s-Bg)
Merge Jeremy's pygrub bootloader patch.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-28 12:27:47 +00:00
mjw@wray-m-3.hpl.hp.com 14a5b54eb0 bitkeeper revision 1.1327.2.2 (4267a9b3MhPpljnjQ5IbfLdzcW2K3w)
Remove twisted from the HTTP server and replace with a 
threaded server. Add classes to provide tcp and unix servers
using threads instead of twisted. Remove use of twisted from
the consoles, event server and HTTP resources

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-21 13:25:07 +00:00
mjw@wray-m-3.hpl.hp.com ebd2e8acfb bitkeeper revision 1.1327.2.1 (4266169fT9qqykPCJWENnvnqwf71kQ)
Refactor domain construction and device controllers to
remove use of twisted. Use threads to dispatch channel
input. Move device controllers into domains.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-20 08:45:19 +00:00
vh249@arcadians.cl.cam.ac.uk 4a0b5ba481 bitkeeper revision 1.1236.51.2 (424d4e45s3_LSUrubUDpgLTFNoQ2xw)
add support for refreshing vbds

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-04-01 13:36:05 +00:00
kaf24@scramble.cl.cam.ac.uk 047fb79307 bitkeeper revision 1.1236.1.46 (4225fdb2Fsz5LfXWKyVON4u_POTHkQ)
Credit-based rate limiting in net backend. From Ross Mcilroy.
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
2005-03-02 17:53:54 +00:00
iap10@labyrinth.cl.cam.ac.uk 3b66390a75 bitkeeper revision 1.1159.1.555 (42094892MsTPGiy_x_uFbwMVQuq4Qg)
Fix the synchronization issues between xend and the device model at 
startup time.

Initialize the shared page in the hypervisor. Otherwise, the hypervisor
might try to inject spurious interrupts into the guest due to
uninitialized data.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 23:17:38 +00:00
iap10@labyrinth.cl.cam.ac.uk f4411a4540 bitkeeper revision 1.1159.212.122 (420813205N6xleek-CEt8_zMptvY9w)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
2005-02-08 01:17:20 +00:00
iap10@labyrinth.cl.cam.ac.uk f5fedc454d bitkeeper revision 1.1159.223.78 (42081302-eWxmHBN6T8FdRJD5VvsOg)
This very simple patch is really just cosmetic.  It "fixes" xend so that
it doesn't report restart as: "WARNING (XendDomainInfo:1038) Unknown
config field restart" in the xend.log.  I'm not sure who should sign off
on this, but the patch is attached.

From: "B.G. Bruce" <bgb@nt-nv.com>
Signed-off-by: ian@xensource.com
2005-02-08 01:16:50 +00:00
iap10@labyrinth.cl.cam.ac.uk 4fb1a7d302 bitkeeper revision 1.1159.212.66 (42001b6f4kUEhmWXQmgg_vNH-AqiWQ)
Right now, the memory for the 1:1 physical mode page tables comes from the
VMX domain's memory. With this change, when the user asks for a domain with
M Megabytes of memory, we actually allocate M+N megabytes in xend, where
N is the memory for the page table pages.

This simplifies the code in the device models that maps guest memory (we
now map all of it) and the E820 map can also give the full M megabytes to
the guest.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 00:14:39 +00:00
cl349@arcadians.cl.cam.ac.uk 2ef6d5718f bitkeeper revision 1.1159.231.8 (41f92d4dBn-4k24hnQtAJIjhmWfRjQ)
Merge changes from 2.0-testing.

Signed-off-by: c@pin.lu
2005-01-27 18:05:01 +00:00
kaf24@scramble.cl.cam.ac.uk 157e1a5562 bitkeeper revision 1.1159.223.47 (41f9109fKznqwLcV_lTngHAhBvwOZw)
Minor domU net-backend fixes.
2005-01-27 16:02:39 +00:00
mwilli2@equilibrium.research 1858ac4f9d bitkeeper revision 1.1159.212.23 (41ee5e8fnbA6nB8wOl_As73BmvhklQ)
Support for USB virtualisation.  Adds the USB frontend / backend, update build options,
make the control tools understand USB interfaces.

One extra file from vanilla Linux is imported (linux-2.4.28-xen-sparse/drivers/usb/hcd.c)
because small changes were required to make XenU domains build with a USB frontend.  This
will not be required for the revised host controller infrastructure in Linux 2.6.

To use this, set "usb = " a list of USB ports in the domain config file.  Ports are
specified as a path, e.g. '1' = the first USB port on the host, '1/2' is the second port
on the hub on the first host port, etc.

Should work for most mass storage and isochronous devices.  May work for some HID devices
but these are not as intelligent and may have trouble supporting virtualisation.
2005-01-19 13:20:15 +00:00
cl349@arcadians.cl.cam.ac.uk c4fea86999 bitkeeper revision 1.1159.222.1 (41ebdd9btvi-aV_bkwfCgKSenC9XbQ)
Add an optional parameter (vcpus) to the xc_linux_build function replacing
the getenv() previously used and removing the requirement of using maxcpus
kernel parameter to limit the number of virtual cpus a guest uses.  The value
can now be controlled in the domain configuration files.

The default value of 1 is set in XenDomainInfo.py but is overridden by
parsing the config value.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-01-17 15:45:31 +00:00
iap10@labyrinth.cl.cam.ac.uk 179b35aad7 bitkeeper revision 1.1159.212.10 (41dde8b1uPUodrtnTKejSUrLg-fcoQ)
xend extensiosn for VMX guests
2005-01-07 01:41:05 +00:00
iap10@labyrinth.cl.cam.ac.uk 5dc6acb5fd bitkeeper revision 1.1159.187.81 (41cc934bUot13IO0-1LsmhYl0sW9Zw)
Add plan9 builder support.
2004-12-24 22:08:11 +00:00
cl349@arcadians.cl.cam.ac.uk c584b00571 bitkeeper revision 1.1159.194.4 (41a5e757kS3W0lQ0UXkviQYcgBr7Gg)
XendDomainInfo.py:
  Fix check for no configured block devices.
2004-11-25 14:08:23 +00:00
akw27@labyrinth.cl.cam.ac.uk 896fb4d9cc bitkeeper revision 1.1159.170.28 (4199f979RH9YDYvR9XUZksaNnSlnLQ)
Fixes to xend for backends in domains other than dom0.
2004-11-16 12:58:33 +00:00
cl349@freefall.cl.cam.ac.uk 983ac8ad41 bitkeeper revision 1.1159.155.6 (418960fcc8HEe_ZDfftWd3gpkqGjnw)
Cleanup code to reconnect domain control channel after xend restart.
Based on code by Mike Wray.
2004-11-03 22:51:40 +00:00
cl349@freefall.cl.cam.ac.uk acaff99a9f bitkeeper revision 1.1159.1.264 (417963deTKJzOFoPmj0ZA8TSc7OtRQ)
Fix domain restart.
2004-10-22 19:47:42 +00:00
cl349@freefall.cl.cam.ac.uk 1d3898f261 bitkeeper revision 1.1159.1.260 (417910cfW_IY-z3SknIR-V-82DXZGQ)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
into freefall.cl.cam.ac.uk:/local/scratch/cl349/xeno.bk-24dom0
2004-10-22 13:53:19 +00:00
cl349@freefall.cl.cam.ac.uk 421a8198af bitkeeper revision 1.1159.129.1 (417910b3OLNctbN0leCgFvn5gSulDQ)
Fix control channel reconnect after xend restart.
2004-10-22 13:52:51 +00:00
iap10@labyrinth.cl.cam.ac.uk d07f9096f6 bitkeeper revision 1.1159.123.7 (41781cf1F6-IOsb_NFEj5dxv6WFBCA)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
2004-10-21 20:32:49 +00:00
iap10@labyrinth.cl.cam.ac.uk 28f5e0295b bitkeeper revision 1.1159.128.1 (41780f0dzQjdvnhFtMuVv1YAmVoQ8Q)
Merge ssh://xenbk@gandalf.hpl.hp.com//var/bk/xeno-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
2004-10-21 19:33:33 +00:00
cl349@freefall.cl.cam.ac.uk 03aec42dae bitkeeper revision 1.1159.127.2 (41780e5c-RsPtK5gKwQvWEW2Vv26oQ)
Use a default name if we don't know the name of a domain anymore.
2004-10-21 19:30:36 +00:00
mjw@wray-m-3.hpl.hp.com e1ab5a1d0d bitkeeper revision 1.1159.116.3 (4177deb5O2BSukkVC4mhGVTFnJJiwA)
Fix problem with block device recreation after xend restart.
Save device state info in the domain record and use when
the domain info and devices are recreated.
2004-10-21 16:07:17 +00:00
cl349@freefall.cl.cam.ac.uk 0dfceca687 bitkeeper revision 1.1159.123.3 (4177d3a9BNL-5fZwDM69tw62fkzu4A)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
into freefall.cl.cam.ac.uk:/local/scratch/cl349/xeno.bk-24dom0
2004-10-21 15:20:09 +00:00
cl349@freefall.cl.cam.ac.uk 507e75b58d bitkeeper revision 1.1159.122.2 (4177d249OfMUUU4w3P-8H14U7koYXQ)
Remove netbsd domain builder.
2004-10-21 15:14:17 +00:00
kaf24@freefall.cl.cam.ac.uk 57e067d108 bitkeeper revision 1.1159.124.2 (4177d163xinza3-p0e7_VEpiJ-okNA)
Remove domain names from Xen. These are now stored only within xend.
2004-10-21 15:10:27 +00:00
mjw@wray-m-3.hpl.hp.com 8745238a32 bitkeeper revision 1.1159.116.2 (4174f7f1RQu3OwnP5xs7FdzOKWZLwg)
Merge xenbk@gandalf:/var/bk/xeno-unstable.bk
into wray-m-3.hpl.hp.com:/home/mjw/repos-bk/xeno-unstable.bk
2004-10-19 11:18:09 +00:00
mjw@wray-m-3.hpl.hp.com 25f0ecc26f bitkeeper revision 1.1159.103.4 (4174f7e2hKsMImqYnCGV37xqvR-IWw)
Don't do check for kernel image existing if restoring.
2004-10-19 11:17:54 +00:00
xenbk@gandalf.hpl.hp.com ef01208b6b bitkeeper revision 1.1159.116.1 (4174f7a3e7Ch5VhvKs2lI48e7S4KzA)
Merge http://xen.bkbits.net:8080/xeno-unstable.bk
into gandalf.hpl.hp.com:/var/bk/xeno-unstable.bk
2004-10-19 11:16:51 +00:00
cl349@freefall.cl.cam.ac.uk 073c084c3c bitkeeper revision 1.1159.108.1 (416c448cJI8mt2eMnwbg061FjyhOpg)
Put migrated domains on the cpu they were originally assigned.
2004-10-12 20:54:36 +00:00
mjw@wray-m-3.hpl.hp.com 52ca8630dd bitkeeper revision 1.1159.103.3 (4163f948kcyGWcvXIMl2qjnflmWhvQ)
Make the default for ip none instead of dhcp.
Fix variable name for dlist_err errback.
2004-10-06 13:55:20 +00:00
mjw@wray-m-3.hpl.hp.com 70cc947499 bitkeeper revision 1.1159.103.1 (4163f41dBS1Bak4UfPFZYlBrHnut8w)
Merge xenbk@gandalf:/var/bk/xeno-unstable.bk
into wray-m-3.hpl.hp.com:/home/mjw/repos-bk/xeno-unstable.bk
2004-10-06 13:33:17 +00:00
mjw@wray-m-3.hpl.hp.com 2c5e70071a bitkeeper revision 1.1159.102.1 (4163f3e1F0LimXbocHs-QcPviz39JA)
Improve error messages by unwrapping Failures.
2004-10-06 13:32:17 +00:00
mwilli2@equilibrium.research e52d6a8915 bitkeeper revision 1.1159.1.191 (41597997cc5ZJzvh6XLLSIhJ9hLEnA)
Initial support for automatic management of non-phy block devices.
2004-09-28 14:47:51 +00:00
mjw@wray-m-3.hpl.hp.com 5b4a13b2e6 bitkeeper revision 1.1159.1.175 (415445ceydjmiY9bcerArlIlTqqZvQ)
Put configuring the console port back where it belonged.
2004-09-24 16:05:34 +00:00
mjw@wray-m-3.hpl.hp.com 04e12a3139 bitkeeper revision 1.1159.1.174 (41544174lO23TSzrMCtW6FnECUFlnQ)
Revert to constructing image first when creating a domain - doing
it later breaks restore.
2004-09-24 15:47:00 +00:00
mjw@wray-m-3.hpl.hp.com 34fe926686 bitkeeper revision 1.1159.1.173 (41542ceeTwqddMwV79qdSnSzhkgg1Q)
Reorder domain construction so that the domain is created,
then the devices are configured and finally the boot image is
created.
2004-09-24 14:19:26 +00:00
mjw@wray-m-3.hpl.hp.com 25e69c7daa bitkeeper revision 1.1159.1.170 (415423c9mNXXcoxG0hSTar31OX4ATQ)
Enable addings vbds to a running domain. Not completely working yet.
2004-09-24 13:40:25 +00:00
mjw@wray-m-3.hpl.hp.com 946648e0db bitkeeper revision 1.1159.82.1 (4152d2abNRTmjgcJM5fkbYQyAoi9pA)
Change device messaging to support adding netifs at runtime,
and to support front-end polling.
2004-09-23 13:42:03 +00:00
mjw@wray-m-3.hpl.hp.com a23e4c0121 bitkeeper revision 1.1159.1.164 (41503abcmVn6L0phzf-BOxlxa3zgxw)
Add support for reconfiguring an existing device,
including support for changing the bridge of a vif.
Treat bridge "null" as meaning no bridge.
2004-09-21 14:29:16 +00:00
mjw@wray-m-3.hpl.hp.com 254692941d bitkeeper revision 1.1159.68.3 (41385101Grb5mmJcQ0YiLdCY2dOnCg)
Notify device controllers when devices are added or removed so
that they can probe for the devices.
2004-09-03 11:09:53 +00:00
mjw@wray-m-3.hpl.hp.com 6e017f7ed5 bitkeeper revision 1.1159.1.118 (41370c33N7_5pjKepga6V4ZmyTSNnQ)
Add support for maxmem in xm create and config.
2004-09-02 12:04:03 +00:00
mjw@wray-m-3.hpl.hp.com 12576244f5 bitkeeper revision 1.1159.1.113 (4136e90fOr8_LyqJ85kTqL-uFrO_xw)
Remove debug prints and turn logging to stderr off by default.
2004-09-02 09:34:07 +00:00
mjw@wray-m-3.hpl.hp.com 92ba19d639 bitkeeper revision 1.1159.1.110 (412ef3f1vl_4cVn-pCxQHFvK5hcIZQ)
Raise an error if a device cannot be found.
This prevents constructing a block device that will then
cause errors because its vdev is not set.
2004-08-27 08:42:25 +00:00