]> xenbits.xensource.com Git - xen.git/log
xen.git
15 years agoxenpm: remove wrong and pointless "current" indicator
Keir Fraser [Fri, 7 May 2010 08:50:17 +0000 (09:50 +0100)]
xenpm: remove wrong and pointless "current" indicator

Using the CPU number to compare with an index into an array containing
only a subset of CPUs isn't valid. And indicator isn't necessary here
at all since the CPU number being dealt with gets printed right before
this line.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agox86/cpufreq: fix turbo mode detection
Keir Fraser [Fri, 7 May 2010 08:46:50 +0000 (09:46 +0100)]
x86/cpufreq: fix turbo mode detection

{acpi,powernow}_cpufreq_cpu_init() generally don't run on the CPU the
policy they deal with is related to, hence using cpuid() directly
works only as long as all CPUs in the system are identical (which
admittedly is commonly the case).

Further add a per-policy flag indicating the availability of
APERF/MPERF MSRs, so that globally setting the .getavg accessor won't
be a problem on heterogeneous configurations.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agolibxl: Support cpupools
Keir Fraser [Fri, 7 May 2010 08:36:58 +0000 (09:36 +0100)]
libxl: Support cpupools

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
15 years agocredit2: Fix credit2 + cpupools
Keir Fraser [Fri, 7 May 2010 08:35:58 +0000 (09:35 +0100)]
credit2: Fix credit2 + cpupools

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
15 years agoxl: Add "xl rename" command, a clone of "xm rename".
Keir Fraser [Fri, 7 May 2010 08:31:38 +0000 (09:31 +0100)]
xl: Add "xl rename" command, a clone of "xm rename".

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxl: Add "xl domname" command, a clone of "xm domname".
Keir Fraser [Fri, 7 May 2010 08:31:21 +0000 (09:31 +0100)]
xl: Add "xl domname" command, a clone of "xm domname".

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxl: Add "xl domid" command, a clone of "xm domid".
Keir Fraser [Fri, 7 May 2010 08:30:56 +0000 (09:30 +0100)]
xl: Add "xl domid" command, a clone of "xm domid".

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxend: support blktap2 in xend blkif utils
Keir Fraser [Fri, 7 May 2010 08:27:40 +0000 (09:27 +0100)]
xend: support blktap2 in xend blkif utils

Support tap2 device type in xend blkif utils parse method.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
15 years agolibxl: support vncpassword in device-model specification
Keir Fraser [Fri, 7 May 2010 08:26:49 +0000 (09:26 +0100)]
libxl: support vncpassword in device-model specification

From: Gihan Munasinghe <GMunasinghe@flexiant.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoxl: Start enumerating vifs from 0.
Keir Fraser [Fri, 7 May 2010 08:15:19 +0000 (09:15 +0100)]
xl: Start enumerating vifs from 0.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agoocaml: Add -Werror to CFLAGS and fix resulting errors.
Keir Fraser [Fri, 7 May 2010 08:13:59 +0000 (09:13 +0100)]
ocaml: Add -Werror to CFLAGS and fix resulting errors.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years ago.hgignore: Update for new ocaml build-generated files.
Keir Fraser [Fri, 7 May 2010 07:55:12 +0000 (08:55 +0100)]
.hgignore: Update for new ocaml build-generated files.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoocam: add missing files that got lost in the v2 shuffle
Keir Fraser [Fri, 7 May 2010 07:46:51 +0000 (08:46 +0100)]
ocam: add missing files that got lost in the v2 shuffle

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: Fix C include paths in Makefile
Keir Fraser [Fri, 7 May 2010 07:46:07 +0000 (08:46 +0100)]
ocaml: Fix C include paths in Makefile

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: Fix Makefile for parallel build.
Keir Fraser [Fri, 7 May 2010 07:43:51 +0000 (08:43 +0100)]
ocaml: Fix Makefile for parallel build.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
15 years agoReduce 'd' debug key's global impact
Keir Fraser [Thu, 6 May 2010 16:00:08 +0000 (17:00 +0100)]
Reduce 'd' debug key's global impact

On large systems, dumping state may cause time management to get
stalled for so long a period that it wouldn't recover. Therefore alter
the state dumping logic to alternatively block each CPU as it prints
rather than one CPU for a very long time (using the alternative key
handling toggle introduced with an earlier patch).

