aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add ZFS libfsimage support patchKeir Fraser2008-05-0133-9/+3626
| | | | | | | | | Add support to pygrub and libfsimage to boot ZFS root filesystems. Boot argument of zfs-bootfs is set to describe ZFS root pool and boot filesystem object number. Boot argument bootpath is set to describe the virtual device root mirror components. Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
* Fix xenstore-client.c compileKeir Fraser2008-05-011-2/+3
| | | | | | | errx() is not necessarily defined as a never-returns function. Fix lookup_mode() to account for this. Signed-off-by: John Levon <john.levon@sun.com>
* Remove unimplemented xm migrate --resource option.Keir Fraser2008-05-013-9/+1
| | | | Signed-off-by: Gary Pennington <gary.pennington@sun.com>
* Accept decimal block device IDsKeir Fraser2008-05-011-3/+5
| | | | | | | | | | | Solaris uses a simple indexing scheme for block devices. Parts of xend translate them as hexadecimal (such as block-attach), and decimal, or unconverted, elsewhere (such as block-detach). Harmonise these interfaces by allowing decimal specifications. Also allow Solaris-style block device names. Signed-off-by: John Levon <john.levon@sun.com>
* x86 hvm cpuid: fix some problem with the hvm's cpuid configuration.Keir Fraser2008-05-013-2/+7
| | | | | | | | | - When we overwrite a cpuid's input, apply the default policy for the other registers. - For the python binding, get unsigned long instead long. - Fix the multiple inputs cpuid's configuration parsing. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* MSI 5/6: add MSI support to passthrough HVM domainKeir Fraser2008-05-018-2/+676
| | | | | | | Currently it only inercept access to MSI config space, no MSI-x support. Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com> Signed-off-by: Shan Haitao <haitao.shan@intel.com>
* MSI 4/6: remove io_mem permission for MSI-X, since MSI-XKeir Fraser2008-05-012-1/+95
| | | | | | | facilities are allocted through and located in PCI BAR. Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com> Signed-off-by: Shan Haitao <haitao.shan@intel.com>
* MSI 2/6: change the pirq to be per-domainKeir Fraser2008-05-017-1/+136
| | | | | Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com> Signed-off-by: Shan Haitao <haitao.shan@intel.com>
* xemnstored: Fix xenstored abort when connection dropped.Keir Fraser2008-05-011-9/+21
| | | | | | | | | | | | | If a connection is dropped with pending input and output data then the connection will be dereferenced by both handle_input and handle_output resulting in a double free when the main loop dereferences the connection. Fix this issue by taking/releasing a reference over the calls to handle_input and handle_output separately and checking the result of talloc_free to see if the connection went away. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* [Xend/ACM] Provide explicit initialization function for bootloader classKeir Fraser2008-05-012-11/+15
| | | | | | | | This patch refactors the initialization code for the bootloader class and puts it into an explicit initialization function that is called from another class. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [Xend/ACM] Embed the policy schema in the python fileKeir Fraser2008-05-011-14/+149
| | | | | | | | | This patch embeds the ACM policy's schema in the python file where the schema is being accessed for verifying the policy XML. This way also programs that cannot access a protected directory where the schema may be located in can use this class. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* VT-d: Separate VT-d page table from P2M tableKeir Fraser2008-05-011-1/+6
| | | | | Signed-off-by: Weidong Han <weidong.han@intel.com> Signed-off-by: Anthony Xu <anthony.xu@intel.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-015-3/+81
| | | | | | | | | | | | * 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-2510-2/+838
| | | | | | | | | | | | 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>
* xm: Add a new option to xm dump-coreKeir Fraser2008-04-251-4/+13
| | | | | | | The option is -R|--reset. A guest domain is reset after saving a core dump of the guest domain when specified the option. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* xm: Fix cmdHelp() for xm resetKeir Fraser2008-04-251-4/+5
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* vmx: Fix address of EPT identity-map pagetable that is passed from theKeir Fraser2008-04-241-1/+1
| | | | | domain builder down to the hypervisor. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu: Save PCI device INTx line states.Keir Fraser2008-04-241-2/+14
| | | | | | | | | | | Otherwise, ioemu can be out of sync with the hypervisor after restoring guest state, if INTx lines were asserted when the state was saved. This prevents ioemu from setting the line to zero in Xen (because it thinks the line is already zero). This can allow th eguest to enter an endless IRQ loop and hang. Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ia64: fix domain builderKeir Fraser2008-04-241-1/+3
| | | | | | | Windows on ia64 can't boot since cset 17397:61a3e041ea12. The memory for video RAM must be added as the x86 does. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* xenbaked: Fix access to trace buffer after xentrace changesKeir Fraser2008-04-241-5/+27
| | | | Signed-off-by: Naoki Nishiguchi <nisiguti@jp.fujitsu.com>
* blktap: Automatically start tapdisk-ioemu on demandKeir Fraser2008-04-238-65/+126
| | | | | | | | | When a domain wants to use a tap:ioemu disk but has no device model, start a tapdisk-ioemu instance as provider. Also, move the creation and removal of communication pipes to xend so that qemu-dm doesn't need the unwanted SIGHUP handler anymore. Signed-off-by: Kevin Wolf <kwolf@suse.de>
* ACM: Put hash of XML policy into binary policy to tie them togetherKeir Fraser2008-04-232-3/+25
| | | | | | | | | This patch extends the ACM binary policy format with an embedded hash of the corresponding XML policy in order to tie them together. This allows xend to determine whether it has the correct XML policy in its repository and react appropriately if it does not have it. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Revert 17499:451ae3b8e5c8Keir Fraser2008-04-238-114/+65
| | | | | | Breaks HVM guest creation (bugzilla #1221). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* blktap: Automatically start tapdisk-ioemu on demandKeir Fraser2008-04-228-65/+114
| | | | | | | | | When a domain wants to use a tap:ioemu disk but has no device model, start a tapdisk-ioemu instance as provider. Also, move the creation and removal of communication pipes to xend so that qemu-dm doesn't need the unwanted SIGHUP handler anymore. Signed-off-by: Kevin Wolf <kwolf@suse.de>
* x86_emulate: Support CMPXCHG16B.Keir Fraser2008-04-221-42/+6
| | | | | | | | Also clean up cmpxchg() callback handling so we can get rid of teh specific cmpxchg8b handler. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* console: Provide option to stall the inter-domain console ring ratherKeir Fraser2008-04-222-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | than discard characters in the console daemon buffers. New option: -o, --overflow-data=discard|keep This option changes the behaviour when dealing with data that overflow the max capacity of the buffer. If overflow-data is set to discard (the default), the current behaviour is used: we discard some data in the middle of the buffer. If overflow-data is set to keep, we stop listening to the ring until we free some space in the buffer. This can cause the ring to fill up and the guest kernel internal buffer to fill up as well. When this happens the guest kernel stops reading characters from the console device so the application generating data hangs. When xenconsoled resumes reading from the ring, the guest kernel will be able to resume reading from the console device as well. At that point the guest application will be allowed to continue. The risk of making this behaviour the default is that existing kernel drivers may assume they can rely on timely ring updates by the console daemon and thus themselves block on the ring being emptied. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.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>
* xm: Add a new command: xm resetKeir Fraser2008-04-223-1/+64
| | | | | | | | | | | | | | If a hang-up of a guest OS occurs, we will restart the guest OS by using the following commands. 1. xm destroy 2. xm create or xm start To reduce the number of xm commands to use, this patch adds a new command. The command is "xm reset". The command executes destruction of a domain, and then creation of the domain. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* ioemu: Fix cross-build of tapdisk-ioemuKeir Fraser2008-04-181-1/+1
| | | | | | | | changeset e1962ac0fb1c breaks cross-builds because it assumes the system strip tool applies to the generated binaries. This assumption isn't made anywhere else in the xen tools build. Signed-off-by: Aron Griffis <aron@hp.com>
* x86_emulate: Implement a more dynamic interface for handling FPUKeir Fraser2008-04-161-6/+0
| | | | | | exceptions, which will allow emulation stubs to be built dynamically in a future patch. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86, hvm: Lots of MTRR/PAT emulation cleanup.Keir Fraser2008-04-166-9/+112
| | | | | | | | | | - Move MTRR MSR initialisation into hvmloader. - Simplify initialisation logic by overlaying UC on default WB rather than vice versa. - Clean up hypervisor HVM MTRR/PAE code's interface with rest of hypervisor. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* stubdom: make use of PVFB resize eventKeir Fraser2008-04-164-45/+111
| | | | | | | | which with the offset support also permits to expose the VGA vram and non-shared vram throught PVFB at the same time, switching between both as appropriate. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* ioemu: drop reschedule of handle_buffered_io on I/O reqsKeir Fraser2008-04-161-1/+1
| | | | | | | | | | | Rescheduling the call to handle_buffered_io costs the system call to qemu_get_clock(), which is very expensive considering the the latency we would like to achieve for I/O reqs, so we should avoid it. That means that handle_buffered_io may be called as often as every 0.1s, but that's not so costly. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: sparse application's BSS by linking it separately first, putKeir Fraser2008-04-161-6/+3
| | | | | | | markers at its beginning and end, and then link with mini-os. That permits to stick a bit more to upstream qemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* [LIBFSIMAGE] Support 256 byte inodes on ext3Keir Fraser2008-04-161-7/+54
| | | | | | | Patch taken from Debian grub package version 0.97-32. See http://bugs.debian.org/463236 & http://bugs.debian.org/463123 Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* hvmloader: Explicitly revert to text section after declaring bss fields.Keir Fraser2008-04-152-0/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Framework for multiprocessor initialisation.Keir Fraser2008-04-154-2/+138
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: Build fixes for *BSD.Keir Fraser2008-04-153-2/+4
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu: COW driver flush method should return an int.Keir Fraser2008-04-151-1/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend/acm: Fixes to labelling of resources.Keir Fraser2008-04-151-3/+9
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* hvmloader: Small cleanups.Keir Fraser2008-04-143-23/+33
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Add HVM_PARAM_DM_DOMAIN to let ioreq events go to a stub domainKeir Fraser2008-04-111-0/+1
| | | | | | | instead of dom0. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: Make xend set time offset for all kinds of domains, so thatKeir Fraser2008-04-112-6/+3
| | | | | | ioemu doesn't need to do it. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* libxenguest: Fix a typo.Keir Fraser2008-04-111-1/+1
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvmloader: Fix build with gcc 4.1 and later.Keir Fraser2008-04-101-3/+3
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Move xg_memalign() into a proper source file, so that itKeir Fraser2008-04-092-17/+19
| | | | | | | | definitely does not leak out of tools/libxc. Return to the ioemu/osdep.c way of checking for posix_memalign() as this works on Solaris. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Leave portability of xg_memalign() as in original patch, ratherKeir Fraser2008-04-091-1/+1
| | | | | | than following ioemu/osdep.c. This unbreaks build of readnotes. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* save/restore: Use page-aligned allocations for hypercall args that areKeir Fraser2008-04-093-15/+43
| | | | | | | mlock()ed across other hypercall invocations, to avoid aliasing with other hypercall arguments, causing spurious unlocking. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* x86 libxc: Fix mlock sizes in libxc around vcpu context hypercallsKeir Fraser2008-04-091-6/+25
| | | | | | backing off to the old behaviour if we fail. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>