aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix restore crash with certain guest memory sizesKeir Fraser2008-08-141-7/+7
| | | | | | | | This fixes a crash when restoring guests with certain memory sizes (eg 223MB). The ROUNDUP in the call to memcpy, was the main offender, but I didn't care for the inplace resizing of the p2m entries either. Signed-off-by: Bruce Rogers <brogers@novell.com>
* MSI-X: enhancementKeir Fraser2008-08-134-20/+17
| | | | Signed-off-by: Yu Zhao <yu.zhao@intel.com>
* xend: Allow xenconsoled to be passed arguments at startupKeir Fraser2008-08-131-5/+11
| | | | | | | Attached patch allows to pass arguments to xenconsoled via XENCONSOLED_TRACE env. variable analogous to xenstored. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xend: Make sure that 'PV_kernel' config param is not blank whenKeir Fraser2008-08-131-1/+1
| | | | | | | assigning it to 'loader' param. This fixes a failure of 'xm create' via xen-api. Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* xend/xenapi: Initialize a VLAN PIF's record with the MAC and MTU sizeKeir Fraser2008-08-111-2/+18
| | | | | | of the created network interface Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xend/xen-api: Have the VDI record return the security labelKeir Fraser2008-08-111-1/+2
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xend: Better support for legacy HVM config of ia64Keir Fraser2008-08-111-1/+1
| | | | | | | | | | | On ia64, direct Linux boot is not supported, and 'Flash.fd' or 'guest_firmware.bin' has been used as a value of the 'kernel' option. Cset:17016 ignores those strings and overrides them with "/usr/lib/xen/boot/hvmloader". Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com> Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools build: add cross-install to find the right "strip"Keir Fraser2008-08-112-2/+13
| | | | Signed-off-by: Aron Griffis <aron@hp.com>
* ia64: PV driver domains - ugly python hacksKeir Fraser2008-08-081-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | x86 IOMMU support added a lot of assumptions about what PCI buses look like and where to find bridge devices. On ia64, we don't yet have virtualization friendly IOMMUs, so for the moment, we just want to keep "unsafe" PV PCI pass through working as well as it did in Xen 3.2. Looking at the code, it almost seems like x86 has thrown out support for the old style driver domain. Things that don't necessarily work on every PCI compliant architecture: * You can't assume that just because there's a device at 01:01.0 that there's also a bridge at 01:00.0 and blow-up when you don't find it. On HP ia64 boxes, PCI root bridges are not necessarily exposed as a PCI device. This pretty much means we can't call into any of the "FLR" code paths. * BAR alignment: it's hard to have BAR alignment when your page size is 16k. This wasn't a requirement for previous PV driver domains, so I assume it's only for IOMMU support. This is ugly, so I'm open to suggestions. It seems that all of these architecture checks could be replaced by checking some "iommu_present" variable to test whether the extra requirements are necessary. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* prefix mini-os lists with minios_, drop QEMU_ prefix from QEMU_LIST_*Keir Fraser2008-08-0810-70/+70
| | | | | | That permits to reduce the amount of difference with upstream. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* ioemu: fix typo in serial emulationKeir Fraser2008-08-081-1/+1
| | | | | | | There is a small bug on the serial emulation code that prevents kgdb from working correctly over the serial. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xm: fix trivial typo. s/ciredump-restore/coredump-restart/Keir Fraser2008-08-071-1/+1
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* ioemu-stubdom: fix initialization of vm_change_state_headKeir Fraser2008-08-061-0/+2
| | | | | | | That is actually a no-op since it just sets it to NULL again, but makes sense. 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>
* ioemu: Fix I/O BAR mapping problemKeir Fraser2008-08-061-1/+3
| | | | | | | Check BAR type indicator to avoid I/O BAR being mistaken as 64-bit = memory BAR. Signed-off-by: Yu Zhao <yu.zhao@intel.com>
* ioemu: fix a bug in serial_loadKeir Fraser2008-08-061-1/+0
| | | | | | | Currently we are trying to read the same value twice in the serial_load function, this patch fixes that. Signed-off-by: Stefano Stabellini <stefano.stabellini@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-065-1/+48
| | | | | | 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>
* xend: vncconsole config option mustn't be a stringKeir Fraser2008-08-051-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu: Do not pass -m (memory) option to qemu, as ioemu-remote rejectsKeir Fraser2008-08-052-15/+8
| | | | | | | | | memory sizes greater than 2GB when built as a 32-bit binary. Instead, direct HVM Linux loading approximates end of low memory via a different method. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* fs-back: build fix for BSDKeir Fraser2008-08-051-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xend: remove default NIC in qemu when no vif configuredKeir Fraser2008-08-051-0/+4
| | | | | | | | Latest QEMU would add a NIC device by default, unless specify the "-nic none". So end user still get a unusable NIC even no vif in the config file. Signed-off-by: Zhai Edwin <edwin.zhai@intel.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>
* Fix a few typosKeir Fraser2008-08-042-2/+2
| | | | | From: Diego Ongaro <diego.ongaro@eu.citrix.com> Acked-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* xend: Fix handling of pci creation failure in device_create().Keir Fraser2008-08-041-1/+4
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* xm on xenapi: Enable 'xm pci-list' via Xen-APIKeir Fraser2008-08-041-1/+17
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* xend: fix finding pci capabilityKeir Fraser2008-08-041-0/+18
| | | | | | | | Xend doesn't start up on my laptop which has a PCI-CardBus bridge. PCI-CardBus bridge device doesn't have a capability chain. Also sanity checking of a capability chain. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* stubdom: fix read-only disks accessKeir Fraser2008-08-041-0/+4
| | | | | | | There is no need for a flush on read-only disks. It would actually even error out and disturb the guest. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* xm: fix up exception handling when spawning vnc viewer.Keir Fraser2008-08-041-4/+2
| | | | | From: Ian Jackson <Ian.Jackson@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu, passthrough: fix flag for expansion rom base address register.Keir Fraser2008-08-011-0/+7
| | | | | | | | | | | | | | | pt_bar_reg_parse() is called for expansion rom base address register. Currently it returns PT_BAR_FLAG_MEM if bit 0 is 0. It returns PT_BAR_FLAG_IO if bit 0 is 1. But bit 0 in expansion rom base address register is enable bit. If bit 0 is 1 for some reason, it returns PT_BAR_FLAG_IO. Expansion rom is mapped to memory space. It should return PT_BAR_FLAG_MEM. After applying this patch, it returns PT_BAR_FLAG_MEM regardless of bit 0, when it is called for expansion rom base address register. Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* ioemu, passthrough: fix corrupting register value in pt_pci_write_config().Keir Fraser2008-08-011-1/+2
| | | | | | | | | I forgot to shift value read from real device. If the emulated register offset is not aligned with 4 byte, the write emulation will not be handled well because of corrupting register value read from real device. The patch fixes this issue. Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* ioemu: fix libpci error handling.Keir Fraser2008-08-011-6/+4
| | | | | | | | | | | libpci returns ALL F when error occurs. Currently, if libpci returns ALL F, emulation stops. But it is possible that the field of real register which is read by guest software is ALL F. After applying this patch, if libpci returns ALL F, ioemu will log warning message and continue the emulation. Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* ioemu, passthrough: fix writing handlers for base address registers.Keir Fraser2008-08-011-80/+99
| | | | | | | | | | | | | | | | This patch fixes writing handlers for base address registers (include expansion rom base address register) as follows. It can be applied to both ioemu-remote and ioemu. - Current implementation can not work fine when base address registers are accessed via 1 byte write access and 2 byte write access. This patch enables them. - Currently guest software can set address which is not aligned with resource size and page size. The patch does not allow guest software to set unaligned address. Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* ioemu, passthrough: fix log messages and commentsKeir Fraser2008-08-012-47/+61
| | | | | | | | | | | | - fix log messages to make analysis easier when issue occurs. - remove verbose message. - add comments in the source code. - fix wrong comments in the source code. Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* minios: Error case when unbinding unknown port in xc_evtchn_unbind isKeir Fraser2008-08-011-1/+4
| | | | | | missing a return statement. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
* FSIF: extend protocol to multi-grant requests and multi-page ringKeir Fraser2008-08-014-48/+72
| | | | | | | To improve throughput and inline the stat response. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* pass IOEMU_CONFIGURE_CROSS to ioemu-remote/xen-setupKeir Fraser2008-07-311-2/+3
| | | | | | | | | Add --cpu to IOEMU_CONFIGURE_CROSS since otherwise qemu uses the output of `uname -m` even for cross-building. Pass IOEMU_CONFIGURE_CROSS to xen-setup which passes it on to ioemu/configure. Signed-off-by: Aron Griffis <aron@hp.com>
* xm on xenapi: Enable 'xm pci-{att,det}ach' commands to be executed via xen-api.Keir Fraser2008-07-311-2/+51
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* xm on xenapi: Add missing support for creating pci-assigned domainsKeir Fraser2008-07-312-1/+80
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* xend: Fix portability issue of lspci option.Keir Fraser2008-07-311-11/+18
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* hvm builder: Cleaner sp_extents allocationKeir Fraser2008-07-311-1/+1
| | | | | | We do not need more than count elements in the sp_extents array. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* firmware: Fix build dependencies.Keir Fraser2008-07-313-8/+10
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Allow xm to spawn vnc viewerKeir Fraser2008-07-304-50/+183
| | | | | | | | | | | | | | | | | | | | | | | | The new merged qemu no longer has the ability to spawn a vnc viewer process in the bowels of the xend/qemu stack. In this patch we provide support for this use case in a different manner - one more akin to the mechanism used for `xm console' and `xm create -c'. We introduce new xm options: xm create --vncviewer [--vncviewer-autopass] xm vncviewer [--vncviewer-autopass] These spawn a VNC viewer, obtaining the relevant information (including the port number and if you tell it your viewer supports it the password to use) directly from xenstore. Like xm console it waits in the foreground for the vnc port to become available; the timeout case isn't handled as well as it might be - it just causes the whole program (xm) to die with `Alarm clock' but this is difficult to deal with given the current structure of the xs Python lowlevel interface, which doesn't provide a timeout on the call to wait for a xenstore watch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* firmware: Fix CFLAGS -I directives.Keir Fraser2008-07-303-4/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* rombios: Simplify and clarify POST code a little.Keir Fraser2008-07-301-57/+9
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu: fix warnings in pass-through.h and pass-through.cKeir Fraser2008-07-302-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch backports following changes of ioemu-remote to ioemu. It fixs warning in tools/ioemu/hw/pass-through.h and tools/ioemu/hw/pass-through.c. commit 30f00a0284a5ee356de6f6095e52173f2234145b Author: Ian Jackson <ian.jackson@eu.citrix.com> Date: Fri Jul 18 16:02:23 2008 +0100 hw/pass-through.c: pt_unregister_regions returns void It only ever falls off the end, and its return value is not used by its one caller. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> commit 439836900dad41f66234d2a14981aa2a90d4d346 Author: Ian Jackson <ian.jackson@eu.citrix.com> Date: Tue Jul 22 11:55:18 2008 +0100 Add missing cast for printf of maddr commit cf5b00e6b714eb5f900d55471d85956b09cb8fd9 Author: Ian Jackson <ian.jackson@eu.citrix.com> Date: Thu Jul 24 13:57:10 2008 +0100 pass-through.h: Sprinkle some #ifdefs to cope with pciutils-dev versions Some versions of pciutils-dev contain #defines which others are lacking. To avoid spurious compiler warnings we add some #ifdefs. *sigh* Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp> Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* pygrub: Add 64bit library path to pygrub default search path.Keir Fraser2008-07-301-1/+1
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm, xenapi: Fix a problem in xm client for domain shutdownKeir Fraser2008-07-301-2/+3
| | | | | | | | Xm did not shut down domains anymore when run in xen-api mode due to a 'None' parameter being passed to xend when looking up a domain. This fixes the problem. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>