aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* vtd: There is only one INCLUDE_ALL DMAR unit in system, but noKeir Fraser2008-07-251-9/+9
| | | | | | restriction on whether it's the last unit. Signed-off-by: Weidong Han <weidong.han@intel.com>
* vt-d: Map RMRR in intel_iommu_add_device() if the device has RMRR;Keir Fraser2008-07-251-2/+31
| | | | | | | move domain_context_mapping() to be in front of list_move() in reassign_device_ownership(). Signed-off-by: Weidong Han <weidong.han@intel.com>
* stubdom: fix do_xen_hypercall error reportKeir Fraser2008-07-251-2/+2
| | | | | | call.result is an unsigned long Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: make sure to use old tree for nowKeir Fraser2008-07-241-2/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: grant table map (gntdev) bug fixesKeir Fraser2008-07-242-9/+23
| | | | | | | | | | | * Uninitialized dev_bus_addr argument to GNTTABOP_unmap_grant_ref results in an angry hypervisor. * Set errno in libxc and return -1 on error. * op.status is a int16_t, so it should be printed with PRId16. * Don't print domids[0] or refs[0] if the ptr is NULL. It's more polite to crash later, after the message has been printed. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
* minios: Fix build on some gcc versions.Keir Fraser2008-07-241-0/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: use $(PREFIX) rather than hard-coding /usrKeir Fraser2008-07-243-4/+4
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* tools: remove type parameter from xc_physdev_map_pirq{,_msi}()Keir Fraser2008-07-245-14/+6
| | | | | | ... as it's implied by the function name. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86: rename MSI optionKeir Fraser2008-07-244-11/+10
| | | | | | Also rename the variable and move its declaration to a header. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86/32on64: add missing physdev compat mode definitionsKeir Fraser2008-07-241-0/+9
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86: XENPF_set_processor_pminfo handler adjustmentsKeir Fraser2008-07-241-3/+24
| | | | | | | | Only handle information passed up from dom0 when actually controlling the respective functionality. Only count up CPUs once for each CPU. Allow dom0 to provide information incrementally. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* minios: grant table map (gntdev) for miniosKeir Fraser2008-07-246-0/+363
| | | | | | | | I've implemented a grant map for mini-os to support the xc_gnttab_*() functions, the equivalent of gntdev in linux. This is useful for my work in putting xenstored in a stub domain. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
* ioemu: fix spurious track_dirty_vram warningKeir Fraser2008-07-241-2/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* mini-os: select call incorrectly reports xce_handle as readyKeir Fraser2008-07-241-8/+14
| | | | | | | | | The current implementation in minios of xc_evtchn_pending doesn't set read=0 when there is exactly one port pending. This resulted in select() incorrectly reporting the file descriptor as ready. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* pv-grub: re-implement xc_map_foreign_rangesKeir Fraser2008-07-242-16/+17
| | | | | | | Also get rid of va and npages members of privcmd_mmap_entry since we do not need them any more. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* rombios: S3 resume data must be in EBDA.Keir Fraser2008-07-241-26/+22
| | | | | | Rombios itself is read-only. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* blktap: Clean *.opic on 'make clean'.Keir Fraser2008-07-241-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Fix after xc_map_foreign_ranges() patch.Keir Fraser2008-07-242-12/+14
| | | | | Must munmap() region after loading elf image. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Clean up xc_map_foreign_ranges() interface to hide theKeir Fraser2008-07-238-83/+136
| | | | | | | underlying mmap() invocation. From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Fix intra-vga-mem mmio in stdvga.cKeir Fraser2008-07-231-4/+30
| | | | | | | | | | | | | | | | | The current stdvga code never checks if the copy_from/to_guest calls fail, and thus silenty fails if both sides of an IOREQ_COPY points into mmio space. This patch fixes this and makes the code correctly handle intra-vga-mem copies, as well as log & turn off caching if some more "exotic" type of mmio (say, copy from vga mem to some other device's iomem), so that such mmio reqs will fall through to regular ioemu where they can hopefully be handled correctly. In practice, this patch fixes a number of graphical glitches for guests running in standard vga mode, including a corrupted OS/2 boot graphic. Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
* vtd: no need to flush iotlb or write buffer in iommu_page_mapping().Keir Fraser2008-07-231-18/+1
| | | | Signed-off-by: Weidong Han <weidong.han@intel.com>
* vtd: During parsing DMAR table, if find RMRR is incorrect, return error.Keir Fraser2008-07-231-0/+6
| | | | Signed-off-by: Weidong Han <weidong.han@intel.com>
* ioemu: Fix hvmloader erroneous debugging printsKeir Fraser2008-07-221-3/+3
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* ioemu: fix vram tracking when !s->lfb_addrKeir Fraser2008-07-221-41/+42
| | | | | | | When we don't have an LFB (standard VGA), we can not and do not need vram tracking at all since we always get explicit dirtying. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* x86/64: Account for allocation bitmap by making Xen heap appropriately larger.Keir Fraser2008-07-221-8/+17
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Fix the dom0 booting hang when VT-d is enabled.Keir Fraser2008-07-222-14/+37
| | | | | | | | | | | | | | | | | Dom0 C/S 593 hooks the pci bus probe and remove function. When probing a function at booting time, it will first add the device into Dom0's list through a hypercall, then execute the driver's probe function. If the probe function fails, another hypercall is called to remove the device from Dom0's list. But for some RMRR devices, for example, USB devices, they may still be in use for some operation by BIOS at booting time. So when removing those kind of devices, we should still keep the RMRR information. Also add a small fix for "for_each_rmrr_device". Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Weidong Han <weidong.han@intel.com> Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
* xend balloon: portability cleanupKeir Fraser2008-07-222-13/+19
| | | | | | | Move the linux specific labels to osdep where they belong. Modification on Solaris code ok'd by SUN (Ryan Scott). Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Fix a typo in the macro PCI_BDF2()Keir Fraser2008-07-221-3/+3
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* fs-back: fix compilation error.Keir Fraser2008-07-222-3/+3
| | | | | | | XC_PAGE_SIZE and XC_PAGE_MASK should be used instead of PAGE_SIZE and PAGE_MASK. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* x86 hvm: stubdom and hvmloader always live under /usr/lib, never /usr/lib64Keir Fraser2008-07-223-18/+4
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* doc: Fix multi-core amd exampleKeir Fraser2008-07-212-10/+14
| | | | Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* tools: cpuid inputs must be 32 character long if hexadecimal value isKeir Fraser2008-07-211-0/+4
| | | | | | not used. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* libxc: add xc_gnttab_map_domain_grant_refs.Keir Fraser2008-07-212-2/+38
| | | | | | | xc_gnttab_map_domain_grant_refs permits to simply map several pages from the same domain. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* x86: Reintroduce clocksource=tsc.Keir Fraser2008-07-211-8/+70
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Revert accidental commit from 18096:fa66b33f975a8fKeir Fraser2008-07-211-52/+2
|
* Fix debug key t to avoid irq jitter.Keir Fraser2008-07-211-0/+2
| | | | | From: Dan Magenheimer <dan.magenheimer@oracle.com> Siigned-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: Fix keymap handlingKeir Fraser2008-07-212-4/+7
| | | | | | | Patch allows keymap to be specified inside vfb description and allows VM configured keymap setting to override XenD default Signed-off-by: Pat Campbell <plc@novell.com>
* x86: More accurate PIT frequency estimation (1193182Hz)Keir Fraser2008-07-213-3/+3
| | | | | | | | | In practice this has no impact since variance between crystals will be substantially greater than 1-2ppm. But we may as well be as accurate as possible. From: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* [XSM][FLASK] Remove unused code from XSM and FlaskKeir Fraser2008-07-213-25/+0
| | | | | | | The complete_init hook has been unused since the introduction of the create secure interface for domain_create. Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
* [XSM][FLASK] Argument handling bugs in XSM:FLASKKeir Fraser2008-07-217-317/+229
| | | | | | | | | | | | | | | | | | | Addresses a number of argument handling bugs in the flask_op hypercall in the XSM:Flask module. Thanks to Rafal Wojtczuk at McAfee for reporting the issues and Tim Deegan at Citrix for providing an initial patch. This patch addresses the following issues: - bounds checking and validation on input arguments to flask_op - updated ABI/API, size and cmd are now uint32_t - updated userspace tools and libraries to account for ABI/API changes - implemented all copies using from/to guest, better portability - implemented upper bounds checking on op->cmd, op->size - implemented sanity checking on op->size and op->buf - implemented bit vector for checking from/to usage on op->cmd Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
* Update .hgignoreKeir Fraser2008-07-211-0/+1
|