aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [BUILD] Support cloning Linux tree from a git repository.Keir Fraser2008-07-032-0/+74
| | | | | | Integrate the linux-2.6-tip tree as linux-2.6-tip-latest Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* Support building of out-of-tree merged qemu from gitKeir Fraser2008-07-034-0/+42
| | | | | | | | | | | This provides support for building the new merged qemu from qemu-xen.git, or from a local checkout. The default is still to use the in-tree version, because the patchman infrastructure for testing, and propagation from staging to xen-unstable, needs a small amount of work to cope with git. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* XenAPI: Add Direct PCI Device (DPCI) Assignment SupportKeir Fraser2008-07-037-83/+434
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* XenAPI: Add Physical PCI Device (PPCI) SupportKeir Fraser2008-07-034-6/+334
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* iommu: Fix hvm_dpci_eoi for smp guest in ioapic interrupt modeKeir Fraser2008-07-021-2/+4
| | | | | | | | | | My testing shows, for some smp guests, ent->fields.mask will not be unmasked when hvm_dpci_eoi() is invoked at the first time. In that case, we should rely on timeout call back to do pirq_guest_eoi() and should not stop the per-irq timer too early. From: Wei Wang <wei.wang2@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* minios: PIRQ and MSI/MSI-X supportKeir Fraser2008-07-024-2/+121
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* x86 hvm: Fix RTC handling.Keir Fraser2008-07-028-35/+59
| | | | | | 1. Clean up initialisation/destruction. 2. Better handle per-domain time-offset changes. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Do not allow HVM save/restore of a dying domain.Keir Fraser2008-07-022-0/+7
| | | | | | | | | | | | It's not a sensible thing to do, and it is easier than auditing all state save/restore functions for safety (most importantly, racing against domain_relinquish_resources). Also place a spin_barrier on domain_lock after asserting d->is_dying, allowing critical regions under the domain_lock to safely check is_dying and avoid races with domain_relinquish_resources(). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* stubdom: PCI passthrough support via PV-PCIKeir Fraser2008-07-0211-7/+638
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* pciif: do not depend on linux' msix_entriesKeir Fraser2008-07-021-1/+5
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* x86: Remove inline declaration to fix build.Keir Fraser2008-07-022-2/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu: Add check for mapping MSI pirqs.Keir Fraser2008-07-021-0/+7
| | | | | From: Haitao Shan <haitao.shan@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Fix MSI cleanup.Keir Fraser2008-07-022-11/+32
| | | | | | | Fixes bugzilla bug #1279. From: Haitao Shan <haitao.shan@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: Replace stray tab-indent with space-indentKeir Fraser2008-07-023-7/+7
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* merge with xen-unstable.hgIsaku Yamahata2008-07-0292-679/+3854
|\
| * minios: proper frees are now handled, so drop the FIXME commentKeir Fraser2008-07-012-3/+0
| | | | | | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * x86_emulate: (Almost) complete FPU emulation.Keir Fraser2008-07-011-36/+458
| | | | | | | | | | | | | | | | | | | | | | | | | | Provide emulation for all FPU instructions except fsave/frstore & fnstenv/fldenv. While the main purpose of the patch is to avoid current and future "gotchas" on FPU intructions used by various OS boot-loaders, it is complete enough to run DOS realmode FPU applications and benchmarks, but don't expect to set any speed records. Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * VT-d: Fix queue invalidationKeir Fraser2008-07-011-8/+4
| | | | | | | | | | | | Correct invalidate_sync(), and clean up qinval_setup(). Signed-off-by: Weidong Han <weidong.han@intel.com>
| * VT-d: Do CLFLUSH after updating IRTE entriesKeir Fraser2008-07-011-0/+2
| | | | | | | | | | | | | | Like root, context and DMA remap page table, interrupt remap table also needs CLFLUSH after any update. Signed-off-by: Weidong Han <weidong.han@intel.com>
| * xenballoond (memory overcommit) scriptsKeir Fraser2008-07-015-0/+512
| | | | | | | | | | | | See the README and conf files for more info. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
| * ioemu: limit xen-console bufferingKeir Fraser2008-07-011-2/+6
| | | | | | | | | | | | Set dom->buffer.max_capacity to xend configured limit. Signed-off-by: Pat Campbell <plc@novell.com>
| * xend: open qemu-dm logfile in append mode if log rotation is disabled by config.Keir Fraser2008-07-011-1/+3
| | | | | | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
| * xend: improve the rotation of qemu-dm logfiles.Keir Fraser2008-07-013-4/+22
| | | | | | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
| * x86_emulate: read/write/insn_fetch emulation hooks now all take aKeir Fraser2008-06-306-181/+224
| | | | | | | | | | | | | | pointer to emulator data buffer, and an arbitrary byte count (up to the size of a page of memory). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * blktap: Fall back to libcrypto if libgcrypt is not installed.Keir Fraser2008-06-303-2/+62
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * tools/python: fix TypeError for 17903:0728459b3c8dKeir Fraser2008-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | If `hda' is used in domU config file and domain-0 has /dev/hda, creating a domain failed by TypeError: File "//usr/lib/python/xen/xend/server/blkif.py", line 84, in getDeviceDetails (device_path, devid) = blkif.blkdev_name_to_number(dev) TypeError: unpack non-sequence Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
| * Fix up python breakage for blkdev_name_to_numberKeir Fraser2008-06-303-3/+3
| | | | | | | | Signed-off-by: Chris Lalancette <clalance@redhat.com>
| * blktap: link against libgcrypt rather than libcryptoKeir Fraser2008-06-302-14/+5
| | | | | | | | | | | | | | | | | | | | tapdisk, part of blktap, links against libcrypto. tapdisk includes GPLv2 (tapaio.c) and other licensed code (block-qcow.c). The license of OpenSSL is considered incompatible with the GPL by many people. This patch changes them to link against libgcrypt, which is LGPL. Signed-off-by: Bastian Blank <waldi@debian.org>
| * x86: Px statistic update for cpu idle time.Keir Fraser2008-06-304-1/+30
| | | | | | | | | | | | Update px statistic, subtract cx idle time from px residency time. Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
| * stubdom: add live migration support by having ioemu just notify theKeir Fraser2008-06-307-7/+171
| | | | | | | | | | | | | | | | | | | | hypervisor about memory changes. The impact on disk performance is typically making it from 71.5MBps down to 70.5Mbps during the live migration. The impact on network performance is actually even hard to measure. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * stubdom: fix libc-verbose non-lwip compilationKeir Fraser2008-06-301-1/+1
| | | | | | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * x86: Fix 32-bit build after VT-d cleanups.Keir Fraser2008-06-281-1/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * x86: Fix 32-bit build.Keir Fraser2008-06-271-1/+2
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * x86: Emulation of LMSW must only affect CR0 bits 0-3.Keir Fraser2008-06-272-5/+6
| | | | | | | | | | | | | | Emulation of SMSW is only restricted to 16-bit operation on memory operands. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * hvm: Fix lmsw handlingKeir Fraser2008-06-272-2/+3
| | | | | | | | | | | | | | The lmsw instruction can be used to set CR0_PE, but can never clear it, once set. Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
| * x86: Add cpufreq logic to S3 suspend/resumeKeir Fraser2008-06-276-40/+190
| | | | | | | | | | | | | | | | | | When suspend to S3, stop the cpufreq dbs governor. When resume from S3, firstly sync cpu state and freq at the 1st dbs timer; from 2nd dbs timer on, cpufreq dbs governor control cpu px transfer according to its workload algorithm. Px statistic is also handled. Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
| * Update changelog for xvd blkdev naming extensions.Keir Fraser2008-06-271-0/+9
| | | | | | | | Signed-off-by: Chris Lalancette <clalance@redhat.com>
| * tools/python: blkdev_name_to_number fixesKeir Fraser2008-06-273-21/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | Rework blkdev_name_to_number to allow the tools to attach xvd disks beyond xvdp. 1. Adds the handling for the /dev/xvd[q-z] and /dev/xvd[a-i][a-z] extended devices 2. Changes blkdev_name_to_number() to return a tuple of (xenbus, devnum), and then deals with the resulting fallout. Signed-off-by: Chris Lalancette <clalance@redhat.com>
| * blktap: Extend userland busid to 32 bitsKeir Fraser2008-06-272-2/+2
| | | | | | | | Signed-off-by: Chris Lalancette <clalance@redhat.com>
| * hvm rombios: Move function calls out of 'post' function sectionKeir Fraser2008-06-271-12/+23
| | | | | | | | | | | | | | | | | | | | Through recent additions to the rombios the code section of the post function has filled up considerably. When I enable the BX_TCGBIOS compile time option the BIOS crashes since the post section code (starts at $e05b) spills over into the nmi entry point (starts at $e2c3). as86 doesn't cause an error when building. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * vt-d: Clean up variable types and remove useless variablesKeir Fraser2008-06-272-18/+14
| | | | | | | | Signed-off-by: Weidong Han <weidong.han@intel.com>
| * shadow: Re-initialise page_info's lock field when freeing shadow pages.Keir Fraser2008-06-271-0/+8
| | | | | | | | | | | | | | Fixes boot failure of xenU after destroying a HVM guest. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * ioemu: Clean up after cset 17646:e3b13e1ecf6cKeir Fraser2008-06-271-2/+0
| | | | | | | | | | | | Remove redundant code. Signed-off-by: Markus Armbruster <armbru@redhat.com>
| * hvmloader: Set up any Intel ICH for legacy IDE.Keir Fraser2008-06-271-4/+6
| | | | | | | | Signed-off-by: Li Zhang <li.zhang@intel.com>
| * vt-d: Minor fixing of interrupt remappingKeir Fraser2008-06-271-2/+3
| | | | | | | | | | | | | | | | When ir_ctrl->iremap_index == -1, it means there is no remap entry. So it needn't to convert from remap format to normal ioapic format. Signed-off-by: Weidong Han <weidong.han@intel.com>
| * tapdisk: Fix qcow2 for images > 2 GBKeir Fraser2008-06-271-4/+1
| | | | | | | | Signed-off-by: Kevin Wolf <kwolf@suse.de>
| * x86, shadow: Fix OOS bug on domain teardown.Keir Fraser2008-06-271-0/+6
| | | | | | | | Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
| * PV-GRUB: fix reiserfs 64bit supportKeir Fraser2008-06-201-1/+12
| | | | | | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * Out-of-sync L1 shadows: always unsync pages on guest writes.Keir Fraser2008-06-201-0/+7
| | | | | | | | Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
| * Out-of-sync L1 shadows: OOS snapshot.Keir Fraser2008-06-205-25/+174
| | | | | | | | | | | | | | Make snapshots of guest pages on unsync to allow faster revalidation of OOS pages. Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>