Further, instead of using on_selected_cpus(), which is unsafe when
the dumping happens from a hardware interrupt, introduce and use a
dedicated IPI sending function (which each architecture can implement
to its liking)

Finally, don't print useless data (e.g. the hypervisor context of the
interrupt that is used for triggering the printing, but isn't part of
the context that's actually interesting).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoxl: fix printf format specifier for 64-bit arguments
Keir Fraser [Thu, 6 May 2010 15:01:49 +0000 (16:01 +0100)]
xl: fix printf format specifier for 64-bit arguments

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agolibxl: make use of libxl path functions
Keir Fraser [Thu, 6 May 2010 14:59:35 +0000 (15:59 +0100)]
libxl: make use of libxl path functions

Make use of the new libxl_*_path functions to specify the correct
absolute path of qemu-dm, hvmloader and ioemu-stubdom.gz.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agoxl: If domain creation fails, destroy the domain
Keir Fraser [Thu, 6 May 2010 14:55:31 +0000 (15:55 +0100)]
xl: If domain creation fails, destroy the domain

This patch makes sure that if the domain creation fails for any
reason, no zombie domains are left around.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agoRemove CPUID4 emulation for AMD CPUs
Keir Fraser [Thu, 6 May 2010 14:54:52 +0000 (15:54 +0100)]
Remove CPUID4 emulation for AMD CPUs

The CPUID4 emulation code for AMD CPUs in intel_cacheinfo.c won't be
executed. This emulation code was from upstream kernel, where CPUID4
is used for cache information report in sysfs. But in Xen, this code
path won't be executed on AMD CPUs. init_amd() uses
display_cacheinfo() to find out CPU cache size instead.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>
15 years agoReduce '0' debug key's global impact
Keir Fraser [Thu, 6 May 2010 10:59:55 +0000 (11:59 +0100)]
Reduce '0' debug key's global impact

On large systems, dumping state may cause time management to get
stalled for so long a period that it wouldn't recover. Therefore add
a tasklet-based alternative mechanism to handle Dom0 state dumps.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agox86: add .data.page_aligned section
Keir Fraser [Thu, 6 May 2010 10:52:22 +0000 (11:52 +0100)]
x86: add .data.page_aligned section

... and move page-aligned data there, instead of having random holes
(to fulfill the demanded alignment) in the final image.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agoiommu: add missing __init annotations
Keir Fraser [Thu, 6 May 2010 10:44:42 +0000 (11:44 +0100)]
iommu: add missing __init annotations

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agosvm: support EFER.LMSLE for guests
Keir Fraser [Thu, 6 May 2010 10:43:54 +0000 (11:43 +0100)]
svm: support EFER.LMSLE for guests

