aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update Xen version to 4.0.0-rc34.0.0-rc3Keir Fraser2010-02-162-2/+3
|
* hotplug: ignore xenstore-read errorKeir Fraser2010-02-162-3/+3
| | | | | | | | The failure to read "backend/tap/<domid>/*" in the xenstore is a usual case since the domain is gone after xenstore-ls command is executed. The error should be ignored. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* cpuidle: do not enter deep C state if there is urgent VCPUKeir Fraser2010-02-165-24/+77
| | | | | | | | | | | | | when VCPU is polling on event channel, it usually has urgent task running, e.g. spin_lock, in this case, it is better for cpuidle driver not to enter deep C state. This patch fix the issue that SLES 11 SP1 domain0 hangs in the box of large number of CPUs (>= 64 CPUs). Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Tian Kevin <kevin.tian@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* When tmem is enabled, reserve a fraction of memoryKeir Fraser2010-02-151-1/+18
| | | | | | | for allocations of 0<order<9 to avoid fragmentation issues. Signed-off by: Dan Magenheimer <dan.magenheimer@oracle.com>
* If the 'sched' parameter is unrecognized, choose the first schedulerKeir Fraser2010-02-151-0/+3
| | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xend: Remove redundant 'name' from LEGACY_CFG_TYPES and ↵Keir Fraser2010-02-151-2/+0
| | | | | | | | | | LEGACY_XENSTORE_VM_PARAMS Two 'name's are defined in LEGACY_CFG_TYPES of XendConfig.py. LEGACY_XENSTORE_VM_PARAMS also is same. This patch removes redundant 'name's. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* xenpaging: Small code style cleanupsKeir Fraser2010-02-151-3/+6
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix a small bug about HVM_MAX_VCPUS related arrayKeir Fraser2010-02-152-2/+2
| | | | | | | | Currently it doesn't block running, anyway, it better fix the small bug considering if in the future HVM_MAX_VCPUS will not necessarily be 8x value. Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>=
* hvmloader: Fix an ACPI asl bug.Keir Fraser2010-02-151-1/+1
| | | | | | | | Fix an ACPI asl bug by explicitly convert PRS to buffer, otherwise PRS would be parsed as integer if less than 32/64 bits (according to ACPI 1.0 or 2.0). Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
* Vcpu hotplug: Move ACPI processor from \_PR to \_SBKeir Fraser2010-02-151-7/+7
| | | | | | | | | | Move processor from \_PR to \_SB. ACPI processor can be defined under \_PR or \_SB. However, recently os like linux 2.6.30/32 support cpu hotplug better for \_SB processor object. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com> Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86_64: widen bit width usable for struct domain allocationKeir Fraser2010-02-121-3/+7
| | | | | | | | With it being a PDX (instead of a PFN) that gets stored when a 32-bit quantity is needed, we should also account for the bits removed during PFN-to-PDX conversion when doing the allocation. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Remus: increase failover timeout from 500ms to 1sKeir Fraser2010-02-122-8/+8
| | | | | | | | 500ms is aggressive enough to trigger split-brain under fairly ordinary workloads, particularly for HVM. The long-term fix is to integrate with a real HA monitor like linux HA. Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
* keyhandler: Do not serialise keyhandlers; increase scratch array size.Keir Fraser2010-02-122-12/+2
| | | | | | | | | | | | | Although serialising keyhandlers is safer, and in particular protects access to shared heyhandler_scratch[], in debug scenarios it is probably better to 'have a go' when requested - and assume the user knows what they are doing. Meanwhile, increase scratch array size to 1024. That's enough for more than a dozen lines of 80-column text, and should be plenty in any practical situation. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix parallel build of ACPI tables.Keir Fraser2010-02-122-19/+20
| | | | | | | | | | | Make build.c dependency on ssdt_{pm,tpm}.h explicit, else they can be built in the wrong order. Also, improve naming of target DSDT structures, and specify -p option to iasl so that all generated files for a given target have target-unique names, hence build can proceed safely in parallel. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix comment style in ssdt_tpm.aslKeir Fraser2010-02-121-17/+19
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Build a compatibility DSDT with only 15 processor objects.Keir Fraser2010-02-114-20/+45
| | | | | | | | | Deploy this smaller DSDT where possible: this is required to boot Windows 2000, which only supports up to 15 processors and will blue screen if it sees more processor objects than that (even inactive ones). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Remove checked-in ready-compiled SSDT_PM and SSDT_TPM.Keir Fraser2010-02-115-239/+13
| | | | | | These can be built at the same time as the DSDT. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Do not leave compiled DSDT checked in to tree.Keir Fraser2010-02-112-11047/+1
| | | | | | | It's big and small changes generate huge diffs. People building the firmware will have to ensure they have iasl installed. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Dump full vCPU polling mask from 'e' key handlerKeir Fraser2010-02-111-1/+4
| | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* keyhandler: global shared scratch space for temporary stringsKeir Fraser2010-02-113-9/+24
| | | | | | | Put one static definition in one place and we can make it as big as we think reasonable. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* VT-d: get rid of duplicated definitionKeir Fraser2010-02-113-12/+6
| | | | | | | | | free_pgtable_maddr was implemented the same for x86 and IA64, so it's not necessary to define it separately for x86 and IA64. This patch moves free_pgtable_maddr definition to iommu.c to avoid duplicated definition. Signed-off-by: Weidong Han <weidong.han@intel.com>
* blktap2: disable presently broken memshr extensionKeir Fraser2010-02-111-1/+1
| | | | Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
* tools/xenpaging: fix bug of Segmentation faultKeir Fraser2010-02-111-10/+24
| | | | | | | | Segmentation fault occurs in two situations: 1. argc is less than 3 2. xenpaging_init() fault Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
* VT-d: fix coding style in acpi_find_matched_drhd_unit()Keir Fraser2010-02-111-3/+8
| | | | Signed-off-by: Weidong Han <weidong.han@intel.com>
* VT-d: ensure zapping ACPI DMAR signature in acpi_parse_dmarKeir Fraser2010-02-111-1/+2
| | | | | | | | VT-d is owned by Xen hypervisor. Xen zaps ACPI DMAR signature to prevent dom0 to use VT-d. This patch changes the direct return when DMAR width is zero, instead zaps ACPI DMAR signature before return. Signed-off-by: Weidong Han <weidong.han@intel.com>
* tools/xenbaked: fix bug of Segmentation faultKeir Fraser2010-02-101-70/+52
| | | | | | | | Run xenbaked will cause Segmentation fault, because the method to get pointers of trace buffer metadata is wrong. Fix this bug according to xentrace. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
* libxc: fix bug in xc_tbuf_get_size()Keir Fraser2010-02-101-3/+15
| | | | | | | The size in pages of trace buffer should be t_info->tbuf_size rather than t_info pages. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
* Remove hardcoded instances of TIMER_SLOP.Keir Fraser2010-02-102-6/+2
| | | | | | | They aren't needed at all, since slop now only delays a timer firing, rather than allowing it to happen early. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: move trampoline locationKeir Fraser2010-02-103-4/+8
| | | | | | | | | | | | | | | | | | | A partner of ours is reporting boot failures (Xen not even emitting a single message) over iSCSI on new (UEFI based) systems. After pointing at their BIOS initially I finally remembered to take a look at the memory map a native kernel booted this way see - and voila, the BIOS reports memory starting at 0x8d000 as reserved. Xen, however, places about 12k of (trampoline) data at 0x8c000. For now, move the trampolien down by 4kB to 0x88000. Later we may choose the location dynamically based on E820 information, if this proves to be an ongoing problem. One thing this patch enforces in any case is a single point of definition for the hard coded location, so that at least adjusting it won't require more than a single line change in the future. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* tools/remus: fix build in (symlinked) read-only source treeKeir Fraser2010-02-101-4/+5
| | | | | | | | | | | Modifying source files should generally be avoided; if it is being done, care should at least be taken to not attempt writes to read-only files. While at it, also force the whole ugly construct to fail if any of its commands fails. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Fix domain reference leaksKeir Fraser2010-02-105-70/+127
| | | | | | | | | | | | | Besides two unlikely/rarely hit ones in x86 code, the main offender was tmh_client_from_cli_id(), which didn't even have a counterpart (albeit it had a comment correctly saying that it causes d->refcnt to get incremented). Unfortunately(?) this required a bit of code restructuring (as I needed to change the code anyway, I also fixed a couple os missing bounds checks which would sooner or later be reported as security vulnerabilities), so I would hope Dan could give it his blessing before it gets applied. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86: MCE fixesKeir Fraser2010-02-102-17/+13
| | | | | | | | | | - fill_vmsr_data() leaked a domain reference; since the caller already obtained one, there's no need to obtain another one here - intel_UCR_handler() could call put_domain() with a NULL pointer - mcheck_mca_logout() updated a local data structure that wasn't used after the update Signed-off-by: Jan Beulich <jbeulich@novell.com>
* tmem: Disable by default: enable with Xen boot param 'tmem'Keir Fraser2010-02-101-4/+0
| | | | | | This reverts 20758:4e56f809ddbf and 20655:3c5b5c4c1d79 Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: Enlarge the memory balloon size for domain creation since shadowKeir Fraser2010-02-101-3/+2
| | | | | | pre-allocation size has changed from 1M to 4M. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* xenpm: Fix ia64 buildKeir Fraser2010-02-101-0/+2
| | | | | | cpuid_eax() is x86-specific. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* Dump machine check context for fatal machine checkKeir Fraser2010-02-081-4/+5
| | | | | | | | | | | This small patches enable Xen hypervisor to always dump machine check ontext, previously it will not print anything if fatal MCE happens. It also add checking for NULL pointer. It also change the address passing to guest to always use guest mfn. It should benifit non-translated guest. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
* Don't scrub broken pagesKeir Fraser2010-02-081-0/+3
| | | | | | | Don't touch the poison pages when scrub the pages. Consuming poison page will contaminate the CPU context and may cause system crash. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
* Some time-handling fixes.Keir Fraser2010-02-081-12/+28
| | | | | | | | Fixes my domU boot hangs (when using vtsc) due to vtsc_offset less then local cpu's stime_local_stamp, leading to bogus vcpu_time_info.tsc_timestamp. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools/xenconsole: fix Segmentation faultKeir Fraser2010-02-081-1/+7
| | | | | | | Segmentation fault occurs if DOMID isn't specified. Some check be added to output error message in this situation. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
* Handle bogus serial ports that appear normal, but don't generateKeir Fraser2010-02-081-7/+29
| | | | | | | interrupts e.g. the "remote serial console" on Blades. Authored-by: Gary Grebus <Gary.Grebus@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
* xenpm: Allow user to enable/disable dbs governor turbo mode.Keir Fraser2010-02-088-4/+150
| | | | Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
* vmx: Don't enable irq for machine check vmexit handlingKeir Fraser2010-02-081-13/+18
| | | | | | | | | | | | | | We should not enable irq for machine check VMExit In changeset 18658:824892134573, IRQ is enabled during VMExit except external interrupt. The exception should apply for machine check also, because : a) The mce_logout_lock should be held in irq_disabled context. b) The machine check event should be handled as quickly as possible, enable irq will increase the period greatly. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* remus: Only build kernel module if parent kernel has IMQ configured.Keir Fraser2010-02-081-2/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* blktap2: Fix non-Linux buildKeir Fraser2010-02-051-0/+4
| | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Remus: fix ia64 buildKeir Fraser2010-02-051-0/+5
| | | | | | | | | | This patch fixes the following error: /xen-unstable.hg/tools/remus/kmod/sch_queue.c: In function `is_foreign': /xen-unstable.hg/tools/remus/kmod/sch_queue.c:51: error: `phys_to_machine_mapping' undeclared (first use in this function) Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* Update QEMU_TAG to d463cfee458bacfe1ee3cb9c3b4ce46a6be06edfKeir Fraser2010-02-051-3/+3
|
* libxl: Properly parse vbd namesKeir Fraser2010-02-052-27/+74
| | | | | | | | | | | | | Implement proper parsing of vbd names, as documented here: From: Ian Jackson <Ian.Jackson@eu.citrix.com> Subject: Xen vbd numbering Date: Wed, 03 Feb 2010 16:51:47 GMT Message-ID: <19305.43376.600816.817077@mariner.uk.xensource.com> http://lists.xensource.com/archives/html/xen-devel/2010-02/msg00183.html Previously, xvd and numerical specification were broken in libxl. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl: notice if vbd virt device specifier ("path") unrecognisedKeir Fraser2010-02-051-0/+5
| | | | | | | | Previously, specifying a virtual device string the vbd that couldn't be parsed would result in attempting to actually create the device with vbd number -1 ! Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Revert changeset 20898:8c1889297084Keir Fraser2010-02-042-10/+19
|
* libxc: Reorder functions in xc_misc.c to avoid weak symbol problemKeir Fraser2010-02-041-31/+31
| | | | | | | | | | | | Using a function, and then declaring it weak later, has undefined behaviour: cc1: warnings being treated as errors xc_misc.c:388: error: weak declaration of 'xc_map_foreign_bulk' after first use results in unspecified behavior So swap the functions xc_map_foreign_pages and xc_map_foreign_bulk. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>