aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* xend: fix LinuxImageHandler debugging outputKeir Fraser2008-08-271-1/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* PyGRUB: fix menu flickerKeir Fraser2008-08-271-15/+17
| | | | | | | | To avoid flickers, PyGRUB has to avoid spurious ncurses refresh as much as possible, in particular before the complete screen is drawn, and eventually call doupdate last. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: drop debugging messageKeir Fraser2008-08-271-1/+0
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* vtd: do FLR before xc.domain_destroy()Keir Fraser2008-08-265-31/+67
| | | | | | | | | | | | | | When we "xm destroy" a guest with assigned devices, in xen/common/domain.c:domain_kill(), we relinquish guest's memory first, then invoke domain_destroy() -> complete_domain_destroy() -> arch_domain_destroy() -> pci_release_devices()/iommu_domain_destroy(). Between relinquish_memory() and domain_destroy(), a device may be issuing DMA request and access guest's relinquished memory. We can do_FLR() to quiesce devices before xc.domain_destroy(). Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: Avoid multiple assignments to same dict key in pci_convert_sxp_to_dictKeir Fraser2008-08-261-3/+3
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvmloader: Debug build incorporates HVM environment tests which mustKeir Fraser2008-08-215-0/+179
| | | | | | | | | pass for the HVM guest to successfully boot. Currently only one test (REP INS across page boundaries) but more will be added in future. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xentrace: Fix typo in xentrace_formats file.Keir Fraser2008-08-211-2/+2
| | | | | Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com> Signed-off-by: Zhou Ting <ting.g.zhou@intel.com>
* ioemu: Fix unmapping issue on hot-removing pass-thru deviceKeir Fraser2008-08-201-1/+1
| | | | Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* vtd: Don't do FLR when we create domain or hotplug device into guest.Keir Fraser2008-08-191-2/+6
| | | | | | | | | | | | | | | | VT-d hot-plug is done in such a way: 1) xend sends 'pci-ins' command to ioemu via xenstore; 2) ioemu creates pass-through device and raises SCI to guest OS; guest OS loads device driver, and device driver initializes the hot-plugged device; 3) xend does FLR. There is a race condition about 2) and 3). If 3) runs slow, we have troubles. Thanks for Yuji Shimada's locating the issues. We can work around the issues by not doing FLR when we create domain or hotplug device into guest, namely, we only do FLR when we destroy domain or hotplug device from guest. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* xend: fixes a typo in the PIF class of the Xen-API code.Keir Fraser2008-08-191-1/+1
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* 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>