aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* xm-test: fix network13 test (protocol and extensions)Keir Fraser2009-08-053-19/+31
| | | | | | | | | | | Attached there is a patch that fixes the used protocol (was udp - but nobody was listening...) to icmp echo and added the extension, that the dom0 and the other guest ips are also pinged. Because of the many different scenarios (three nested loops) over packet sizes, two guests and different ip addresses, one run of this test case takes now about 4.5 minutes. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Adapt memory setting to up-to-date kernel memory consumptionKeir Fraser2009-08-051-1/+1
| | | | | | | | | | The attached patch fixes xm-test memset 04 that it can be used with up to date kernels. The old version sets the memory to 15MByte which is too low for modern kernels: the oom-killer in this case kills the login shell of the test-case and init. Increased the size to 18M which gives the userspace about 2.5 MByte memory. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: 10_block_attach_detach_multiple_devices fixedKeir Fraser2009-08-052-32/+40
| | | | | | | | This patch fixes and (re-)enables test 10 of the block-create suite. The tests by random attach and detach devices to / from a domU and checks if everything is ok. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test block-create: use ext3 as filesystemKeir Fraser2009-08-051-2/+4
| | | | | | | | | The current implementation uses ext2 for tests. The tests currently fail, because the current kernel does not support ext2 by default. This patch creates an ext3 filesystem for the tests. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xend: fix memory leak resulting in long garbage collector runsKeir Fraser2009-08-051-1/+2
| | | | | | | | | | | | | | | In the method xen.xend.XendStateStore.XendStateStore.load_state and xen.xend.XendStateStore.XendStateStore.save_state the minidom objects used to load/save the current state of a device type, can't be freed by the python garbage collector after all references to the top node are cleared, because of cyclic references between the DOM nodes. So memory usage of xend increases after calling these methods. To solve this problem, the unlink() method must be called for a minidom object before the last reference to the top node is cleared (see python docs). This breaks the cyclic references, so the garbage collector can free these objects. Signed-off-by: juergen.gross@ts.fujitsu.com
* xend: pass-through: Extend multi-function mappingKeir Fraser2009-08-051-29/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This extends the mapping between physical and virtual PCI functions for multi-function pass-through in two ways. If neither of these rules apply the existing identity-mapping of physical to virtual functions is used. 1) If physical function zero is not present in a multi-function pass-through device then the numerically lowest physical function whose virtual function hasn't explicitly been set will be mapped to virtual function 0. This is to satisfy the requirement that a (virtual) device must always have function 0 present. 2) The virtual function to be used for a physical function may be explicitly set. e.g. 00:1d.2=3D0,1=3D1,0=3D2@7 will result in the following mapping: physical | virtual ---------+-------- 00:1d.2 | 00:07.0 00:1d.1 | 00:07.1 00:1d.0 | 00:07.2 Ranges may also be used with explicit assignment. The following would result in the same mapping as above: 00:1d.2=3D0-0=3D2@7 Please be aware that it is very likely that using these extensions it is possible to create mappings that do not work. If in doubt please use identity-mapping. Cc: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* xend: passthrough: add checking when a device is hotplugged into pv guest.Keir Fraser2009-08-051-14/+21
| | | | | | | | When we 'xm pci-attach' device into pv guest, we also need to check if the device is owned by pciback or pci-stub, if the device has been assigned, etc. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: pci: Use PCIe FLR for VF of Intel 82599 10GbE ControllerKeir Fraser2009-08-021-0/+16
| | | | | | | We know it does have PCIe FLR capability even if it doesn't report that. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: passthrough: loosen the pci co-assignment for pv guestKeir Fraser2009-08-025-40/+74
| | | | | | | | | | | | In current xend, we can not assign co-assignment devices to different guests, even for pv guests. This patch loosens the policy for pv guest: if none of the co-assignment devices have been assigned to hvm guest, we can assign the devices to different pv guests. The patch also adds a detection: if a device has been assigned to guest, we can't try to "xm pci-attach" it to the same guest again. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: save/restore cpu_weight and cpu_capKeir Fraser2009-08-022-0/+6
| | | | | | | | | | | This patch allows vcpus_params cpu_weight and cpu_cap to be saved and restored. Most the code to support this already existed, but the save path needed to be updated to explicitly save these params, and the restore path needed to be updated to resend the params down to the kernel. From: Andrew Jones <drjones@redhat.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xm-test: ramdisk fs type is changed to ext3 if neededKeir Fraser2009-08-021-0/+9
| | | | | | | | This (one line) patch changes the type of the xm-test initrd from ext2 to ext3 when needed. It first checks, if ext2 support is missing and ext3 support is available. If so the fs type is changed to ext3. Signed-off-by: Andreas Florath <xen@flonatel.org>
* tools/tests/regression/: Fix some paths and scripts.Keir Fraser2009-08-024-52/+67
| | | | | | | | | o scripts and Makefile are mostly location independent now (exception XEN_ROOT in Makefile) o use of $() instead of ${} in Makefile From: Andreas Florath <xen@flonatel.org> Signed-off-by: Keir Fraser <Keir.Fraser@eu.citrix.com>
* xm-test: Fix memset 01 and 02 tests: add support for sysfs memory interfaceKeir Fraser2009-07-295-42/+77
| | | | | From: Andreas Florath <xen@flonatel.org> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: pci: fix a typo in do_Dstate_transitionKeir Fraser2009-07-291-1/+1
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: pass-through Use pci_dict_to_bdf_str() in hvm_pci_device_create()Keir Fraser2009-07-291-6/+2
| | | | | | | | | * Use pci_dict_to_bdf_str() in hvm_pci_device_create() * Use pci_name instead of pci_str in error message, pci_str does not * exist Signed-off-by: Simon Horman <horms@verge.net.au> Acked-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: make a crash dump directory per DomUKeir Fraser2009-07-281-2/+18
| | | | | | | | | | | | Currently, xend dumps a core file of a DomU in the directory "/var/xen/dump/", when the DomU has crashed. The patch modifies this directory to "/var/xen/dump/<domain name>/". It enables you to select HDD partition per DomU to dump core by using mount command. Signed-off-by: Rikiya Ayukawa <ayukawa.rikiya@jp.fujitsu.com>
* xend: pass-through: fix "xm pci-list-assignable-devices' for pv_guestKeir Fraser2009-07-284-41/+50
| | | | | | | | | | | | | | xc.test_assign_device(dev) can only tell us if dev is assigned to hvm guest; if a device is assigned to pv guest, xc.test_assign_device() still tells us the device is not assigned yet, as a result, the device still appears in the output of "xm pci-list-assignable-devices", and xend would not prevent us from assigning the device to a new pv or hvm guest. To judge if a device has been assigned to guest, we have to scan xenstore. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: pass-through: fix pci passthrough for pv guestKeir Fraser2009-07-281-0/+11
| | | | | | C/S 19754: a5f584c1e2f6 breaks pci passthrough for pv guest. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* tools/tests: Add syntax check for different versions of pythonKeir Fraser2009-07-285-0/+177
| | | | | From: Andreas Florath <xen@flonatel.org> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: fix migration hangs by closing fds on execKeir Fraser2009-07-287-16/+41
| | | | | Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com> Reviewed-by: Xiaowei Hu <xiaowei.hu@oracle.com>
* xend: pass-through: device state in xenstore may be nullKeir Fraser2009-07-281-1/+5
| | | | Signed-off-by: Tom Rotenberg <tom.rotenberg@gmail.com>
* xend: pass-through: Use parse_pci_name() in find_parent()Keir Fraser2009-07-281-10/+1
| | | | Signed-off-by: Simon Horman <horms@verge.net.au>
* Revert 19961: breaks xend start on some systems.Keir Fraser2009-07-244-300/+5
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: Fix use of set() for Python 2.3.Keir Fraser2009-07-241-0/+6
| | | | | From: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix get_memsize() to cast high_mem_pgend to 64 bits.Keir Fraser2009-07-241-1/+2
| | | | Signed-off-by: Joe Jin <joe.jin@oracle.com>
* python: make tools/python/xen/util/fileuri.py work on python 2.3Keir Fraser2009-07-231-6/+6
| | | | | | | @staticmethod syntax sugar was introduced at python2.4. expand the syntax sugar for python 2.3 Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* hoplugpath.sh: fix Makefile dependency.Keir Fraser2009-07-231-1/+1
| | | | | | | | | | | In tools/hotplug/common/Makefile, install-scripts depends on genpath. So add its dependency. Otherwise parallel build sometimes fails as follows. genpath and install-scripts command are being run simultaneously. So When install-scripts tries to install it, it can be under creation. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* xend: Don't call decode() if PV_{kernel,ramdisk} are ''Keir Fraser2009-07-231-1/+1
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* xend: Set up CPUID leaves on restore for both PV and HVM guests.Keir Fraser2009-07-231-1/+1
| | | | | From: Andrew Thomas <andrew.thomas@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: xenbackendd for NetBSDKeir Fraser2009-07-228-4/+376
| | | | | | | | | | | | | | | | Attached patch introduces xenbackendd. It is used on NetBSD to launch the hotplug scripts. Later xenbackendd can be improved to also launch qemu-dm as child process and will notice when qemu-dm crashes. The changes the patch makes: - rename hotplug scripts as xenbackendd expects them (current names were taken from pkgsrc) - install hotplug scripts as executable scripts - introduce xenbackendd - build/install/launch on NetBSD only Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xend: pass-through: use identity-mapping of PCI functionsKeir Fraser2009-07-222-13/+10
| | | | | | | | | | | This reverses changeset "xend: pass-through: Implement least-mapping of virtual" (19854:22067ba1de0d) and reverts the code to identity mapping physical PCI functions to virtual ones when multi-function virtual devices are in use. It is my opinion that this is both safer and simpler than least-mapping, and that in the absence of further analysis identity-mapping the best choice for now. Signed-off-by: Simon Horman <horms@verge.net.au>
* tools: implement balloon stat and cpuinfo for NetBSDKeir Fraser2009-07-221-2/+40
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xend: pass-through: fix regression in the ordering of the output of xm pci listKeir Fraser2009-07-211-1/+1
| | | | | | | | | changeset "python: Remove tab indents" (19937:e845326ae203) introduces a minor regression in the multi-function PCI pass-through code by causing bogus return values from the sort function which is used to order the output of "xm pci list". Signed-off-by: Simon Horman <horms@verge.net.au>
* Revert part of c/s 19349: fixes qcow for HVM guestsKeir Fraser2009-07-213-0/+95
|
* 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>