aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples
Commit message (Collapse)AuthorAgeFilesLines
* stubdom docs: Update to reflect the new way of configuring stubdom domains.Keir Fraser2009-05-113-26/+5
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xmexample: fix cpuid exampleKeir Fraser2009-03-201-2/+2
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Disable xen platform PCI device when xen_platform_pci=0 is specifiedKeir Fraser2009-03-181-0/+4
| | | | | | | | | | - Change guest firmware to use new fixed byte port 0x10. - Add "xen_platform_pci" option into guest config file and APIs. xen_platform_pci=0: Disable xen platform device. xen_platform_pci=1: Enable xen platform device. (default) - Add "disable_pf" entry into xenstore. Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* xend: Accept udev events and update physical resource informationKeir Fraser2009-03-171-0/+1
| | | | | | | | | When a udev event is received, udevevent.py parses the udev data and tells XendNode.py to update the physical resource information. This patch also add a boolean parameter 'xend-udev-event-server', to let users indicate whether we should enable this function or not. Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* [IA64] fix issue of can not find the qemu-dm in ia64Keir Fraser2009-03-091-2/+0
| | | | | | | | | IA64 uses the /usr/lib/ for xen. We do not=20 need to check the arch_libdir in ia64. It will return the wrong value to arch_libdir. And guest can not boot. Signed-off-by: Yang Zhang <yang.zhang@intel.com>
* xend: allow VM configuration with both sdl=1 and vnc=1Keir Fraser2009-03-065-25/+25
| | | | | | | | | | | | | | | | | In the stubdom case you can now specify sdl=1 and vnc=1 (again, both can be selected at the same time) in the vfb configuration. So instead of: vfb = [ 'type=vnc' ] now you have: vfb = [ 'vnc=1,sdl=1' ] the former configuration option is deprecated but still supported for backward compatibility. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* tool: make management of PCI D-states by guest optionalKeir Fraser2009-03-061-0/+9
| | | | | | | | | | | D3hot state in some PCI devices causes the failure of domain creation/destruction. The default is "pci_power_mgmt=3D0" which disables the guest OS from managing D-states because it would be better to avoid the trouble than advantage of low power consumption. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* xmexample: portability fixKeir Fraser2009-03-022-4/+6
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* passthough: MSI-INTx translation documentationKeir Fraser2009-01-081-0/+33
| | | | Signed-off-by: Qing He <qing.he@intel.com>
* tools/hotplug: Separate OS-specific scripts.Keir Fraser2008-11-0432-3705/+1
| | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Battery Management virtual firmware and toolstack changesKeir Fraser2008-10-141-0/+8
| | | | Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
* xendomains script: A few bug fixes.Keir Fraser2008-09-111-2/+4
| | | | | Contributed-by: Artur Linhart <AL.LINUX@bcpraha.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* x86, xend: Fix processing of cpuid config parametersKeir Fraser2008-09-102-2/+2
| | | | | | | | | | There is an python indentation issue keeping the full range of syntax for the cpuid config file parameter from working correctly. This patch fixes that. It also fixes some misspelling and a missing 'x' in two of the example config files (must have 32 bits represented for cpuid registers). Signed-off-by: Bruce Rogers <brogers@novell.com>
* xsm, python tools: remove autogenerated xsm.pyKeir Fraser2008-09-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | - The patch does away with the autogenerated xsm.py file and introduces a config parameter in xend-config.sxp to determine the security module. The parameter is (xsm_module_name {acm, dummy, flask}). The default setting/option is dummy. .hgignore is also updated to stop ignoring xsm.py on commits. - The patch has created an xsconstant for XS_POLICY_FLASK and updated the toolchain to check the instance of XS_POLICY_USE. XS_POLICY_USE evalauates to XS_POLICY_FLASK or XS_POLICY_ACM or XS_POLICY_DUMMY depending on configuration. - Flask relies on the current value of ssidref returned by dominfo to ensure that the label to sid mapping is consistent. ssidref had been pop'ed from the dominfo object. The patch addresses this issue. - Flask python module style cleanups. Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
* pv-grub: fix example fileKeir Fraser2008-08-291-27/+1
| | | | | | | | Apparently 64MB is too short for the domain builder. No kernel option should be passed, as they are provided by menu.lst, and would only confuse grub. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix documentation file namesKeir Fraser2008-08-061-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* xend: Expose persistent domain path in xend conf fileKeir Fraser2008-08-061-0/+4
| | | | | | | | This patch exposes the persistent (aka managed) domain path in xend configuration file. This option is already supported in XendOptions but is not annotated in the configuration file. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* install more documentation to /usr/share/doc/xen and /etc/xenKeir Fraser2008-08-063-1/+43
| | | | | | Also resync xmexample3 with xmexample1 and 2. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Remove vncconsole from example HVM configs. It's deprecated.Keir Fraser2008-08-052-10/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* PV-GRUB: add sample config fileKeir Fraser2008-08-041-0/+212
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: rename the ioemu-dm domain config file to domainname-dm,Keir Fraser2008-08-042-1/+1
| | | | | | | 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>
* x86 hvm: stubdom and hvmloader always live under /usr/lib, never /usr/lib64Keir Fraser2008-07-223-18/+4
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* doc: Fix multi-core amd exampleKeir Fraser2008-07-212-10/+14
| | | | Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* Check phy: block device existenceKeir Fraser2008-07-181-0/+8
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* pvscsi: Install vscsi script.Keir Fraser2008-07-181-0/+1
| | | | | Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
* blktap scripts: deletion of double check and permission of using /dev/sdxxKeir Fraser2008-07-181-1/+0
| | | | Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
* stubdom: add example config fileKeir Fraser2008-07-183-2/+348
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Choice of network interface for establishing a bridge on if NFSROOT is usedKeir Fraser2008-07-141-1/+12
| | | | | | | | | | | | | | | | | | | This patch fixes a problem related to machines that are booted using nfsroot ( '/' provided via nfs). Previously the code was assuming that nfsroot would be provided via eth0. Now this additional code checks over which interface the nfsroot is provided after detecting that nfsroot is actually being used. To determine from where nfsroot is mounted I am reading the kernel command line (/proc/cmdline) and filter for an argument starting with 'nfsroot=' and determine the nfs server's IP address by assuming the format 'nfsroot=<ip adddress>:<path to root>' - if there's a better way of doing this, please let me know. After that I determine the interface over which this IP address would be accessed using 'ip route get <address>'. Then I compare that interface against a previously determined default interface and if they are equal return a value that causes an alternative interface to be chosen. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* pvSCSI: xend changesKeir Fraser2008-07-037-0/+116
| | | | | Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
* vtpm: Add two missing quotes in the vTPM hotplug script.Keir Fraser2008-07-031-2/+2
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xend: improve the rotation of qemu-dm logfiles.Keir Fraser2008-07-011-0/+3
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* doc: Describes a generic 686 via the cpuid configure.Keir Fraser2008-06-181-5/+5
| | | | Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* rools/examples: Fix 'make install'.Keir Fraser2008-05-231-2/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Make ssl relocation server listen on different portKeir Fraser2008-05-231-5/+9
| | | | | | | | | | | | | | | | | | | This patch makes ssl relocation server listen on 8003 if enabled. Whether to start ssl relocation server now controlled by xend-relocation-ssl-server. So ssl and non-ssl relocation server can run simultaneously. You can also only start ssl server or only start non-ssl relocation server. When mix deploy xen 3.2 server (has no ssl support) and 3.3 servers, start ssl and non-ssl relocation server simultaneously can keep backward compatibility. It's also more reasonable to have separate ports for ssl and non-ssl. In this patch, also renames xend-relocation-tls to xend-relocation-ssl. Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* Remove xend-config-xenapi.sxp and xm-config-xenapi.xmlKeir Fraser2008-05-232-239/+0
| | | | | | | | | The contents of these two files are duplicate of xend-config.sxp and xm-config.xml. They only add maintaining burdens to developers. This patch removes them permanently. Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* Add extra CPUID config examples to sample HVM config file.Keir Fraser2008-05-131-3/+40
| | | | | From: Jean Guyader <jean.guyader@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix xmexamples to reflect new meaning of cpus= config option.Keir Fraser2008-05-125-5/+10
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Fixed typos in xmexamples.Keir Fraser2008-05-083-3/+3
| | | | Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@jp.fujitsu.com>
* Fix xend config typosKeir Fraser2008-05-012-6/+6
| | | | Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* Add SSL/TLS support to relocationKeir Fraser2008-05-011-0/+9
| | | | | | | | | | | | * SSL/TLS support is disabled by default, as other server did. * If "xend-relocation-server-ssl-key-file" and "xend-relocation-server-ssl-cert-file" exist, SSL/TLS is enabled automatically. * "xend-relocation-tls" is used by relocation client only. Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* x86, hvm: Guest CPUID configuration.Keir Fraser2008-04-251-0/+25
| | | | | | | | | | | | CPUID's replies are now pre-calculated in libxc and given to the hypervisor via a new domctl. There are two parts to this feature: - We can overwrite cpuid's replies. - We can check that a vm is compatible with a host's processor. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hotplug scripts: Fix sharing check for blktapKeir Fraser2008-04-221-10/+12
| | | | | | | | Run check_blktap_sharing() only when a disk is added to guest with blktap. A check_blktap_sharing() doesn't have to be run when a disk is removed. Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@jp.fujitsu.com> Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
* Split the meaning of "dom0-min-mem = 0" to a new option.Keir Fraser2008-04-072-8/+14
| | | | | | | | I have written a patch to split the current meaning of "dom0-min-mem = 0" to a new option "enable-dom0-ballooning". Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu: SDL rendering using OpenGLKeir Fraser2008-03-181-0/+5
| | | | | | | | | | | | | | | | | | Add opengl support for rendering the guest framebuffer in the SDL window. SDL is needed anyway to open the window and handle the events. Opengl rendering is optional and can be turned off at both compile time and in the vm configuration file. Some of the benefits of using opengl are: - faster rendering, less CPU intensive, especially with good graphic cards; - makes the window resizing possible and hardware accelerated, thus very efficient and smooth; - allows other optimizations like sharing directly a buffer in vram with the guest (not yet implemented). Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* vtpm: script function for identifying vTPM by its UUIDKeir Fraser2008-02-262-6/+32
| | | | | | | | I am adding some functions for external tools to call the vTPM scripts. It also contains a fix for the functions that previously used to be called by domain name, but now are using the vTPM's uuid as parameter. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Add 'coredump-destroy' and 'coredump-restart' actions for crashed domains.Keir Fraser2008-02-074-0/+20
| | | | | | | | Xen-API already specifies these actions for the 'on_crash' domain exit event. This patch makes them available for use in traditional domU config files and through the xm tool as well. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Fix to Xen NAT network scripts for Debian.Keir Fraser2008-02-021-1/+1
| | | | | | | | | | | Xen recently (changeset 16873:86c32269ba60) started looking for a DHCP defaults file in /etc/sysconfig/dhcpd or /etc/defaults/dhcp. Debian (lenny) puts this file in a different place though: /etc/default/dhcp3-server. I added this location to Xen's search path. From: Michael Abd-El-Malek <mabdelmalek@cmu.edu> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Remove outdated comments concerning Xen API in xend configuration file.Keir Fraser2008-01-251-3/+1
| | | | Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Fix losetup -r flag when we specify 'w!' for the disk mode.Keir Fraser2008-01-251-1/+1
| | | | | From: Zhigang Wang <zhigang.x.wang@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.Keir Fraser2008-01-241-3/+3
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>