Commit Graph
59 Commits
Author SHA1 Message Date
shand@ubuntu.eng.hq.xensource.com d22746ede9 Provide xend support for setting up TPM front- and back-end interfaces.
Signed-off-by: Steven Hand <steven@xensource.com> 
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-08-30 11:28:26 -08:00
vh249@arcadians.cl.cam.ac.uk 86c29e1543 fix logic of ballooning out to handle the dom0_min_mem parameter correctly
add an error message when having not enough memory

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-21 16:49:54 +00:00
vh249@arcadians.cl.cam.ac.uk 10d9dd27f4 fail domU creation if memory need couldn't be succeed after ballooning out dom0
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-18 01:13:49 +00:00
kaf24@firebug.cl.cam.ac.uk 91b0f0040e Really randomise MAC addresses for multi-VIF guests.
Reseeding on every VIF doesn;t work as timeofday doesn't
change quickly enough.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-16 19:38:22 +00:00
adsharma@los-vmm.sc.intel.com 7e359b2621 Don't leave vncviewer processes running if xm create fails
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-15 12:50:25 -08:00
kaf24@firebug.cl.cam.ac.uk 09d42caafd Add missing LGPL license notice to python sources
that didn't have them.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-08-09 13:17:37 +00:00
kaf24@firebug.cl.cam.ac.uk 2ba532d767 Rename console binaries to xenconsole and xenconsoled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-07 09:12:55 +00:00
kaf24@firebug.cl.cam.ac.uk f6d93de51e The attached patch removes all of the console handling code from Xend
and changes xm to simply exec /usr/libexec/xen/xc_console.

I've done a pretty good amount of testing and this seems to clear up all 
of the Xend console issues in bugzilla.

This is a pretty big change to Xend though with a lot of deleted code so 
I'd appreciate if people more familiar with the Xend codebase could look 
through it critically.

In addition to the patch, the following files are no longer used:

tools/python/xen/util/console_client.py
tools/python/xen/xend/XendConsole.py
tools/python/xen/xend/server/SrvConsole.py
tools/python/xen/xend/server/SrvConsoleDir.py
tools/python/xen/xend/server/console.py

Regards,

Anthony Liguori

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-04 09:00:16 +00:00
kaf24@firebug.cl.cam.ac.uk 084dedfee3 This patch does 2 jobs:
- Enforce the number of CPUs dom0 will take. See the new variable
"dom0-cpus" in xend-config.sxp (you will want to set this variable to
1 on SMP systems)

- Balloon out dom0 memory when creating domU, if there is not enough
free memory. The lowest level we will balloon out is configured via
the new variable "dom0-min-mem" in xend-config.sxp


I still have a doubt: where to put the code to enforce dom0-cpus. At
the moment I put it into
python/xen/xend/server/SrvDaemon.py, and hopefully that is resonable
enough. Any comment?



Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-07-29 10:36:53 +00:00
kaf24@firebug.cl.cam.ac.uk 72098d9304 Device model SXP cleanup
- don't pollute the sxp with unused options
- use the same syntax as paravirtualized domains for disks

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-11 20:09:10 +00:00
arun.sharma@intel.com[kaf24] 03d545ffcd bitkeeper revision 1.1773 (42c3a841nLib9kdSmthr05jouqiNeg)
[PATCH] Device model cleanup.

Device model cleanup.

