Keir Fraser [Sat, 15 May 2010 07:29:59 +0000 (08:29 +0100)]
Add MSR support for various feature AMD processor families.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Keir Fraser [Sat, 15 May 2010 07:29:21 +0000 (08:29 +0100)]
xentrace: install scripts with python install wrapper
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Sat, 15 May 2010 07:27:22 +0000 (08:27 +0100)]
libxl: Add missing start_time entry when create and restore VMs.
Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
Keir Fraser [Fri, 14 May 2010 19:37:02 +0000 (20:37 +0100)]
Remove many uses of cpu_possible_map and iterators over NR_CPUS.
The significant remaining culprits for x86 are credit2, hpet, and
percpu-area subsystems. To be dealt with in a separate patch.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 17:39:02 +0000 (18:39 +0100)]
trace: Do not touch percpu data for "impossible" cpus.
While here, in fact only touch per-cpu data for online cpus. Use cpu
notifier chain to initialise per-cpu spinlock dynamically.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 17:25:55 +0000 (18:25 +0100)]
Some cleanups to cpu offline handling.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 16:48:53 +0000 (17:48 +0100)]
cpu: Quieten normal CPU hotplug operations.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 16:48:34 +0000 (17:48 +0100)]
stop_machine: Pass cpu number to tasklet handler.
Otherwise the BUG_ON() I added to the handler always BUGs!
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 16:21:32 +0000 (17:21 +0100)]
Remove unused PAGE_SCRUB_SOFTIRQ definition.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 16:07:52 +0000 (17:07 +0100)]
Move cpu hotplug routines into common cpu.c file.
Also simplify the locking (reverting to use if spin_trylock, as
returning EBUSY/EAGAIN seems unavoidable after all). In particular
this should continue to ensure that stop_machine_run() does not have
cpu_online_map change under its feet.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 14:22:48 +0000 (15:22 +0100)]
x86: Implement cpu hotplug notifiers. Use them.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 10:39:15 +0000 (11:39 +0100)]
x86: Do no thold cpu_add_remove_lock across stop_machine_run().
Instead we protect against concurrent online/offline requests for a
single CPU asynchronously, using a cpumask for bookkeeping.
This means that cpu_add_remove_lock no longer needs to be acquired via
spin_trylock.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 09:13:30 +0000 (10:13 +0100)]
Import raw notifier subsystem from Linux.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 07:05:05 +0000 (08:05 +0100)]
xl: Add include-only-once checks to xl_cmd{impl,table}.h
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 14 May 2010 07:01:51 +0000 (08:01 +0100)]
xl: Add "xl uptime" command, a clone of "xm uptime".
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Keir Fraser [Fri, 14 May 2010 06:56:43 +0000 (07:56 +0100)]
xl: Check invalid domid in find_domain()
If domain id is invalid, find_domain should return error because
the specified domain does not exist.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Keir Fraser [Fri, 14 May 2010 06:55:14 +0000 (07:55 +0100)]
libxl: Fix missing memory/target xenstore entry on domain creation
There was a simple bug in stuffing the initial setup array.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Keir Fraser [Fri, 14 May 2010 06:53:16 +0000 (07:53 +0100)]
libxl: Adjustments to memset/memmax handling
I think xl memset should change the memory currently used by the guest
and xl memmax should change the size of the guest's address space and
not the population. For this reason libxl_set_memory_target should
provide a way to enforce the memory target, calling
xc_domain_setmaxmem. On the other hand xl memmax shouldn't call
xc_domain_setmaxmem because that is the upper bound of the memory
reservation, it should just change static-max, that at the moment
wouldn't do much, but we can imagine that in the future could trigger
something useful in the guest.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jonathan Knowles <Jonathan.Knowles@eu.citrix.com>=20
Keir Fraser [Fri, 14 May 2010 06:52:24 +0000 (07:52 +0100)]
mce: Fix mcheck_mca_logout to increase errcnt when valid entry found.
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Keir Fraser [Thu, 13 May 2010 11:21:16 +0000 (12:21 +0100)]
xenstore: Fix cleanup_pop() definition for some (buggy) pthread.h headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 13 May 2010 09:09:02 +0000 (10:09 +0100)]
Even 'dummy' domains (e.g., dom_xen a.k.a. DOMID_XEN) must have valid I/O caps.
Ensure the rangesets are always initialised. Certain (privileged)
invocations of hypercalls such as mmu_update can end up interrogating
these special domains for possible I/O capabilities.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 13 May 2010 08:44:20 +0000 (09:44 +0100)]
x86: Fix a few on_{selected,each}_cpus callers who should wait for completion.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 13 May 2010 08:35:05 +0000 (09:35 +0100)]
libxl: Check return codes of write/asprintf/daemon consistently.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 13 May 2010 07:56:49 +0000 (08:56 +0100)]
VPMU: Implement vpmu support for AMD family 10h processors
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Keir Fraser [Thu, 13 May 2010 07:56:10 +0000 (08:56 +0100)]
VPMU: Enable vpmu for svm
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Keir Fraser [Thu, 13 May 2010 07:55:41 +0000 (08:55 +0100)]
VPMU: Make vpmu stucture visiable for both vmx and svm
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Keir Fraser [Thu, 13 May 2010 07:55:06 +0000 (08:55 +0100)]
VPMU: Migrate vpmu files into public folders
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Keir Fraser [Thu, 13 May 2010 07:52:47 +0000 (08:52 +0100)]
xl: Implement block-detach command
Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
Keir Fraser [Thu, 13 May 2010 07:51:50 +0000 (08:51 +0100)]
xl: Implement block-list command
Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
Keir Fraser [Thu, 13 May 2010 07:50:54 +0000 (08:50 +0100)]
xl: Implement block-attach command
Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
Keir Fraser [Thu, 13 May 2010 07:49:41 +0000 (08:49 +0100)]
xl: Implement network-detach command
Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
Keir Fraser [Thu, 13 May 2010 07:48:35 +0000 (08:48 +0100)]
xl: Implement network-list command
Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
Keir Fraser [Thu, 13 May 2010 07:46:57 +0000 (08:46 +0100)]
xl: Implement network-attach
Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
Keir Fraser [Wed, 12 May 2010 08:09:40 +0000 (09:09 +0100)]
mce: MCE polling logic should check mce_disabled during initialisation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 12 May 2010 07:53:27 +0000 (08:53 +0100)]
xl: Add check for command 'xl mem-set'
Get max memory from /local/domain/$domid/memory/static-max, and then
do value check. The value larger than static-max is invalid.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Keir Fraser [Wed, 12 May 2010 07:52:59 +0000 (08:52 +0100)]
xl: Add command 'xl mem-max'
Add subcommand 'xl mem-max', can be used to set static max memory
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Keir Fraser [Wed, 12 May 2010 07:52:30 +0000 (08:52 +0100)]
xl: Add "xl top" command, a clone of "xm top".
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Keir Fraser [Wed, 12 May 2010 07:52:07 +0000 (08:52 +0100)]
xl: Add "xl sysrq" command, a clone of "xm sysrq".
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Keir Fraser [Wed, 12 May 2010 07:51:26 +0000 (08:51 +0100)]
vmx: Change the default Pause-Loop-Exiting "Gap" parameter
PLE_Gap controls teh maximum allowable time between executions of
PAUSE in a busy loop. Essentially this controls the sensitivity of the
processor's busy-loop detection.
Changed the default PLE_Gap to 128 for
1. not using odd number like 41
2. getting a little bit more PLE vmexits to improve performance
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Keir Fraser [Wed, 12 May 2010 07:49:13 +0000 (08:49 +0100)]
xs: avoid pthread_join deadlock in xs_daemon_close
Doing a pthread_cancel and join on the reader thread while holding all
the request/reply/watch mutexes can deadlock if the thread needs to
take any of those mutexes to exit. Kill off the reader thread before
taking any mutexes (which should be redundant if we're
single-threaded at that point).
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Keir Fraser [Wed, 12 May 2010 07:48:14 +0000 (08:48 +0100)]
xs: make sure mutexes are cleaned up and memory freed if the read thread is cancelled
If the read thread is terminated with pthread cancel, it must make
sure all memory is freed and mutexes are unlocked.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Keir Fraser [Wed, 12 May 2010 07:47:10 +0000 (08:47 +0100)]
credit2: Fix tasklets
Signed-off-by: George Dunlap <George.Dunlap@eu.citrix.com>
Keir Fraser [Wed, 12 May 2010 07:43:47 +0000 (08:43 +0100)]
Honour XEN_LINUX_GIT_LOCALBRANCH and XEN_LINUX_GITREV variables
XEN_GIT_ORIGIN to set the name of the remote origin; the default is
still "xen".
XEN_LINUX_GIT_LOCALBRANCH allows the name of the local branch to be
set. The default is the same as the remote branch.
XEN_LINUX_GITREV allows a specific GIT revision to be checked out,
rather than a branch. By default it is the remote branch name.
This change should result in no change in behaviour in the normal
case.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Keir Fraser [Wed, 12 May 2010 07:42:30 +0000 (08:42 +0100)]
domctl: Fix cpumap/cpumask conversion functions to return an error code.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 11 May 2010 13:05:28 +0000 (14:05 +0100)]
x86: Replace our own specialised versions of memset and memcpy with
direct use of gcc's built-in versions.
This dramatically simplifies our code while also avoiding compile
warnings with certain intermediate versions of gcc.
This patch is based on an initial version by Jan Beulich.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 11 May 2010 11:37:26 +0000 (12:37 +0100)]
xl: use help table to describe command help information
This patch generate a help table to describe command help
information.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Tue, 11 May 2010 10:23:54 +0000 (11:23 +0100)]
xl: Add "xl trigger" command, a clone of "xm trigger".
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Keir Fraser [Tue, 11 May 2010 10:21:27 +0000 (11:21 +0100)]
x86: Detect and handle unexpected platform-timer counter wrap.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 11 May 2010 10:19:23 +0000 (11:19 +0100)]
Define ABS() library function. Use it.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 11 May 2010 10:10:24 +0000 (11:10 +0100)]
tasklet: Improve scheduler interaction.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 11 May 2010 07:39:01 +0000 (08:39 +0100)]
libxl: More cpupool fixes.
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Keir Fraser [Tue, 11 May 2010 07:37:25 +0000 (08:37 +0100)]
xl: "vncunused" is documented to default to 1.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Keir Fraser [Tue, 11 May 2010 07:36:30 +0000 (08:36 +0100)]
x86: Export timer hypercalls to HVM guests too
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Tue, 11 May 2010 07:35:45 +0000 (08:35 +0100)]
VT-d: prevent watchdog timer from kicking in when
initializing on systems with huge amounts of memory
Process pending soft-IRQs every 4G worth of pages initialized for Dom0
to keep timekeeping happy and prevent the NMI watchdog (when enabled)
from kicking in.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Tue, 11 May 2010 07:34:58 +0000 (08:34 +0100)]
x86: TSC handling cleanups
"I am removing the tsc_scaled variable that is never actually used
because when tsc needs to be scaled vtsc is 1. I am also making this
more explicit in tsc_set_info. I am also removing hvm_domain.gtsc_khz
that is a duplicate of d->arch.tsc_khz. I am using scale_delta(delta,
&d->arch.ns_to_vtsc) to scale the tsc value before returning it to the
guest like in the pv case. I added a feature flag to specify that the
pvclock algorithm is safe to be used in an HVM guest so that the guest
can now use it without hanging."
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Tue, 11 May 2010 07:31:16 +0000 (08:31 +0100)]
xm: explicitly differentiate between tap and tap2 in config parsing.
From: Jim Fehlig <jfehlig@novell.com>
Signed-off-by: Keir Fraser <Keir.Fraser@eu.citrix.com>
Keir Fraser [Mon, 10 May 2010 08:27:17 +0000 (09:27 +0100)]
xl: Remove transaction handle in "xl rename"
Thanks Stefano for pointing out that transaction handle in libxl
clients is not needed.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Keir Fraser [Mon, 10 May 2010 08:26:29 +0000 (09:26 +0100)]
xl: add missing migrate commands to command table
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Keir Fraser [Mon, 10 May 2010 08:25:46 +0000 (09:25 +0100)]
Remus: fix missing import in device.py
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Keir Fraser [Mon, 10 May 2010 08:25:11 +0000 (09:25 +0100)]
libxl: Check cpupool parameter during domain creation.
Signed-off-by: Jergen Gross <juergen.gross@ts.fujitsu.com>
Keir Fraser [Mon, 10 May 2010 08:22:52 +0000 (09:22 +0100)]
xentrace: fix bug in t_info size
t_info size should be in bytes, not pages. This fixes a bug
that crashes the hypervisor if the total number of all pages
is more than 1024 but less than 2048.
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Keir Fraser [Mon, 10 May 2010 08:21:58 +0000 (09:21 +0100)]
xl: ignore opengl unless sdl is enabled
The "opengl" setting is documented as having no effect unless "sdl" is
set. Make sure this is honoured.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Keir Fraser [Fri, 7 May 2010 18:22:28 +0000 (19:22 +0100)]
svm: Avoid VINTR injection during NMI shadow
It is invalid because we get vmexit via IRET interception in this
case. VINTR is unaware of NMI shadows and may vmexit early, leaving us
in an endless loop of VINTR injections and interceptions.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 7 May 2010 18:16:40 +0000 (19:16 +0100)]
libxl: fix paths for non-standard installations
Attached patch removes hardcoded pathes and corrects wrong path to
qemu-dm.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Fri, 7 May 2010 18:08:55 +0000 (19:08 +0100)]
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>
Keir Fraser [Fri, 7 May 2010 17:57:30 +0000 (18:57 +0100)]
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>
Keir Fraser [Fri, 7 May 2010 10:45:18 +0000 (11:45 +0100)]
xenstored: Always build and install.
It coexists quite happily with oxenstored.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 7 May 2010 09:02:14 +0000 (10:02 +0100)]
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>
Keir Fraser [Fri, 7 May 2010 09:00:43 +0000 (10:00 +0100)]
multiboot asm: Get offset constants from the C struct
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>