Commit Graph
21330 Commits
Author SHA1 Message Date
Keir Fraser eb8d759136 ocaml: NetBSD support and general CFLAGS cleanup
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-07 19:08:55 +01:00
Keir Fraser b87c206038 xl: Update memory info in xenstore when use 'xl mem-set'
'xl mem-set' should update memory info in xenstore's vm info.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
2010-05-07 18:57:30 +01:00
Keir Fraser 99462ede4c xenstored: Always build and install.
It coexists quite happily with oxenstored.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-07 11:45:18 +01:00
Keir Fraser 5c89fad428 domain_create: No need to zero new domain struct as done by arch-dep code
Fix ia64 to always make this the case.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
2010-05-07 10:02:14 +01:00
Keir Fraser 97be3bd3fe multiboot asm: Get offset constants from the C struct
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
2010-05-07 10:00:43 +01:00
Keir Fraser e926e7d1a9 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>
2010-05-07 09:50:17 +01:00
Keir Fraser 40af606c02 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>
2010-05-07 09:46:50 +01:00
Keir Fraser c4826676c4 libxl: Support cpupools
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
2010-05-07 09:36:58 +01:00
Keir Fraser 2dd73ff364 credit2: Fix credit2 + cpupools
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
2010-05-07 09:35:58 +01:00
Keir Fraser cd62ba5322 xl: Add "xl rename" command, a clone of "xm rename".
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-07 09:31:38 +01:00
Keir Fraser 526bdf67f5 xl: Add "xl domname" command, a clone of "xm domname".
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-07 09:31:21 +01:00
Keir Fraser 8a3067e096 xl: Add "xl domid" command, a clone of "xm domid".
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-07 09:30:56 +01:00
Keir Fraser ac56b9955e 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>
2010-05-07 09:27:40 +01:00
Keir Fraser 5c0704bc6f libxl: support vncpassword in device-model specification
From: Gihan Munasinghe <GMunasinghe@flexiant.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-07 09:26:49 +01:00
Keir Fraser 0cb7b470ae xl: Start enumerating vifs from 0.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2010-05-07 09:15:19 +01:00
Keir Fraser 80e279223b ocaml: Add -Werror to CFLAGS and fix resulting errors.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-07 09:13:59 +01:00
Keir Fraser b59766b71f .hgignore: Update for new ocaml build-generated files.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-07 08:55:12 +01:00
Keir Fraser 53f89553da ocam: add missing files that got lost in the v2 shuffle
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-07 08:46:51 +01:00
Keir Fraser abe6f86669 ocaml: Fix C include paths in Makefile
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-07 08:46:07 +01:00
Keir Fraser 12d39540c8 ocaml: Fix Makefile for parallel build.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2010-05-07 08:43:51 +01:00
Keir Fraser 5b6e351436 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>
2010-05-06 17:00:08 +01:00
Keir Fraser 08bbf1f316 xl: fix printf format specifier for 64-bit arguments
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2010-05-06 16:01:49 +01:00
Keir Fraser c871af7f4d 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>
2010-05-06 15:59:35 +01:00
Keir Fraser 68f722c809 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>
2010-05-06 15:55:31 +01:00
Keir Fraser b30f8e7bbe 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>
2010-05-06 15:54:52 +01:00
Keir Fraser 81e0a49aeb 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>
2010-05-06 11:59:55 +01:00
Keir Fraser c931e4face 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>
2010-05-06 11:52:22 +01:00
Keir Fraser d9998d5853 iommu: add missing __init annotations
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-05-06 11:44:42 +01:00
Keir Fraser 727bc17d20 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>
2010-05-06 11:43:54 +01:00
Keir Fraser 631b9a05a9 vmce: Clean up implementation and setup/destroy.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-06 11:39:09 +01:00
Keir Fraser 1549911cfb ia64: sysctl build fixes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-05-06 11:19:28 +01:00
Keir Fraser bceb7a6873 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>
2010-05-06 11:16:37 +01:00
Keir Fraser 3c83d63d98 cpupools: Fix cpupool sysctl locking.
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
2010-05-06 11:14:17 +01:00
Keir Fraser c177a9f122 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>
2010-05-06 11:13:22 +01:00
Keir Fraser ed13686ad6 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>
2010-05-06 11:12:11 +01:00
Keir Fraser a4c0834951 ocaml: Build components by default on Linux if toolchain installed.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:10:02 +01:00
Keir Fraser 5469342ba3 ocaml: Build ocaml components if configured (default to off).
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:07:11 +01:00
Keir Fraser 3c82abc294 ocaml: remove hook to external repository.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:06:08 +01:00
Keir Fraser d236f2c244 ocaml: Add Makefile rules.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:05:22 +01:00
Keir Fraser f44af66041 ocaml: Add xenstored implementation.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:04:39 +01:00
Keir Fraser ea8ddf27e5 ocaml: add logging bindings.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:04:02 +01:00
Keir Fraser dc9a6e6274 ocaml: add uuid bindings.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:03:28 +01:00
Keir Fraser c3afd398ba ocaml: Add XS bindings.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:02:54 +01:00
Keir Fraser 8b7ce06a2d ocaml: Add XC bindings.
This include a small and simpler reimplementation of libxc.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:02:18 +01:00
Keir Fraser d3e649277a 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>
2010-05-06 11:01:31 +01:00
Keir Fraser fb69f60385 libxl: Ensure install directories are created, and copy
bash-completion script relative to $(DESTDIR).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-05 20:23:27 +01:00
Keir Fraser 46a9cfdbd8 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>
2010-05-04 22:50:58 +01:00
Keir Fraser 559a9ec580 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>
2010-05-04 22:43:30 +01:00
Keir Fraser 837a388c91 scheduler: const-ify references to 'struct scheduler' where possible.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-04 22:42:34 +01:00
Keir Fraser 4cd740cf56 cpupool: Control interface should be a sysctl rather than a domctl.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-04 22:20:05 +01:00