aboutsummaryrefslogtreecommitdiffstats
path: root/stubdom/stubdom-dm
Commit message (Collapse)AuthorAgeFilesLines
* stubdom: Fix stubdom-dm using "grep" improperlyJohn Weekes2011-01-111-1/+1
| | | | | | | | | | | | | | | | | stubdom-dm uses "grep" on "xm list" output to determine whether it is already running. The existing behavior is to use "grep $domname-dm" but this will result in a false-positive in the case of another domU running whose name ends with the full new name; for instance, if "abctest-dm" is running, a new "test-dm" will spin forever, waiting for it the end. Any easy fix is to have it use "grep -w" instead of "grep", searching for the whole word only. It also might be worth considering a switch to "xl list" from "xm list", here and in other places. Signed-off-by: John Weekes <lists.xen@nuclearfallout.net> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* stubdom: make stubdom-dm exit properlyKeir Fraser2009-10-291-6/+5
| | | | | | | | | | | | The built-in bash command wait should be able to take a pid argument and just wait for the specified process to die, but it currently has a bug and what actually does is waiting for the death of all the children. For this reason the stubdom-dm script doesn't exit properly after stubdom destruction. This patch solves the issue spawning only one child, removing the sleep subprocess workaround that was used to create a usable stdin for "xm console" and replacing it with a fifo. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xend: destroy stubdoms synchronouslyKeir Fraser2009-10-151-6/+2
| | | | | | | | | This patch makes the destruction of stubdoms a synchronous event, therefore it is no longer possible to run out of memory when rebooting a guest because the stubdom of the old guest is always destroyed before the creation of the new guest. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdoms: parse bridge informationsKeir Fraser2009-08-161-1/+8
| | | | | | | | | | Currently the stubdom-dm script doesn't read the bridge of a vif on xenstore, therefore all the vifs assigned to the stubdom always belong to default bridge. This patch changes the behavior reading the bridge from xenstore and adding the bridge to the stubdom config file. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdom: fix stubdom-dm error pathKeir Fraser2009-07-141-2/+2
| | | | | | Exit the shell and not a subshell. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* stubdom: Install and use stubdompath.shKeir Fraser2009-07-131-2/+2
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* stubdom: Fix stubdom-dm after c/s 19818Keir Fraser2009-07-101-1/+2
| | | | | | | | | | | 19818 added the following line to stubdom-dm: . ./stubdompath.sh and replaced many paths with variables. However the path to stubdompath.sh is obviously wrong and stubdompath.sh is nowhere to be found anyway. For the moment I am dropping . ./stubdompath.sh and hardcoding the values of the variables. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdom: fix a race that affects live migration with stubdomsKeir Fraser2009-07-081-1/+1
| | | | | | | | | | | This patch fixes a race during live migration with stubdoms: right after the stubdom dies the configuration file of the VM is removed by stubdom-dm but, in case of a live migration, the configuration file could be the one of the new VM in the process of being created. Removing the config file before destroying the stubdom is enough to solve the race. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* Get rid of hardcoded pathes for stubdom and hotplug scriptsKeir Fraser2009-06-231-14/+17
| | | | | | | | | | | | | | | | | | - Have the buid system generate a file which exports the install paths for the hotplug scripts and stubdom / stubdom-dm - Move file generation code from tools/python/Makefile into a gmake macro in Config.mk to avoid maintenance of three duplicates each with its own tweaks and bugs - Export gmake variables into ioemu as shell variables for upcoming ioemu patches - Do above as a gmake macro to avoid maintenance of several duplicates - Adjust hotplug scripts to find the right xen binaries from the install directory - Adjust stubdom-dm to use the install directories Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* stubdoms: qemu monitor supportKeir Fraser2009-06-181-0/+5
| | | | | | | | | | Add support for the qemu monitor in a stubdom, the same way the emulated serial support was added few days ago. The stubdom exports the monitor as a pty and minios opens a console frontend; qemu in dom0 provides the correspondent backend for this additional pv console that happens to be the qemu monitor. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xend: support multiple consoles per domainKeir Fraser2009-06-161-0/+5
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdom: 'file' based disk sharingKeir Fraser2009-05-261-4/+0
| | | | | | | | | | Allow 'file' based disks, that are blkback based disks, to be shared between the guest domain and the stubdom. It does so exploiting the same exception introduced in the previous patch "stubdoms phy disks sharing". Now we can remove the hack in stubdom-dm that forces "file" disks to be opened using blktap instead of blkback. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdoms: handle cdrom devices in the config fileKeir Fraser2009-04-231-1/+3
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdoms: generate stubdom config fileKeir Fraser2009-04-231-9/+71
| | | | | | | | | | | | | | | | | | This patch removes the need for a second configuration file for stubdoms: it is going to be automatically generated by the script stubdom-dm using command line options and xenstore to find any needed information. The configuration script will be placed under /etc/xen/stubdoms and automatically removed when the domain is destroyed. The only change needed in xend is not to write on xenstore sdl, opengl and serial command line options for qemu, because stubdoms do not support them. It is safe to remove those two options from xenstore because qemu does not use xenstore to read commans line options. Finally this patch fixes blkfront disconnections from backends and display and xauthority variables for pv guests. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdom: add videoram to stubdom initial memory reservationKeir Fraser2009-01-291-1/+6
| | | | | | | | | | | This patch adds a videoram parameter (4MB is the default) to pv guests too: if the pv guest is actually a stubdomain then the videoram size is added to the initial required available memory. This way there is no risk that a stubdom fails to populate the videoram because the RAM freed for the videoram by dom0 has already been used to create the stubdom. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* stubdom: rename the ioemu-dm domain config file to domainname-dm,Keir Fraser2008-08-041-3/+3
| | | | | | | which is shorter, makes more sense, and sorts better. From: Samuel Thibault <samuel.thibault@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* stubdom: Fix quotes in stub domain creationKeir Fraser2008-04-051-1/+1
| | | | | | by using the same as in debug mode. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: support save/restore by passing the -loadvm parameter,Keir Fraser2008-03-181-3/+15
| | | | | | | letting the stubdomain access the save area, and having it watch the correct xenstore node. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix mini-os messages log and SDL terminationKeir Fraser2008-02-281-18/+9
| | | | | | | | | | | We can now let the stubdom-dm script output mini-os messages to stdout/err so that it gets output to the new /var/log/xen/qemu-dm-$domname.log In the SDL case, we must not wait for the VNC server port to appear, as it won't ever. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: log and documentation fixesKeir Fraser2008-02-261-1/+2
| | | | | | | | - Document that for vnclisten names and 127.0.0.1 should not be used. - Documentation cosmetic fixes - Dump qemu output to the usual logs Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Add stubdomain support. See stubdom/README for usage details.Keir Fraser2008-02-121-0/+97
- Move PAGE_SIZE and STACK_SIZE into __PAGE_SIZE and __STACK_SIZE in arch_limits.h so as to permit getting them from there without pulling all the internal Mini-OS defines. - Setup a xen-elf cross-compilation environment in stubdom/cross-root - Add a POSIX layer on top of Mini-OS by linking against the newlib C library and lwIP, and implementing the Unixish part in mini-os/lib/sys.c - Cross-compile zlib and libpci too. - Add an xs.h-compatible layer on top of Mini-OS' xenbus. - Cross-compile libxc with an additional xc_minios.c and a few things disabled. - Cross-compile ioemu with an additional block-vbd, but without sound, tpm and other details. A few hacks are needed: - Align ide and scsi buffers at least on sector size to permit direct transmission to the block backend. While we are at it, just page-align it to possibly save a segment. Also, limit the scsi buffer size because of limitations of the block paravirtualization protocol. - Allocate big tables dynamically rather that letting them go to bss: when Mini-OS gets installed in memory, bss is not lazily allocated, and doing so during Mini-OS is unnecessarily trick while we can simply use malloc. - Had to change the Mini-OS compilation somehow, so as to export Mini-OS compilation flags to the Makefiles of libxc and ioemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>