aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update Xen version to 4.0.0-rc64.0.0-rc6Keir Fraser2010-03-092-2/+2
|
* Intel VT-D: Don't turn x2APIC if there is a missing DRHD entry for the IOAPIC.Keir Fraser2010-03-091-0/+6
| | | | | | | | | | | Follow the Linux kernel lead in which the x2APIC is only turned on only if there is an DRHD entry for all IOAPICs in the system. If we don't do this we might enable x2APIC and see various devices not covered by the IOAPIC mentioned in DRHD, not receive any interrupts. From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tmem: typo causes incorrect return on out-of-memoryKeir Fraser2010-03-091-1/+1
| | | | | | | | This classic typo in tmem would result in a false positive report on a tmem "put" operation if a (unfragmented) page of memory is completely unavailable. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* stdvga: avoid bogus warning messageKeir Fraser2010-03-091-2/+3
| | | | | | | | Prevents stdvga to print the 'unsupported mmio request type' warning when the actual request type is 'IOREQ_TYPE_COPY'. This avoids confusion. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Fix grant table debug key.Keir Fraser2010-03-091-10/+15
| | | | | | Must skip domains with gt_version==0. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Disable VCPUOP_register_vcpu_time_memory_area.Keir Fraser2010-03-091-0/+6
| | | | | | Its implementation is buggy and causes memory corruption. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Disable debug build by default.Keir Fraser2010-03-091-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Add cpufreq sanity checkKeir Fraser2010-03-092-0/+16
| | | | | | | | | | | This fixes bug 1585 http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D1585 root cause: with incorrect BIOS info, cpufreq driver may not start. in this case, if user use xenpm to manipulate cpufreq driver, NULL pointer will cause xen panic. this patch add the sanity check and warning info to fix this issue. Signed-off-by: Yu Ke <ke.yu@intel.com>
* hvm: correct time offset update in RTC write emulationKeir Fraser2010-03-091-2/+2
| | | | | | | | | mktime takes a month in 1..12 form while tm->tm_mon contains 0..11 so we need to add 1. Without this fix setting the month back or forward a month inside the guest would lead to the wrong number of days being added/subtracted. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* x86: Increase the default NR_CPUS to 128.Keir Fraser2010-03-091-1/+1
| | | | | | | | | | We have newer systems which have more than 64 CPUs, and users often complain some cpus can't be waken up when play with Xen. Certainly, MAX_PHYS_CPUS option also can support more CPUs, but it is still inconvenient for them, so change the default value to 128. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
* libxl: Do not delete checked-in flex/bison outputs.Keir Fraser2010-03-081-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: a little bit of cleanupKeir Fraser2010-03-082-11/+3
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Fix compat mode type checking macros for gcc 4.5Keir Fraser2010-03-082-30/+46
| | | | | | | Just like with the __RING_SIZE() macro, the compat mode type checking macros also need changing in order to work with gcc 4.5. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* cpu hotplug: Add the missed rcu init for new added CPUKeir Fraser2010-03-081-0/+2
| | | | Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
* PV-GRUB: Fix gzip support and iso support on x86_64Keir Fraser2010-03-081-0/+67
| | | | Signed-off-by: Samuel Thibault <sthibault@debian.org>
* xenstore: Resolve gcc4.5 type errorKeir Fraser2010-03-061-1/+1
| | | | | | | Without this, gcc 4.5 complains with, error: case value '3' not in enumerated type 'const enum xs_perm_type' Signed-off-by: Charles Arnold <carnold@novell.com>
* blktap: provide a variant of __RING_SIZE() that is an integer constant ↵Keir Fraser2010-03-062-2/+2
| | | | | | | | | expression Without this new variant, gcc 4.5 won't compile where this is being used to specify array sizes. See also c/s 20975. Signed-off-by: Charles Arnold <carnold@novell.com>
* xend: XenAPI does not support pvSCSI multipathKeir Fraser2010-03-051-1/+5
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Fix Makefile targets that generate several files at onceKeir Fraser2010-03-053-5/+11
| | | | | | | | | | | | | | | | | | | | In a few places in the tree the Makefiles have constructs like this: one_file another_file: $(COMMAND_WHICH_GENERATES_BOTH_AT_ONCE) This is wrong, because make will run _two copies_ of the same command at once. This generally causes races and hard-to-reproduce build failures. Notably, `make -j4' at the top level will build stubdom libxc twice simultaneously! In this patch we replace the occurrences of this construct with the correct idiom: one_file: another_file another_file: $(COMMAND_WHICH_GENERATES_BOTH_AT_ONCE) Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* pygrub: Fix grub2 support when config is on a separate /boot partitionKeir Fraser2010-03-051-1/+1
| | | | | Signed-off-by: David Markey <david@dmarkey.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
* xl: Fix undefined behaviour when pci not specified in input fileKeir Fraser2010-03-051-1/+1
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Commit output from flex for benefit of prehistoric peopleKeir Fraser2010-03-055-2/+4226
| | | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* vt-d: ensure x2apic is not enabled accidently if no DRHD at all.Keir Fraser2010-03-051-0/+3
| | | | | | Thanks to Jan Beulich for pointing this out. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* [PV-GRUB DOC] Add details to PV-GRUB documentationKeir Fraser2010-03-051-2/+15
| | | | | | | | | Add a couple of documentation details about PV-GRUB support - the menu.lst content can be passed as a ramdisk. - virtual partitions are not supported. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* x86-64: fix hotplug fault handling for 32-bit domains' M2P rangeKeir Fraser2010-03-031-9/+6
| | | | | | | | - handle only when memory hotplug regions were actually found - fix off-by-one error in fault handler's sanity checking - use first L4 table entry Signed-off-by: Jan Beulich <jbeulich@novell.com>
* xentop: tmem: no stats for non-tmem domainsKeir Fraser2010-03-031-2/+3
| | | | | | | In xentop, don't re-use and print stale data of previous tmem domain for subsequent non-tmem domain. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* Fix domain exit actions that contain hyphenKeir Fraser2010-03-031-4/+4
| | | | | | | | | | | | | | | Domain exit actions that contain a hyphen (e.g. rename-restart) were not being detected properly when xm is configured to use xenapi. Domain config containing on_crash=3D"rename-restart" results in xen53:~ # xm new /tmp/domU.config Using config file "/tmp/domU.config". Unexpected error: <type 'exceptions.TypeError'> This patch fixes the raised exception and at the same time handles the replacement of hyphen with underscore properly. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Replace config file parser for "xl"Keir Fraser2010-03-0311-130/+702
| | | | | | | | | | | | | | | | | | | | | | | | | | | This provides a replacement config file parser for "xl" based on bison and flex. Benefits: * proper error reporting with line numbers * parser can understand nearly all "xm" configuration files directly (doesn't understand Python code but should do everything else) * parser also understands the ;-infested "xl" style files * removes the dependency on libconfig * better checking for certain kinds of mistakes * eliminates the strange "massage file and try again" code This is intended to support all config files currently supported by "xl" and almost all files supported by "xm". (NB that whether a feature works depends on the implementation of that feature in xl/libxl of course.) This patch also introduces a new library "libxlutil" which is mainly for the benefit of "xl". Users of libxl do not need to use libxlutil, but they can do so if they want to parse "xl" files without being "xl". Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* x86: use key handler scratch buffer in dump_irqs()Keir Fraser2010-03-021-3/+3
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86/acpi: Add a missing CR in printkKeir Fraser2010-03-021-1/+1
| | | | Signed-off-by: Wei Gang <gang.wei@intel.com>
* Update Xen version to 4.0.0-rc6-preKeir Fraser2010-03-021-1/+1
|
* Added tag 4.0.0-rc5 for changeset 92f2ee87e501Keir Fraser2010-03-011-0/+1
|
* Update Xen version to 4.0.0-rc54.0.0-rc5Keir Fraser2010-03-012-2/+3
|
* Revert C/S 20966 "Disable memory mapping warnings when stub domain is used."Keir Fraser2010-03-011-4/+2
| | | | | | | It was ealier resolved by C/S 20720 and C/S 20751. This fix was backported to xen-3.4-testing. Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
* Revert 20954:b4041e7bbe1b "paging_domctl: Add missing breaks in switch stmt"Keir Fraser2010-02-261-2/+0
| | | | | | | | | | | This fixed a fairly innocuous bug (OP_ENABLE/OP_OFF both don't work properly) but unmasked a much nastier one (turning off shadow mode on a PV guest crashes the hypervisor). So, for now, we pick the less of two evils. We don't really much rely on OP_ENABLE/OP_OFF anyway, as it happens. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: fix number of array elements calculation inKeir Fraser2010-02-261-1/+2
| | | | | | XEN_DOMCTL_getpageframeinfo3 handler Signed-off-by: Jan Beulich <jbeulich@novell.com>
* ACPI S3: fix S3 resume fail on system w/ msi capable hpetKeir Fraser2010-02-261-14/+20
| | | | | | | | Don't re-allocate memory for irq_channel which will cause a BUG_ON in hpet_msi_write, and make sure hpet_setup_msi_irq() executed during S3 resuming. Signed-off-by: Wei Gang <gang.wei@intel.com>
* x86_32: Fix build after 20983:94535cc63835Keir Fraser2010-02-261-2/+6
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 numa: Fix post-boot ACPI SLIT accesses.Keir Fraser2010-02-251-2/+13
| | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* x86 numa: Fix i386 to not do bogus mfn_to_virt(alloc_boot_pages(...))Keir Fraser2010-02-251-1/+9
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* ACPI: workaround for S3 fail in two facs tables caseKeir Fraser2010-02-251-3/+8
| | | | | | | | | Some legacy BIOS which support ACPI2.0+ may expose two FACS tables via both FADT->FIRMWARE_CTRL and FADT->X_FIRMWARE_CTRL, but only lookup S3 waking_vector in the first one. Signed-off-by: Wei Gang <gang.wei@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* VT-d: Fix ia64 build for 20974:3b475d9ed6b5Keir Fraser2010-02-251-0/+4
| | | | | | | | | This patch fixes the following error on ia64: iommu.c: In function 'init_vtd_hw': iommu.c:1831: error: 'nr_ioapics' undeclared (first use in this function) Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* libxc: Pre-zero argument structures for map/unmap_pirq operations.Keir Fraser2010-02-251-0/+3
| | | | | From: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: allow SRAT to be used on 32-bit systems with memory beyond 4GKeir Fraser2010-02-242-4/+4
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86: Fix build error after c/s 20969:8cb6e7eff2baKeir Fraser2010-02-241-3/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Fix cpuid() inline asm.Keir Fraser2010-02-241-4/+13
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Provide a variant of __RING_SIZE() that is an integer constantKeir Fraser2010-02-242-2/+8
| | | | | | | | | expression Without that, gcc 4.5 won't compile (at least) netfront, where this is being used to specify array sizes. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* vtd: interrupt remapping: be more defensiveKeir Fraser2010-02-242-0/+25
| | | | | | | | | | | | | | 1) A buggy BIOS may not report IOAPIC in DRHD. Currently we still try to enable IR while the IOAPIC RTEs are still in non-remappable format and the host would hang. The patch detects this case and will not try to enable IR. 2) Currently HPET's MSI mode doesn't work if IR is enabled because we have no code to allocate IRTE for it. Luckily this HW configuration is rather rarely at present, we can just work it around by only using HPET's IOAPIC mode for now. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* sched_credit: Reduce is_urgent flag check to a WARN_ON.Keir Fraser2010-02-241-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* cpuidle: Small fix to urgent_count update logic.Keir Fraser2010-02-241-2/+4
| | | | | From: Ke Yu <ke.yu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>