Now that the feature is officially documented (see
http://support.amd.com/us/Processor_TechDocs/24593.pdf), I think it
makes sense to also allow HVM guests to make use of it.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agovmce: Clean up implementation and setup/destroy.
Keir Fraser [Thu, 6 May 2010 10:39:09 +0000 (11:39 +0100)]
vmce: Clean up implementation and setup/destroy.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoia64: sysctl build fixes.
Keir Fraser [Thu, 6 May 2010 10:19:28 +0000 (11:19 +0100)]
ia64: sysctl build fixes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agoEPT: fix handling of super page level limit
Keir Fraser [Thu, 6 May 2010 10:16:37 +0000 (11:16 +0100)]
EPT: fix handling of super page level limit

Just like for other global VMX controls, the maximum super page level
used must be globally consistent (and not change post-init).

Additionally, the original patch yet again introduced a message
printed on each CPU, which this patch moves to a place where it gets
issued just once.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agocpupools: Fix cpupool sysctl locking.
Keir Fraser [Thu, 6 May 2010 10:14:17 +0000 (11:14 +0100)]
cpupools: Fix cpupool sysctl locking.

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
15 years agoxm: Add exception handling when launching vncviewer
Keir Fraser [Thu, 6 May 2010 10:13:22 +0000 (11:13 +0100)]
xm: Add exception handling when launching vncviewer

Also replaces the call to 'puts' with 'print' as the former is
undefined in python

Signed-off-by: Goncalo Gomes <Goncalo.Gomes@eu.Citrix.com>
15 years agoxl: fix bash completion
Keir Fraser [Thu, 6 May 2010 10:12:11 +0000 (11:12 +0100)]
xl: fix bash completion

Changeset 21263:9a12204ac0e4 changes the output format of "xl help"
which bash completion use, so update bash completion to compatible
with this.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoocaml: Build components by default on Linux if toolchain installed.
Keir Fraser [Thu, 6 May 2010 10:10:02 +0000 (11:10 +0100)]
ocaml: Build components by default on Linux if toolchain installed.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: Build ocaml components if configured (default to off).
Keir Fraser [Thu, 6 May 2010 10:07:11 +0000 (11:07 +0100)]
ocaml: Build ocaml components if configured (default to off).

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: remove hook to external repository.
Keir Fraser [Thu, 6 May 2010 10:06:08 +0000 (11:06 +0100)]
ocaml: remove hook to external repository.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: Add Makefile rules.
Keir Fraser [Thu, 6 May 2010 10:05:22 +0000 (11:05 +0100)]
ocaml: Add Makefile rules.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: Add xenstored implementation.
Keir Fraser [Thu, 6 May 2010 10:04:39 +0000 (11:04 +0100)]
ocaml: Add xenstored implementation.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: add logging bindings.
Keir Fraser [Thu, 6 May 2010 10:04:02 +0000 (11:04 +0100)]
ocaml: add logging bindings.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: add uuid bindings.
Keir Fraser [Thu, 6 May 2010 10:03:28 +0000 (11:03 +0100)]
ocaml: add uuid bindings.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: Add XS bindings.
Keir Fraser [Thu, 6 May 2010 10:02:54 +0000 (11:02 +0100)]
ocaml: Add XS bindings.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: Add XC bindings.
Keir Fraser [Thu, 6 May 2010 10:02:18 +0000 (11:02 +0100)]
ocaml: Add XC bindings.

This include a small and simpler reimplementation of libxc.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agoocaml: add mmap bindings implementation.
Keir Fraser [Thu, 6 May 2010 10:01:31 +0000 (11:01 +0100)]
ocaml: add mmap bindings implementation.

This is quite similar to the mmap functionality available in bigarray
but it's less complicated.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agolibxl: Ensure install directories are created, and copy
Keir Fraser [Wed, 5 May 2010 19:23:27 +0000 (20:23 +0100)]
libxl: Ensure install directories are created, and copy
bash-completion script relative to $(DESTDIR).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agosysctl: Move sysctl enumeration into a single block, same as domctl.
Keir Fraser [Tue, 4 May 2010 21:50:58 +0000 (22:50 +0100)]
sysctl: Move sysctl enumeration into a single block, same as domctl.

Reduces risk of aliased commands.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoscheduler: Add a global parameter adjustment to the switchable scheduler interface
Keir Fraser [Tue, 4 May 2010 21:43:30 +0000 (22:43 +0100)]
scheduler: Add a global parameter adjustment to the switchable scheduler interface

...along with a new sysctl to call it directly.  This is in order to
support DornerWorks' new ARINC653 scheduler.

Based on code from Josh Holtrop and Kathy Hadley at DornerWorks, Ltd

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
15 years agoscheduler: const-ify references to 'struct scheduler' where possible.
Keir Fraser [Tue, 4 May 2010 21:42:34 +0000 (22:42 +0100)]
scheduler: const-ify references to 'struct scheduler' where possible.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agocpupool: Control interface should be a sysctl rather than a domctl.
Keir Fraser [Tue, 4 May 2010 21:20:05 +0000 (22:20 +0100)]
cpupool: Control interface should be a sysctl rather than a domctl.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoxen-hptool: Fix after interface change to xc_suspend_evtchn_release().
Keir Fraser [Tue, 4 May 2010 21:19:35 +0000 (22:19 +0100)]
xen-hptool: Fix after interface change to xc_suspend_evtchn_release().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agomce: Revert 21264:a8eb546e3cb0
Keir Fraser [Tue, 4 May 2010 12:59:55 +0000 (13:59 +0100)]
mce: Revert 21264:a8eb546e3cb0

Changes Xen machine-check ABI in incompatible way.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoCPUIDLE: shorten hpet spin_lock holding time
Keir Fraser [Tue, 4 May 2010 11:52:48 +0000 (12:52 +0100)]
CPUIDLE: shorten hpet spin_lock holding time

Try to reduce spin_lock overhead for deep C state entry/exit. This
will benefit systems with a lot of cpus which need the hpet broadcast
to wakeup from deep C state.

Signed-off-by: Wei Gang <gang.wei@intel.com>
15 years agox86: Relocate boot trampoline to avoid BIOS conflicts.
Keir Fraser [Tue, 4 May 2010 11:51:33 +0000 (12:51 +0100)]
x86: Relocate boot trampoline to avoid BIOS conflicts.

Fix booting through iSCSI protocol with Broadcom network cards.

These boards use the option ROM feature to implement the TCP/IP stack
protocol, and the iSCSI software initiator. The memory address
normally used by the PMM is 0x87000 which conflicts with the memory
allocation for Xen's trampoline routine, currently 0x88000.

Relocating down to 0x7c000 fixes the problem.

Signed-off-by: Fabio Guarneri <fabioguarneri@gmail.com>
15 years agoCPUIDLE: re-implement mwait wakeup process
Keir Fraser [Tue, 4 May 2010 11:48:28 +0000 (12:48 +0100)]
CPUIDLE: re-implement mwait wakeup process

It MWAITs on a completely new flag field, avoiding the IPI-avoidance
semantics of softirq_pending. It also does wakeup-waiting checks on
timer_deadline_start, that being the field that initiates wakeup via
the MONITORed memory region.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
15 years agocredit2/cpupools: Fix crash
Keir Fraser [Tue, 4 May 2010 11:46:56 +0000 (12:46 +0100)]
credit2/cpupools: Fix crash

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
15 years agolinux pvdrv: generalize location of autoconf.h
Keir Fraser [Tue, 4 May 2010 11:42:56 +0000 (12:42 +0100)]
linux pvdrv: generalize location of autoconf.h

The location of the file in the build tree changed in recent Linux;
since there can be only one such file, using a wild card instead of
an explicit directory name seems the easiest solution.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agox86: fix Dom0 booting time regression
Keir Fraser [Tue, 4 May 2010 11:42:21 +0000 (12:42 +0100)]
x86: fix Dom0 booting time regression

Unfortunately the changes in c/s 21035 caused boot time to go up
significantly on certain large systems. To rectify this without going
back to the old behavior, introduce a new memory allocation flag so
that Dom0 allocations can exhaust non-DMA memory before starting to
consume DMA memory. For the latter, the behavior introduced in
aforementioned c/s gets retained, while for the former we can now even
try larger chunks first.

This builds on the fact that alloc_chunk() gets called with non-
increasing 'max_pages' arguments, end hence it can store locally the
allocation order last used (as larger order allocations can't succeed
during subsequent invocations if they failed once).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agox86: add support for domain-initiated global cache flush
Keir Fraser [Tue, 4 May 2010 11:41:11 +0000 (12:41 +0100)]
x86: add support for domain-initiated global cache flush

Newer Linux' AGP code wants to flush caches on all CPUs under certain
circumstances. Since doing this on all vCPU-s of the domain in
question doesn't yield the intended effect, this needs to be done in
the hypervisor. Add a new MMUEXT operation for this.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agox86: fix off-by-one error in the cache flush portion of flush_area_local().
Keir Fraser [Tue, 4 May 2010 11:39:29 +0000 (12:39 +0100)]
x86: fix off-by-one error in the cache flush portion of flush_area_local().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agoblktap: Fix old QCow tapdisk image handling
Keir Fraser [Tue, 4 May 2010 11:38:19 +0000 (12:38 +0100)]
blktap: Fix old QCow tapdisk image handling

When I tried to use QCow image, I found that only each second boot is
successful. As I discovered, this is caused by wrong handling old qcow
tapdisk images. Extended header flag is not stored correctly so the
blktap tries to change endian fo L1 table on each startup.

From: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agolibxl: make set_memory_target work on domains with no videoram
Keir Fraser [Tue, 4 May 2010 11:36:30 +0000 (12:36 +0100)]
libxl: make set_memory_target work on domains with no videoram

If a domain has no videoram (say, dom0), then treat the size as 0 and
continue, rather than just failing.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
15 years agop2m_alloc_table: use p2m_alloc_ptp
Keir Fraser [Tue, 4 May 2010 11:33:14 +0000 (12:33 +0100)]
p2m_alloc_table: use p2m_alloc_ptp

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
15 years agovmx, tboot: Check the correct in/outside-SMX flag when init'ing VMX.
Keir Fraser [Tue, 4 May 2010 11:29:05 +0000 (12:29 +0100)]
vmx, tboot: Check the correct in/outside-SMX flag when init'ing VMX.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoxend: fix bug in option parsing
Keir Fraser [Tue, 4 May 2010 11:23:54 +0000 (12:23 +0100)]
xend: fix bug in option parsing

If you enable legacy tcp xmlrpc in xend's config but omit to enable
ssl then a backtrace is generated when starting xend.

Signed-off-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
15 years agox86: add CMCI software injection interface
Keir Fraser [Tue, 4 May 2010 11:22:25 +0000 (12:22 +0100)]
x86: add CMCI software injection interface

This small patch now add CMCI software injection interface.
So that CMCI error could be triggered by software on CPUs
which support CMCI.

Signed-off-by: Yunhong Jiang<yunhong.jiang@intel.com>
Signed-off-by: Liping Ke <liping.ke@intel.com>
15 years agoxl: Make xl usage summary legible
Keir Fraser [Tue, 4 May 2010 11:19:50 +0000 (12:19 +0100)]
xl: Make xl usage summary legible

The xl usage summary is illegible with its double spacing and huge gap
between the command and its description.  Tighten it up.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agopv_ops: Switch kernel from xen/master to xen/stable-2.6.31.x
Keir Fraser [Tue, 4 May 2010 11:17:19 +0000 (12:17 +0100)]
pv_ops: Switch kernel from xen/master to xen/stable-2.6.31.x

This is functionally identical to xen/master at the moment, but more
meaningful.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
15 years agoMake sure git clone gets the right kernel branch
Keir Fraser [Tue, 4 May 2010 11:16:37 +0000 (12:16 +0100)]
Make sure git clone gets the right kernel branch

When cloning kernel repo:
  1. make remote called "xen" rather than the default "origin"
  2. directly checkout the desired branch, rather than the default
  then the desired one

Git 1.5 doesn't support -b on git clone, and seems to do something odd
with the checkout branch argument, so avoid using the newer
commandline options.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
15 years agomini-os: Revert 21106:b20f897d6010 "Fix xenbus initialisation"
Keir Fraser [Tue, 4 May 2010 11:15:28 +0000 (12:15 +0100)]
mini-os: Revert 21106:b20f897d6010 "Fix xenbus initialisation"

Jeremy Fitzhardinge (jeremy@goop.org) reports that this fixes HVM+stubdom.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoChange the global suspend event channel lock file to a per-domain lock file
Keir Fraser [Tue, 4 May 2010 11:12:28 +0000 (12:12 +0100)]
Change the global suspend event channel lock file to a per-domain lock file

This allows multiple guests to be migrated or protected by Remus
simultaneously.

Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Acked-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agoxm: catch TypeError if xenconsole is nonexistent
Keir Fraser [Tue, 4 May 2010 11:10:54 +0000 (12:10 +0100)]
xm: catch TypeError if xenconsole is nonexistent

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
15 years agoxl: Add option '-c' for 'xl create'
Keir Fraser [Tue, 4 May 2010 11:09:48 +0000 (12:09 +0100)]
xl: Add option '-c' for 'xl create'
* -c Connect to the console after the domain is created.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agoxl: Add support of specifying '[vars]' in 'xl create'.
Keir Fraser [Tue, 4 May 2010 11:03:20 +0000 (12:03 +0100)]
xl: Add support of specifying '[vars]' in 'xl create'.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agoxl: Add some return-code sanity checks to 'xl info'.
Keir Fraser [Tue, 4 May 2010 10:56:26 +0000 (11:56 +0100)]
xl: Add some return-code sanity checks to 'xl info'.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
15 years agoxl: fix XL_LOG_ERRNOVAL output
Keir Fraser [Tue, 4 May 2010 10:49:46 +0000 (11:49 +0100)]
xl: fix XL_LOG_ERRNOVAL output

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
15 years agoxl: Add basic bash completion for xl command.
Keir Fraser [Tue, 4 May 2010 10:48:10 +0000 (11:48 +0100)]
xl: Add basic bash completion for xl command.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxl: Remove unused variable verbose in info function
Keir Fraser [Tue, 4 May 2010 10:46:24 +0000 (11:46 +0100)]
xl: Remove unused variable verbose in info function

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxl: Add help for 'xl info' command
Keir Fraser [Tue, 4 May 2010 10:44:19 +0000 (11:44 +0100)]
xl: Add help for 'xl info' command

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agolibxl: Build with -Werror
Keir Fraser [Tue, 4 May 2010 10:38:24 +0000 (11:38 +0100)]
libxl: Build with -Werror

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoxl: Add command description to command table
Keir Fraser [Tue, 4 May 2010 10:37:06 +0000 (11:37 +0100)]
xl: Add command description to command table

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxl: Use command table to store command name and implementation
Keir Fraser [Tue, 4 May 2010 10:28:06 +0000 (11:28 +0100)]
xl: Use command table to store command name and implementation

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxl: Move xl command implementation to a seperate file
Keir Fraser [Tue, 4 May 2010 10:23:17 +0000 (11:23 +0100)]
xl: Move xl command implementation to a seperate file

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
15 years agoxl: Add subcommand "xl sched-credit"
Keir Fraser [Tue, 4 May 2010 10:09:32 +0000 (11:09 +0100)]
xl: Add subcommand "xl sched-credit"

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
15 years agoUpdate QEMU_TAG to 01626771cf2e9285fbfddcbded2820fc77745e4b
Keir Fraser [Tue, 4 May 2010 10:07:06 +0000 (11:07 +0100)]
Update QEMU_TAG to 01626771cf2e9285fbfddcbded2820fc77745e4b

15 years agoRemus: use IFB for net buffer on newer kernels
Keir Fraser [Tue, 4 May 2010 08:36:05 +0000 (09:36 +0100)]
Remus: use IFB for net buffer on newer kernels

IMQ does not work with ebtables on 2.6.31, and IFB is not a
third-party patch.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agoRemus: add file locking and modprobe utility functions
Keir Fraser [Tue, 4 May 2010 08:35:42 +0000 (09:35 +0100)]
Remus: add file locking and modprobe utility functions

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agoRemus: include device name in vif objects
Keir Fraser [Tue, 4 May 2010 08:35:18 +0000 (09:35 +0100)]
Remus: include device name in vif objects

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agoRemus: fix VM stringification
Keir Fraser [Tue, 4 May 2010 08:34:50 +0000 (09:34 +0100)]
Remus: fix VM stringification

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agoRemus: move device handling into its own module
Keir Fraser [Tue, 4 May 2010 08:34:23 +0000 (09:34 +0100)]
Remus: move device handling into its own module

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agoRemus: remove obsolete code
Keir Fraser [Tue, 4 May 2010 08:31:13 +0000 (09:31 +0100)]
Remus: remove obsolete code

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agoRemus: python netlink fixes
Keir Fraser [Tue, 4 May 2010 08:30:53 +0000 (09:30 +0100)]
Remus: python netlink fixes

Fix deprecation warning in Qdisc class under python 2.6.
Fix rtattr length and padding (rta_len is unaligned).
Null-terminate qdisc name in rtnl messages.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
15 years agolibxl: Expose build-time install paths inside libxl.
Keir Fraser [Thu, 29 Apr 2010 18:38:52 +0000 (19:38 +0100)]
libxl: Expose build-time install paths inside libxl.

Use this to construct the fully-qualified path to xenconsole.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agox86, shadow: propagate pat caching on the shadow l1
Keir Fraser [Mon, 26 Apr 2010 11:13:23 +0000 (12:13 +0100)]
x86, shadow: propagate pat caching on the shadow l1

PAT caching was only propagated if has_arch_pdevs(),
causing the hvm_get_mem_pinned_cacheattr() to be ignored
in the non passthrough case.
l1_disallow_mask() needs to be relaxed.

Signed-off-by: Jean Guyader <jean.guyader@citrix.com>
15 years agoSupport Linux's advanced crashkernel= syntax
Keir Fraser [Mon, 26 Apr 2010 11:12:12 +0000 (12:12 +0100)]
Support Linux's advanced crashkernel= syntax

Quoting the original Linux patch's description:

"This patch adds a extended crashkernel syntax that makes the value of
 reserved system RAM dependent on the system RAM itself:

    crashkernel=3D<range1>:<size1>[,<range2>:<size2>,...][@offset]
    range=3Dstart-[end]

 For example:

    crashkernel=3D512M-2G:64M,2G-:128M

 The motivation comes from distributors that configure their
 crashkernel command line automatically with some configuration tool
 (YaST, you know ;)). Of course that tool knows the value of System
 RAM, but if the user removes RAM, then the system becomes unbootable
 or at least unusable and error handling is very difficult."

