aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update Xen version for 3.3.0-rc2.3.3.0-rc2Keir Fraser2008-07-312-1/+2
|
* firmware: Fix build dependencies.Keir Fraser2008-07-313-8/+10
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Remove vtd_hw_check().Keir Fraser2008-07-312-33/+0
| | | | | | | Since we have separate VT-d page tables, actually we don't need the checking. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* evtchn: Avoid spurious event-channel notifications across unbind/bind.Keir Fraser2008-07-317-28/+41
| | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com> Signed-off-by: Huacai Chen <huacai.chen@intel.com>
* vtd: Fix bug #1306: Dom0 hangs when destroying guest with MSI NIC assignedKeir Fraser2008-07-313-36/+48
| | | | Signed-off-by: Shan Haitao <haitao.shan@intel.com>
* stubdom: fix make clean ; makeKeir Fraser2008-07-311-1/+3
| | | | | | | | make should not have to regenerate the libxc and ioemu directories since that is part of the mk-headers target. Use the subdirectory clean targets instead to clean just the object files. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* vtd: Add a debug key 'V' to dump some iommu info.Keir Fraser2008-07-313-0/+110
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.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>
* grant_table: Remove compat-shim BUG_ON() which can fail ifKeir Fraser2008-07-301-1/+0
| | | | | | | | GMFN==INVALID (~0UL). Found by Diego Ongaro <diego.ongaro@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@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>
* vtd: Move dom0 RMRR check to intel_iommu_remove_device()Keir Fraser2008-07-301-23/+23
| | | | | | | | | | | | If put dom0 RMRR check in domain_context_unmap_one(), the devices with RMRR cannot be assigned to other domain, becuase domain_context_unmap_one() won't unmap context for them, and dom0 always owns them. This patch moves the check to intel_iommu_remove_device() which is only called by dom0 hypercall. This not only guarantees keeping RMRR mappings for dom0 during its booting, but also won't impact device assignment. Signed-off-by: Weidong Han <weidong.han@intel.com>
* 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>
* xm: Enable a bootloader when using XM via Xen-APIKeir Fraser2008-07-301-3/+5
| | | | | | | This enables the usage of a bootloader, i.e., pygrub, when starting a domain using xm in Xen-API mode. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* x86: Fix the build after c/s 18163 (5fbcbee355e2)Keir Fraser2008-07-301-3/+1
| | | | | | Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xenconsoled: replace gettimeofday with clock_gettimeKeir Fraser2008-07-302-7/+7
| | | | | | | | | | | | Currently if someone changes the date on the host, xenconsoled may behave incorrectly due to the use of gettimeofday for the rate control algorithm. For example I was able to hang the console connected to a guest just setting the date forward 20 years. To solve the problem we need to use a time source that doesn't change start point, that is clock_gettime with CLOCK_MONOTONIC. The only bad side effect is that it introduces a dependency to librt, but I think is well worth it. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* rombios: Remove dead code.Keir Fraser2008-07-291-27/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* rombios: Obtain S3 wake vector from >1MB.Keir Fraser2008-07-298-96/+112
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Load ACPI tables outside BIOS area, so they are writable byKeir Fraser2008-07-294-12/+42
| | | | | | | | OSPM (particularly the S3 firmware_waking_vector). TODO: rombios must enter protected mode to fetch the vector on S3 resume. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Change Px control protection corresponding to changeset 18125Keir Fraser2008-07-294-10/+10
| | | | | | | | | xen changeset 18125(ab1d7db3facb) changed some px init logic, which has some effect to Px statistic and S3 suspend/resume logic. This patch change Px control protection corresponding to changeset 18125. Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
* x86, hvm: Fix issue with user-mode writes to read-only memory.Keir Fraser2008-07-291-6/+17
| | | | | | | | | | | | | | This patch fixes an issue where a guest could get stuck if a write to memory marked p2m_ram_ro happened from user mode. It would get misinterpreted as a user-mode page-table write, and the "dummy write" emulation necessary to skip over the instruction never got done. In looking into this, I also discovered that the user-mode page-table check is done in two places, the second (in emulate_map_dest) of which can never be reached and is just a waste of cycles. Tim Deegan requested that rather than completely removing that code, I'd leave it in for debug-builds with an added warning-print. Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
* rombios: Narrow window where BIOS area is writable, and ensure itKeir Fraser2008-07-291-7/+13
| | | | | | | really *is* writable in that region. This is almost enough to get S3 working again (read-only firmware-waking-vector is still a problem). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: reprogram LAPIC timer in pit_broadcast_exitKeir Fraser2008-07-291-1/+4
| | | | | | | Thus to remove possible timer expiring delay caused by deep C state LAPIC timer stopping. Signed-off-by: Wei Gang <gang.wei@intel.com>
* vtd: Fix some dmar bugsKeir Fraser2008-07-291-7/+8
| | | | | | | | | | | In acpi_parse_one_drhd(), remove return directly when only one INCLUDE_ALL check fails, so that avoid memory leak. In addition, remove "dmaru->scope.devices_cnt == 0 && !dmaru->include_all" check, due to PCI-PCI bridges are not counted. This patch fixes bug #1307. Signed-off-by: Weidong Han <weidong.han@intel.com>
* x86: fix a few page table handling issuesKeir Fraser2008-07-291-12/+24
| | | | | | | | | | - adjust_guest_l?e() shouldn't be called on non-guest entries - unadjust_guest_l3e() should be called in the back-out loop of alloc_l3_table() - create_pae_xen_mappings() and pae_flush_pgd() shouldn't be called in the failure case of mod_l3_entry() Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Fix ia64 build.Keir Fraser2008-07-291-0/+6
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Simplify 'dma heap' logic.Keir Fraser2008-07-282-62/+23
| | | | | | | | | | | | | | | 1. Only useful for NUMA systems, so turn it off on non-NUMA systems by default. 2. On NUMA systems, by default relate the DMA heap size to NUMA node 0 memory size (so that not all of node 0's memory ends up being 'DMA heap'). 3. Remove the 'dma emergency pool'. It's less useful now that running out of low memory isn;t as fatal as it used to be (e.g., when we needed to be able to allocate low-memory PAE page directories). Based on patches by Andre Przywara and Xiaowei Yang. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Default dma_bitsize is 30.Keir Fraser2008-07-283-13/+3
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Change cpufreq_controller from meanless FREQCTL_none to FREQCTL_xenKeir Fraser2008-07-282-2/+2
| | | | Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
* Move xen-pm options from dom0 cmdline option to start info.Keir Fraser2008-07-283-9/+5
| | | | | | | Thus to avoid xen-pm being manually enforced by end user in dom0 cmdline but without enabling them in xen. signed-off-by: Wei Gang <gang.wei@intel.com>
* xenapi: Update the xenapi document for pci device assignment support.Keir Fraser2008-07-285-6/+1277
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* fs-back: build fixes for BSD and cleanups.Keir Fraser2008-07-284-39/+40
| | | | Signed-of-by: Christoph Egger <Christoph.Egger@amd.com>
* x86: extend debug key 't' to collect useful clock skew infoKeir Fraser2008-07-281-14/+38
| | | | | | | | | | | | | | | | | By repeating "xm debug-key t; xm dmesg | tail -N" in dom0 (e.g. with the "watch" command), useful skew info about the machine can be collected, which will be very helpful for diagnosing customer problems on misbehaving machines. Patch details: 1) Min and max readings from the current sample are useless so get rid of those but retain the current maxdif (stime skew). 2) Remember max of skew, sum of skews, and a count so average skew can be displayed. 3) Also record info for cycles (tsc on x86, itc on ia64). Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* x86: Roughly synchronise calls to local_time_calibration().Keir Fraser2008-07-281-3/+4
| | | | | | | | | This results in reduced skew; both max and average skew are reduced by between a factor of 2 and 3. Note that timers still fire at slightly different times because the next "round epoch" is still relative to local stime which still has some inter-processor skew. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* xend, pci passthru: Use Dstate transition to do FLR for integratedKeir Fraser2008-07-282-40/+64
| | | | | | | | | | | | | | devices without proper FLR capability. Currently integrated devices without proper FLR capability are not assignable. This is not nice since actually they may be assignable, but due to old BIOS the proper FLR capability is not exposed. We can use the previously-used Dstate transition method to do FLR for them. This works well and looks few issues are reported AFAIK. Maybe we can make a black list for the (rare) integrated devices that don't work with this method. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend, pci passthru: Relax the requirement of co-assignment.Keir Fraser2008-07-282-5/+17
| | | | | | | | | Certain PCI or PCIe devices needs to be co-assigned. Currently we require all the related devices be assigned to the same guest. This can be relaxed to: part of them can be assgined to the same guest, and after that, the left ones can't be assigned. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* xend: Improve the error prompt when xc.test_assign_device() fails.Keir Fraser2008-07-281-8/+14
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* Update Xen version for 3.3.0-rc2-preKeir Fraser2008-07-252-2/+1
|
* Added tag 3.3.0-rc1 for changeset c3494402098e26507fc61a6579832c0149351d6aKeir Fraser2008-07-251-0/+1
|
* Update Xen version for 3.3.0-rc1.3.3.0-rc1Keir Fraser2008-07-252-1/+2
|
* Add some directories created by the stubdom build to .hgignore.Keir Fraser2008-07-251-0/+4
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* x86_emulate: fix unintended writeback on cmp/test instructionsKeir Fraser2008-07-251-0/+2
| | | | | | | | | | | This patch fixes an issue when x86_emulate is called with force_writeback=1 set. It resulted in cmp and test instructions with memory operands to have the mem value written back after instruction emulation finished. This caused false alarms on writes to RO mem, and might have caused other issues if unintended writes occured to device registers in mmio space. Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
* Support using a specific branch or tag of ioemu-remoteKeir Fraser2008-07-251-0/+6
| | | | | | | With this patch you can set QEMU_TAG to check out a specific version. When we set it, QEMU_TAG ought to be in Config.mk, I think. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xend: fix dual destroyKeir Fraser2008-07-251-0/+3
| | | | | | | After changeset 18030 and 18064 were checked in, I found some issues when creating HVM domains with devices assigned. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* stubdom: avoid re-making mk-headers and thus newlib etc.Keir Fraser2008-07-252-1/+3
| | | | | | | Using a stamp file for mk-headers permits to avoid to re-run newlib configuration etc. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* fs-backend: fix FD allocation for file creationKeir Fraser2008-07-251-1/+11
| | | | | | | The creation operation also opens a file, we need to allocate a virtual fd for that too. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* x86: adds put_domain() for breaks in arch_do_domctl().Keir Fraser2008-07-251-2/+11
| | | | Signed-off-by: Weidong Han <weidong.han@intel.com>
* vtd: change code style of pci.c file, and add spin_unlock(&pdev->lock)Keir Fraser2008-07-251-37/+42
| | | | | | when iommu_add_device() fails. Signed-off-by: Weidong Han <weidong.han@intel.com>