aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* libxenguest: Revert domain builder interface changes for 'superpages'Keir Fraser2009-07-207-47/+42
| | | | | | | parameter, and place the flag in a pad byte of 'struct xc_dom_image' instead. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Use a single mmap interface to LinuxKeir Fraser2009-07-201-50/+21
| | | | | | | | Modify xc_map_foreign_range and xc_map_foreign_ranges to call mmap_map_foreign_batch. This eliminates the need for multiple privcmd mmap ioctls. Now only IOCTL_PRIVCMD_MMAPBATCH is required. Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
* xend: Add support for URI ('file:' and 'data:' scheme) for PV/kernel and ↵Keir Fraser2009-07-204-5/+300
| | | | | | | | | | | | | | | | | | | | PV/ramdisk Add support for 'file:' and 'data:' URI schemes for the parameters 'PV/kernel' and 'PV/ramdisk' in the VM.create() call. The 'data:' scheme handling enables using a file which is stored inside the management system (from where the XenAPI call is send) as kernel or ramdisk. Notes: o all included: a detailed description can be found in the xenapi documentation o bumped up the version of the API document to 1.0.8 (because of (minimal) interface extension) o Future enhancements (like http:, ftp: schemes) fit seamlessly into the current design / classes Signed-off-by: Andreas Florath <xen@flonatel.org>
* xend: modify sort() for Python 2.3Keir Fraser2009-07-201-1/+1
| | | | | | | Python 2.3 does not support the sort(cmp, key, reverse) style. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* blktap2: Remove set() for Python 2.3Keir Fraser2009-07-201-5/+5
| | | | | Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xend: Restore scheduling parametersKeir Fraser2009-07-162-7/+14
| | | | | | | Scheduling parameters are reset to default values when I restore or migrate a domain. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvmloader: Add new test for MSR_SHADOW_GS_BASE validity after SWAPGS ↵Keir Fraser2009-07-164-18/+109
| | | | | | instruction. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools/check: We do need a default for ${PYTHON} as called fromKeir Fraser2009-07-153-0/+10
| | | | | | | | install.sh with PYTHON possibly undefined in the environment. So we make PYTHON=python the sensible default. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools/check: No need to check for ${PYTHON} existence.Keir Fraser2009-07-153-10/+0
| | | | | | | | | It must exist as otherwise the build will fail since we reference $(PYTHON) all over the place. Furthermore the fallback of '/usr/bin/env python' actually runs Python, it doesn't get the path to it. So that wouldn't work very well. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix a couple of comment typos.Keir Fraser2009-07-151-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* minios: switch to C99 integer typesKeir Fraser2009-07-151-3/+3
| | | | | | This is a necessary step to make minios build on NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* python: Remove tab indents.Keir Fraser2009-07-1410-46/+45
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* pass-through: use vdevn in xm_pci_attach()Keir Fraser2009-07-141-3/+3
| | | | | | | Use vdevfn in xm_pci_attach() for non-zero functions, the vslot element of dev dictionaries no longer exists. Signed-off-by: Simon Horman <horms@verge.net.au>
* netbsd: remove qemu-ifup-nbsd, now that it is in the right placeKeir Fraser2009-07-092-4/+0
| | | | | | (ioemu c/s 5cc34ea27f1cbd1a0560cfca91fb89ccd6d5726f) Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Make python check scripts use of $(PYTHON) make variable.Keir Fraser2009-07-094-5/+19
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* tools: python -> $(PYTHON)Keir Fraser2009-07-091-4/+4
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* blktap2: Fix compile warning with gcc4.Keir Fraser2009-07-081-0/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* fs-back: better error handling in fs-backendKeir Fraser2009-07-084-50/+138
| | | | | | | | | | | Currently most of the error checking in fs-backend is done by the use of asserts that would terminate the daemon in case of a single error on a single request. This patch replaces the asserts with debugging messages and terminates the connection on which the error occurred. With this patch applied I was able to complete successfully over 1000 live migrations with stubdoms. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xenstat: Use backend path which is compatible with pvops and 2.6.18-xen kernels.Keir Fraser2009-07-071-1/+1
| | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* xend: allow pv_ops kernel driver pci-stub to hide devices for assignmentKeir Fraser2009-07-064-27/+29
| | | | | | | | | | | | | | | | | pciback is used by VT-d to hide device for assigment. But in pv-ops dom0, pciback is not supported yet. Fortunately, pci-stub module is used to hide device in Linux for KVM VT-d device assignment and it's included in pv-ops dom0. So can use pci-stub to hide devices for assignment. Device must be hidden before assignment. Control panel has checks if devices can be assigned or not, and can list assignable devices via reading devices owned by pciback. This patch changes the checks, and also list assignable devices which are owned by pci-stub. Use pci-stub to hide devices, and use this patch to pass checkes in control panel, device assignemnt with VT-d works on Xen with pv-ops dom0. Signed-off-by: Weidong Han <weidong.han@intel.com>
* blktap2: fix save/restore/migrationKeir Fraser2009-07-062-12/+36
| | | | | | | | | | | | | | | | | | | | blktap2 devices use a regular 'phy' vbd blkback backend, causing Blktap2Controller to trample the devices' parameters. This causes problems with save/restore and managed domains, among other things. This patch modifies Blktap2Controller to store both the vbd and tap2 parameters in xenstore, and stops it from trampling the device's config on device creation. * store blktap2 parameters in xenstore * restore blktap2 device config to original state once the underlying * vbd device is created (this fixes managed domains) * use blktap2 parameters rather than vbd parameters when building * blktap2 device configurations * remove blktap2 specific code from XendConfig Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
* blktap2: seperate blktap1/blktap2 disk typesKeir Fraser2009-07-062-7/+18
| | | | | | | | | | * seperate blktap1/blktap2 disk types * use blktap1 when driver is not in explicit list of blktap2 drivers, * rather than current check against list of blktap1 only drivers * remove 'tapdisk' disk type (it is not a tapdisk disk type) and fix * tapdisk disk type check in XenConfig Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
* libfsimage: Support for zfs version 16.Keir Fraser2009-07-064-11/+11
| | | | | | | Remove version checks to support boot of ZFS root filesystem version 16. Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
* tools: Always check for __linux__ not __Linux__Keir Fraser2009-07-025-12/+11
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* gtraceview: compile fixes for NetBSD.Keir Fraser2009-07-022-1/+7
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xend: Remove disused constantsKeir Fraser2009-07-021-5/+0
| | | | | | This patch removes disused constants from XendConstants.py. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* xend: fix an undefined name error: mac may be referenced before definition.Keir Fraser2009-07-021-0/+1
| | | | Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* libxc: Fix bugs in xc_exchange_page: pfn_type indexed by gpfn.Keir Fraser2009-07-021-2/+2
| | | | Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
* xend: Restore uname of blktap for managed domainsKeir Fraser2009-07-021-1/+9
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* buikd: Fix the detection of udev with udevadm version < 128Keir Fraser2009-07-022-5/+8
| | | | Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
* x86 hvm: Allow delivery of legacy 8259 interrupts to VCPUs != 0.Keir Fraser2009-07-012-23/+29
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Remove redundant semicolonsKeir Fraser2009-07-012-2/+2
| | | | Signed-off-by: Rikiya Ayukawa <ayukawa.rikiya@jp.fujitsu.com>
* blktap2: add blktap2 device class and device controllerKeir Fraser2009-07-018-87/+117
| | | | | | | | | | | | | | | | | | | blktap2 devices must be handled differently than blktap2 devices. blktap2 devices require a sysfs write to close the underlying device, as well as extra sysfs writes when the domU is paused/unpaused. The differences between blktap1 and blktap2 are great enough to warrant the creation of a new device class, 'tap2', and device controller for blktap2 devices. * add a new device controller (Blktap2Controller) and device class (tap2) for blktap2 devices * move blktap2 specific code from DevController to Blktap2Controller * if possible, check xenstore to determine block device class * use vmpath (/vm/<uuid>/) when releasing devices * modify linux hotplug cleanup script to handle blktap2 device removal Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
* xend: get rid of hardcoded path in xend config fileKeir Fraser2009-06-302-12/+42
| | | | | | | | * Change default settings to relative pathes. * Make xend to prepend install directory if entries have no absolute * path Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* x86 Cx tracing: adds gtraceview & gtracestat utilitiesKeir Fraser2009-06-293-3/+2318
| | | | Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
* x86 Cx tracing: export the Cx exit reason (pending interrupt during Cx)Keir Fraser2009-06-291-1/+1
| | | | Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
* x86 Cx tracing: export expected/predicted Cx to xentraceKeir Fraser2009-06-291-1/+1
| | | | Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
* fs-backend: fix default export and filename checksKeir Fraser2009-06-272-55/+74
| | | | | | | | | This patch changes fs-backend to use /var/lib/xen as default export and check all the file names and paths given by the frontend against the export path, so that the frontend can only operate under the export directory. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* tmem: extra statsKeir Fraser2009-06-271-0/+7
| | | | | | | This patch collects a few additional valuable per-domain performance stats. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* xend: pass-through: Implement least-mapping of virtual functionsKeir Fraser2009-06-272-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an alternative to identity mapping virtual functions. It works by assigning the numerically lowest virtual function that is available. * The order of assignment is thus dependent on the order that physical functions are specified. e.g. config physical virtual 01.00.0,2 -> 01:00.0 -> 00:07.0 -> 01:00.2 -> 00:07.1 is different to config physical virtual 01.00.2,0 -> 01:00.2 -> 00:07.0 -> 01:00.0 -> 00:07.1 * Physical function 0 need not be present e.g. config physical virtual 01.00.1,2 -> 01:00.1 -> 00:07.0 -> 01:00.2 -> 00:07.1 * Functions from the same physical multi-function device may be exported as multiple multi-function and single-function devices e.g. 01.00.0,2 -> 01:00.0 -> 00:07.0 -> 01:00.2 -> 00:07.1 and 01.00.1,3 -> 01:00.1 -> 00:08.1 -> 01:00.3 -> 00:08.1 and 01.00.5 -> 01:00.5 -> 00:09.0 Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: pass-through: rename vslot to vdevfn and vslots to vdevfnsKeir Fraser2009-06-278-74/+78
| | | | | | | | | This is a noisy patch that makes not functional changes. It renames vslot to vdevfn and vslots to vdevfns. Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: pass-through: Parse command line for multi-function hot-plug and unplugKeir Fraser2009-06-272-35/+131
| | | | | | | | | | | | | | | Hook things up to allow multi-function pass-through. This includes making sure that request is valid. In the case of pci-detach: * All the functions requested must be attached to the same virtual slot * and; * A request must include the functions attached to a virtual slot Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: pass-through: Add key to pci device dictionaryKeir Fraser2009-06-279-13/+36
| | | | | | | | | This will be used to identify the functions belonging to a multi-function device. Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: pass-through: Add pci_dict_bin_to_str()Keir Fraser2009-06-271-16/+31
| | | | | | | | | Break out the device list gathering code from xm_pci_list() so that it can be re-used by subsequent changes. Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: pass-through: Only tell qemu-xen to unplug function 0Keir Fraser2009-06-271-2/+10
| | | | | | | | | | | When unplugging a function, all functions in the same vslot must be unplugged, and function 0 must be one of the functions present when a vslot is hot-plugged. Telling qemu-dm to unplug function 0 also tells it to unplug all other functions in the same vslot. Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: pass-through: Allow multi-function device specifications to be parsedKeir Fraser2009-06-277-32/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The general format is as follows: Now: SEQ:BUS:DEV.FUNC[@VSLOT][,OPT...] New: SEQ:BUS:DEV.FUNC0-FUNCN[@VSLOT][,OPT...] SEQ:BUS:DEV.FUNC0,FUNCM,FUNCN[@VSLOT][,OPT...] SEQ:BUS:DEV.*[@VSLOT][,OPT...] In the case of unplug the VSLOT and OPT must be omitted. Xm expands this notation notation out and passes more conventional parameters to qemu-xen. E.g: 0000:00:01.00-03 becomes: 0000:00:01.00 0000:00:01.01 0000:00:01.02 0000:00:01.03 0000:00:01.00,03,05,07 becomes: 0000:00:01.00 0000:00:01.03 0000:00:01.05 0000:00:01.07 For a device that has functions 0, 1, 2, 3, 5 and 7, 0000:00:01.* becomes: 0000:00:01.00 0000:00:01.01 0000:00:01.02 0000:00:01.03 0000:00:01.05 0000:00:01.07 Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Cc: Akio Takebe <takebe_akio@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* hvmloader: pass-through: multi-function PCI hot-plugKeir Fraser2009-06-272-1032/+15633
| | | | | | | | | This registers information to allow guests to recognise non-zero functions when hot-plugged. Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: pass-through: use devfn instead of slots as the unit for pass-throughKeir Fraser2009-06-276-17/+25
| | | | | | | | | | | | | | | | Instead of suppling a slot number to qemu-xen, supply a devfn. This and subsequent other changes will allow xend to ask for more than one function to be inserted into a single slot - by specifying which function of the slot should be used. This is a minimal patch for this change. A subsequent patch that has a lot of noise to rename slot to devfn is intended to follow. Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* tools: fix inverted logic checkKeir Fraser2009-06-251-1/+3
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xend: create /var/lock/subsys at startupKeir Fraser2009-06-251-0/+1
| | | | | | | Ubuntu puts /var/lock on tmpfs, so we should create /var/lock at startup, rather than at installation time. Signed-off-by: Jun Koi <junkoi2004@gmail.com>