For x86, other than Linux we pass the actual amount of RAM rather than
the highest page's address (to cope with sparse physical address
maps).

This still needs to be hooked up for ia64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agox86: make pxm_to_node() return sane values when disabling NUMA internally
Keir Fraser [Mon, 26 Apr 2010 11:11:30 +0000 (12:11 +0100)]
x86: make pxm_to_node() return sane values when disabling NUMA internally

Otherwise, pass-through code may call memory allocation functions with
invalid node IDs, causing the allocations to fail.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
15 years agoxl: Add option '-p' for command 'xl create'
Keir Fraser [Mon, 26 Apr 2010 05:52:44 +0000 (06:52 +0100)]
xl: Add option '-p' for command 'xl create'

Add option '-p' for command 'xl create', and update
the help info.
* -p Leave the domain paused after it is created.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
15 years agoxl: Fix segment fault of 'xl list'
Keir Fraser [Mon, 26 Apr 2010 05:52:13 +0000 (06:52 +0100)]
xl: Fix segment fault of 'xl list'

If libxl_list_domain() returns NULL, segment fault occurs now.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
15 years agocpupools, xend: Add missing file sxputils.py
Keir Fraser [Mon, 26 Apr 2010 05:50:39 +0000 (06:50 +0100)]
cpupools, xend: Add missing file sxputils.py

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
15 years agocpupools, xend: Add missing file XendCPUPool.py
Keir Fraser [Fri, 23 Apr 2010 14:04:26 +0000 (15:04 +0100)]
cpupools, xend: Add missing file XendCPUPool.py

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
15 years agoAdd debug-key 'D' to dump EPT p2m table.
Keir Fraser [Fri, 23 Apr 2010 07:40:58 +0000 (08:40 +0100)]
Add debug-key 'D' to dump EPT p2m table.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
15 years agoxl: support oos domain parameter
Keir Fraser [Fri, 23 Apr 2010 07:39:29 +0000 (08:39 +0100)]
xl: support oos domain parameter

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
15 years agocpupools: optimise domain creation if pool movement is a no-op
Keir Fraser [Fri, 23 Apr 2010 07:38:35 +0000 (08:38 +0100)]
cpupools: optimise domain creation if pool movement is a no-op

Signed-off by: Juergen Gross <juergen.gross@ts.fujitsu.com>

15 years agoRevert 21224:a7947fd90328 "xend: earlier remove the backend of tapdisk device"
Keir Fraser [Fri, 23 Apr 2010 07:37:19 +0000 (08:37 +0100)]
Revert 21224:a7947fd90328 "xend: earlier remove the backend of tapdisk device"

Consensus is that this is not the correct fix.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
15 years agoconsole: Make initial static console buffer __initdata.
Keir Fraser [Thu, 22 Apr 2010 16:43:56 +0000 (17:43 +0100)]
console: Make initial static console buffer __initdata.

The previous scheme --- freeing an area of BSS --- did not interact
nicely with device passthrough as IOMMU will not have any Xen BSS area
in guest device pagetables. Hence if the freed BSS space gets
allocated to a guest, DMAs to guest's own memory can fail.

The simple solution here is to always free the static buffer at end of
boot (initmem is specially handled for IOMMUs) and require a
dynamically-allocated buffer always to be created.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>