- Single config file for xen and device models
  (Shell script doesn't source xmdefconfig anymore)
- No more device-model shell script by default. You can
  have one if needed (qemu-dm.debug)
- All logic in the script device-model is moved to python
- $DISPLAY is passed from xm to xend
- Don't fork vncviewer on dryruns
- Add support for killing device models on domain destroy
- info vmxiopage command added to the monitor
- Refactor shared io page into global and per vcpu state
- Remove the hard coding of IOPACKET_PORT
- move the virtual_platform_def up to domain struct from vcpu
- xm create -n:

(vm
    (name ExampleVMXDomain)
    (memory 128)
    (ssidref -1)
    (image
        (vmx
            (kernel /usr/lib/xen/boot/vmxloader)
            (root '/dev/hda1 ro')
            (vcpus 1)
        )
    )
    (memmap )
    (device_model /tmp/foo)
    (hda /var/images/min-el3-i386.img)
    (hdb )
    (hdc )
    (hdd )
    (cdrom )
    (boot c)
    (fda )
    (fdb )
    (localtime 0)
    (serial )
    (macaddr )
    (stdvga 0)
    (isa 0)
    (nographic 0)
    (vnc 0)
    (sdl 0)
    (display localhost:10.0)
)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:07:29 +00:00
kaf24@firebug.cl.cam.ac.uk b1fe63ce24 bitkeeper revision 1.1746 (42badf41asjaKoYentyODb8CdFEydg)
Cset exclude: arun.sharma@intel.com[kaf24]|ChangeSet|20050623091344|24134
2005-06-23 16:11:45 +00:00
arun.sharma@intel.com[kaf24] dee0a637a4 bitkeeper revision 1.1729 (42ba7d48EFeRBiv6YMxK_aR9binchA)
[PATCH] novnc-dryrun.patch

Don't start VNC on a dry run.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-23 09:13:44 +00:00
smh22@firebug.cl.cam.ac.uk 063a38978a bitkeeper revision 1.1726.2.5 (42ba7c68cP1Z3SmHyVl4grEnN-Yf8g)
minor xense tool updates

Signed-off-by: Steven Hand <steven@xensource.com>
2005-06-23 09:10:00 +00:00
smh22@firebug.cl.cam.ac.uk 80070b4a6c bitkeeper revision 1.1718.1.7 (42b742f8NxTuN2pqCHFAWI78dbEYKw)
Initial MAC (sHype) support from IBM. 
Defaults to NULL policy for now. 

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2005-06-20 22:28:08 +00:00
rneugeba@wyvis.research.intel-research.net 61a185c7b6 bitkeeper revision 1.1515.1.1 (42922641RfGxKY5iamyIb3lRFjlpzQ)
better support for vnc in qemu device model:
- different ports for different VMs
- allow reverse connect to a running viewer

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@intel.com>
2005-05-23 18:51:45 +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 5ee95edd62 bitkeeper revision 1.1327.2.11 (426fb893OrpBVeRpaWJ0atIxlG4Hxw)
Add support for unix-domain sockets to consoles and the
event server.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-27 16:06:43 +00:00
iap10@freefall.cl.cam.ac.uk e9d4be73ca bitkeeper revision 1.1236.43.6 (4243f3f3rPSrXq5qC_rXYAkeTrQ7dQ)
manual merge
2005-03-25 11:20:19 +00:00
mjw@wray-m-3.hpl.hp.com b9aefb2dd7 bitkeeper revision 1.1159.258.63 (423ef73fgHxWB39GjIH7wq4Q4o6-3Q)
Change to choose a free vnc display based on netstat.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-03-21 16:33:03 +00:00
mjw@wray-m-3.hpl.hp.com 717339dbb2 bitkeeper revision 1.1159.269.6 (4239b032OtoMBkr4L88BtgvDYgxbLg)
Add support in 'xm create' for spawning a vncviewer.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-03-17 16:28:34 +00:00
mjw@wray-m-3.hpl.hp.com afedb1e48f bitkeeper revision 1.1159.269.5 (42386371nvHctvk3SHgDUG4w3o9URw)
Add support for specifying the interface name to be used by a netif
backend driver instead of the default vifD.N.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-03-16 16:48:49 +00:00
iap10@labyrinth.cl.cam.ac.uk 12814f99e4 bitkeeper revision 1.1159.212.64 (42000361XrdUoEK_vD6RMga2eLmwZg)
Allow specification of backend vif MAC addresses. If a backend
MAC is not provided, generate one as before

Signed-off-by: Jody Belka <knew-xen@pimb.org>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-01 22:32:01 +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 6df77776ad bitkeeper revision 1.1159.217.20 (41ebdda5ZO9YBU_VHuSh0IwgcQe0Ng)
Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into arcadians.cl.cam.ac.uk:/local/scratch-2/cl349/xen-unstable.bk-merge
2005-01-17 15:45:41 +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
kaf24@scramble.cl.cam.ac.uk efee3e1abd bitkeeper revision 1.1159.217.14 (41e6620e1bqDGxYXJ_4L3rtRz9G5sQ)
Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
2005-01-13 11:57:02 +00:00
kaf24@scramble.cl.cam.ac.uk e214e5c6c1 bitkeeper revision 1.1159.170.93 (41e661e138UbGRYHtgaE3FTrqTgzzw)
Add VIF-routing capability to xend. The default is still to bridge.
2005-01-13 11:56:17 +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
cl349@freefall.cl.cam.ac.uk 9cca9d355b bitkeeper revision 1.1159.1.293 (4180123d6fy9CmhZFhA2dxg-C2tnig)
create.py:
  Set the name of the vm to the config file's basename if no name is
  specified in the config file or on the commandline.
opts.py:
  Handle trailing getopt arguments correctly.
2004-10-27 21:25:17 +00:00
cl349@freefall.cl.cam.ac.uk eb7ab5175a bitkeeper revision 1.1159.1.292 (41800989G4HjOPTJHRAf8UYug6chUA)
Parse bare words as config files making the -f before a config filename
optional.
Make parsing intermingled ``getopt'' and ``var=val'' options sane and
add support for a default option handler for bare words.
2004-10-27 20:48:09 +00:00
kaf24@freefall.cl.cam.ac.uk 47786d1f32 bitkeeper revision 1.1159.1.230 (416d965arlQEDDF33KaiMFJy_o-s4g)
Better random MAC addresses.
2004-10-13 20:55:54 +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 951f7019b3 bitkeeper revision 1.1159.1.86 (412495d3pSRY5XpdRb-xCxOKOJxElg)
Rename xmdefaults to xmdefconfig.
Rename other xm config examples.
Change default script dir to /etc/xen/scripts.
2004-08-19 11:58:11 +00:00
mjw@wray-m-3.hpl.hp.com 4a4b2b5c41 bitkeeper revision 1.1159.38.4 (41235b5b8R2aV73aJwQTq0FCRPc6UA)
Fix typo.
2004-08-18 13:36:27 +00:00
mjw@wray-m-3.hpl.hp.com d82470e9a7 bitkeeper revision 1.1159.38.3 (4123550cLBAC07otAj8ftsT6MzujHQ)
Make backend domain a per-device parameter.
Restructure device controllers and adjust
config handling.
2004-08-18 13:09:32 +00:00
mjw@wray-m-3.hpl.hp.com 9589427638 bitkeeper revision 1.1159.1.70 (41208580UQYjPMyX6IwpTt7euiLMgg)
Document cpu_weight config field and check value type.
2004-08-16 09:59:28 +00:00
xenbk@gandalf.hpl.hp.com f9ec05f296 bitkeeper revision 1.1159.1.65 (41207609Wits7TpsBL3_SsFuuzRJjg)
Merge http://xen.bkbits.net:8080/xeno-unstable.bk
into gandalf.hpl.hp.com:/var/bk/xeno-unstable.bk
2004-08-16 08:53:29 +00:00
gm281@boulderdash.cl.cam.ac.uk 274e01f431 bitkeeper revision 1.1159.30.1 (411ddb8cj12XLuMNx_qS9SGeej51OQ)
cpu_weight parameter added to the xm create command. Minor bug fix for BVT.
2004-08-14 09:29:48 +00:00
mjw@wray-m-3.hpl.hp.com 9932669bcd bitkeeper revision 1.1159.28.1 (411ce7c8olPyp1mOhZBrwe7zhBtEWg)
Add support for configuring the back-end domain for vbd or vif devices.
2004-08-13 16:09:44 +00:00
mjw@wray-m-3.hpl.hp.com cc313177e5 bitkeeper revision 1.1159.1.43 (411b823643tlKC-NQ-OaFo48LvEShA)
Add an option to leave a domain paused when it is created.
2004-08-12 14:44:06 +00:00
iap10@labyrinth.cl.cam.ac.uk 72ded1ca58 bitkeeper revision 1.1108.52.1 (410eb854DZhEQqBAsiFdxS10QzU2Sg)
Avoid putting ip= on linux command line unless the user actually wants an address set or is using kernel dhcp.
2004-08-02 21:55:32 +00:00
mjw@wray-m-3.hpl.hp.com 625ccdb6b9 bitkeeper revision 1.1108.24.2 (4108d1f8mh1HwCuBJAKjn8UuBU4wTA)
Change to supporting reference to domain by name or id and
make xm tools use names.
2004-07-29 10:31:20 +00:00
mjw@wray-m-3.hpl.hp.com ba2e13cf57 bitkeeper revision 1.1108.14.5 (4104fc948WTpeJe1QshhylA41dUENA)
Fix xm path to create domain directly from a config.
2004-07-26 12:44:04 +00:00
mjw@wray-m-3.hpl.hp.com d291862c53 bitkeeper revision 1.1108.1.17 (410130f82d--8rFf_j0nL2KMhoKYvg)
Make rebooting a domain use the same domain id and console,
without disconnecting any connected console.
2004-07-23 15:38:32 +00:00
mjw@wray-m-3.hpl.hp.com 13269040a5 bitkeeper revision 1.1081.1.2 (40f55de2NRzSVtT27hdCdG3fbdnqGg)
Allow console port for a domain to be specified.
2004-07-14 16:22:58 +00:00
mjw@wray-m-3.hpl.hp.com c0aa821f0d bitkeeper revision 1.1081.1.1 (40f552eaWV4viomXWEuk8dzfLHid7g)
Change to new restart model.
2004-07-14 15:36:10 +00:00
mjw@wray-m-3.hpl.hp.com 9a1fac5ff3 bitkeeper revision 1.1076 (40f3f7b4Cj4P09-PODiTO2MMFlKicw)
Add device create and device destroy for an existing domain.
2004-07-13 14:54:44 +00:00
mjw@wray-m-3.hpl.hp.com 634b06df4c bitkeeper revision 1.1075 (40f3d929OFHwDCndxHCAhHnmUAclPg)
Improve error trapping in xm.
Allow nfs_server to override dummy addr.
2004-07-13 12:44:25 +00:00