Commit Graph
10196 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk affc898c83 The xm dmesg command wasn't taking the -c/--clear options because of
incorrect values to arg_check(). Patch simply allows for the possible
option with arg_check().

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-05-31 07:48:54 +01:00
kaf24@firebug.cl.cam.ac.uk 652b6e9492 Update .hgignore list for rombios changes. 2006-05-31 07:48:00 +01:00
kaf24@firebug.cl.cam.ac.uk 5426ba079f [VTPM_TOOLS] Updated vtpm for new release of the tpm_emulator.
New emulator includes AIK, DAA, and Transport Sessions
Signed-off-by: Vinnie Scarlata <Vincent.r.scarlata@intel.com>
2006-05-31 07:45:20 +01:00
kaf24@firebug.cl.cam.ac.uk 7469df6c08 [MINIOS] Various address-space fixes.
1. Make Mini-OS start from 0x0.
2. Fixes the pagetable builder to handle half full, but already mapped
pt frames.=20
3. Add a bounds check to ensure than Mini-OS does not try to use Xen
virtual space.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
2006-05-31 07:43:06 +01:00
kaf24@firebug.cl.cam.ac.uk 7c5fa19f50 [HVMLOADER] Default to 8-way SMP rombios.
From: Thomas Woller <thomas.woller@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-31 07:41:33 +01:00
kaf24@firebug.cl.cam.ac.uk 8f1d4352b6 [SVM] Fix virtualization of the CPUID NX bit, and clean up other CPUID bits.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
2006-05-31 07:28:43 +01:00
kaf24@firebug.cl.cam.ac.uk 6726fd1b61 [HVM] Fix shadow mode to not corrupt frame 0's page_info struct.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-05-31 07:25:59 +01:00
kaf24@firebug.cl.cam.ac.uk 9fea9fb410 [ACM] Add a hypervisor call macro to the linux kernel; it
completes the alignment of the ACM call interface with the other Xen 
hypervisor call interfaces. This macro is used to call from the a guest 
kernel directly into the ACM hypervisor module.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
Signed-off by: Bryan D. Payne <bdpayne@us.ibm.com>
2006-05-31 07:23:54 +01:00
kaf24@firebug.cl.cam.ac.uk 6b85882e12 Fix x86/64 definition of dma_get_cache_alignment().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-31 07:20:36 +01:00
cl349@firebug.cl.cam.ac.uk 6bcd41c00e Explicitly use sh to run ioemu configure
instead of relying on configure executable permissions to be set.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-30 23:47:41 +01:00
cl349@firebug.cl.cam.ac.uk 1e4824bc2b Explicitly use sh to run mkhex
instead of relying on mkhex executable permissions to be set.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-30 23:45:28 +01:00
kaf24@firebug.cl.cam.ac.uk d9b9ff1fcd Fix PAE debug builds to avoid shadowing shadow-mode pgdirs below 4GB.
The current shadow mode is not aware of this extra level of shadowing
and gets rather confused. Furthermore it *always* ensures that its
PAE pgdirs are below 4GB so there is no need for the extra shadowing
logic to be invoked.

This fixes a bug introduced in changeset 10177:d5f98d23427a0d256b896fc63ccfd2c1f79e55ba

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-30 18:47:37 +01:00
kaf24@firebug.cl.cam.ac.uk ed2a5cde8d Fix infinite recursion loop in get_page_type() error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-30 18:11:34 +01:00
kaf24@firebug.cl.cam.ac.uk 3231ebb6ba Define halt() and safe_halt() properly for Linux-on-Xen. Remove duplicated
code for initial bringup of secondary VCPUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-30 13:29:29 +01:00
kaf24@firebug.cl.cam.ac.uk a04183a56f Make perfc_valuea actually return the value it reads.
Signed-off-by: David Lively <dlively@virtualiron.com>
2006-05-30 12:37:49 +01:00
kaf24@firebug.cl.cam.ac.uk a6d9ba6149 [HVM][AMD] Support HVM SMP guests on AMD Pacifica hardware (svm platform).
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
2006-05-30 12:32:07 +01:00
kaf24@firebug.cl.cam.ac.uk 8dba288c08 [HVM] Fix a bug in the emulation of the xchg instruction.
This bug has prevented us from booting fully virtualized SMP guests
that write to the APIC using the xchg instruction (when
CONFIG_X86_GOOD_APIC is not set). On 32 bit platforms, sles 10 kernels
are built without CONFIG_x86_GOOD_APIC not set and hence we have had
problems booting fully virtualized SMP sles 10 guests.

Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
2006-05-30 12:30:47 +01:00
kaf24@firebug.cl.cam.ac.uk a3b519a9b5 [BALLOON] Remove the static lower bound on memory target from balloon driver.
Experimentation an discussion on xen-devel concludes that a dynamic method
for determining safe balloon size will be required.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-30 12:28:46 +01:00
kaf24@firebug.cl.cam.ac.uk e482168899 Fix the support for PAE pgdirs above 4GB that was introduced in
changeset 10173:954f4dea9da6336aaa35d0706aed55fde7909644.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-30 11:44:23 +01:00
ack@kneesa.uk.xensource.com 03bb00e0b0 Update docs for new credit scheduler and cleanup out of date scheduler stuff.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-05-28 15:49:17 +01:00
kaf24@firebug.cl.cam.ac.uk e8ea99cff2 Fix SMP boot for kernels without CONFIG_HOTPLUG_CPU.
The function cpu_is_allowed() appears that it should return a boolean
but in fact returns zero on success and an errno on failure. Thus
rename it to the more vague cpu_up_check(), in line with its return
value and thge fact it has unspecified side effects.

Fix the macro definition of cpu_up_check() when building non-hotplug
kernel to return zero rather than one (which always failed secondary
cpu bringup!).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-28 09:46:30 +01:00
kaf24@firebug.cl.cam.ac.uk 3903e920a1 Rename csched -> sched_credit/sched-credit in control plane.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-27 10:13:27 +01:00
kaf24@firebug.cl.cam.ac.uk c263397874 [PAE] Allow pgdirs above 4GB for paravirt guests.
**NOTE**: This obviates the need for lowmem_emergency_pool.
Unpriv guests no longer need to be able to allocate memory
below 4GB for PAE PDPTs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 17:22:30 +01:00
kaf24@firebug.cl.cam.ac.uk 14602c7ac9 Remove bogus inline asm of unused function memchr().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 13:53:49 +01:00
kaf24@firebug.cl.cam.ac.uk 3afabf1400 Cast to a signed type before negating if we really want the result to be negative.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 13:49:29 +01:00
kaf24@firebug.cl.cam.ac.uk 165bf6f0bd [MINIOS] Allows the use of a C library without modifying Mini-OS source files.
From: John Ramsdell
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 13:23:18 +01:00
Ian.Campbell@xensource.com 1fa74a12d2 Move include/asm-x86_64/e820.h to include/asm-x86_64/mach-xen/asm/e820.h
This fixes the native build.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>


--HG--
rename : linux-2.6-xen-sparse/include/asm-x86_64/e820.h => linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/e820.h
2006-05-26 11:23:55 +01:00
ack@kneesa.uk.xensource.com 46ecd27056 New weighted fair-share CPU scheduler w/ automatic SMP load balancing
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-05-26 11:14:36 +01:00
kaf24@firebug.cl.cam.ac.uk 9acd072501 Fix cscope rule in .hgignore. 2006-05-26 09:44:29 +01:00
kaf24@firebug.cl.cam.ac.uk 7dbca9d720 Remove net_driver_util module. Inline the one mac-parsing function
into the netfront and netback drivers. Take the opportunity to fix
the mac-parsing logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 22:57:44 +01:00
kaf24@firebug.cl.cam.ac.uk 22490ab62b [XEND] Wait sufficient time for memory to balloon out before creating a new domain.
On the ES7000 when Dom0 boots up with all of system memory and you try
to bring up a DomU with more than 2GB of memory, xend times out before
the memory is freed causing the domain not to be created. This patch
increases the timeout depending on the amount of memory that needs to be
freed. It also places a cap on the sleep time so that it does not grow
without a limit. This fixes bug# 650

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D650

Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
2006-05-25 21:41:04 +01:00
kaf24@firebug.cl.cam.ac.uk f7040135b3 Allow compat hypercalls to be made via privcmd (to support older userspaces).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-05-25 21:24:47 +01:00
kaf24@firebug.cl.cam.ac.uk d73ed0e9a4 Fix VMEXIT tracing.
Signed-off-by: Bruce Rogers <brogers@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 21:18:55 +01:00
kaf24@firebug.cl.cam.ac.uk 86d5da49a6 [HVM] Support multiple HVM time device models coming soon.
1: Adopt an abstract layer for periodic time on top of different
HV time device models like PIT, RTC and ACPI time.
        2: Extract VMM knowledge from PIT DM code and keep close with
qemu for easy maintain in future.
        3: Use guest time (TSC) to drive PIT CLK that helps us to remove
a lot of extra logic previously introduced to convert from host time to
guest time.
        4: Some cleanup for SMP code like move cache_tsc_offset to per VP.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2006-05-25 16:00:36 +01:00
kaf24@firebug.cl.cam.ac.uk e4813816b2 Fix x86/64 build after previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 16:00:09 +01:00
kaf24@firebug.cl.cam.ac.uk 58407ab286 Remove redundant test in grant-table interface code.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
2006-05-25 15:55:07 +01:00
kaf24@firebug.cl.cam.ac.uk ea1205fb4d Change the x86_emulate() interface to pack all context arguments
into a context structure. This context can then be handed to
callback operations.

Based on an original patch from Mats Petersson <mats.petersson@amd.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 15:52:38 +01:00
kaf24@firebug.cl.cam.ac.uk 1ec81e8864 [BALLOON] Do not allow target to be set below two percent of maximum
memory size.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 14:54:43 +01:00
kaf24@firebug.cl.cam.ac.uk c669499b45 Do not include asm/fixmap.h directly from non-arch-specific Linux files.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
2006-05-25 14:47:23 +01:00
kaf24@firebug.cl.cam.ac.uk 29a0da72ab [XEND] Remember cpu-pinning information across guest restarts.
Signed-off-by: Qing He <qing.he@intel.com>
2006-05-25 14:45:40 +01:00
kaf24@firebug.cl.cam.ac.uk 22c42d4bc0 Fix xc_tbuf.c indentation and stop turning failure to change
trace-buffer size into a fatal error.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 14:42:07 +01:00
kaf24@firebug.cl.cam.ac.uk 3854d519b5 Ensure trace-buffer size is set back to zero if trace buffers can't be allocated.
Signed-off-by: Atsushi Sakai <sakaia@jp.fujitsu.com>
2006-05-25 14:37:55 +01:00
kaf24@firebug.cl.cam.ac.uk 4cebc4c9b2 [NET] front: Use netif_carrier to model backend-connection state.
The tristate backend_state really only needs to be a boolean.  In fact
other virtualisation network drivers such as the s390 already model this
using netif_carrier_*.  So by converting backend_state over to the net
carrier flag we can tap into existing infrastructure rather than creating
new ones.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-05-25 14:29:21 +01:00
kaf24@firebug.cl.cam.ac.uk f7ea0be1ff Separate xenbusstate enumeration from typedef. Avoid using the typedef
in Linux coe as it is consider bad coding style.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 14:15:49 +01:00
cl349@firebug.cl.cam.ac.uk ebdd477d44 Fix IDE CD-drive PIO mode.
CD drives in PIO mode don't work under Xen because of a change in Linux
between 2.6.12 and 2.6.16, as a result of the following thread:
http://lists.parisc-linux.org/pipermail/parisc-linux/2005-August/027197.html

The change breaks systems which have highmem and a swiotlb because the
ide-cd driver doesn't use the swiotlb, resulting in read/writes to/from
highmem pages in PIO mode not working any longer.  Xen kernels usually have
both highmem and a swiotlb.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-24 19:41:47 +01:00
kaf24@firebug.cl.cam.ac.uk f12403a5ea Remove unnecessary x86-specific mapping code from privcmd interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-24 14:49:24 +01:00
kaf24@firebug.cl.cam.ac.uk 1ac7d8afca [XENSTORE] Make use of /proc/xen/xsd_{port,kva} private to the Linux implementation.
Signed-off-by: John Levon <john.levon@sun.com>
2006-05-24 14:24:57 +01:00
kaf24@firebug.cl.cam.ac.uk 04f28b0fc7 [PTRACE] Fix ptrace for hvm guests.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-05-24 14:12:40 +01:00
kaf24@firebug.cl.cam.ac.uk 300fe48878 Event-channel driver: Use for_each_possible_cpu instead
of for_each_cpu , or statically initialize data when possible.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 12:01:25 +01:00
kaf24@firebug.cl.cam.ac.uk 56d1a3fa40 Fix kcons_write and kcons_write_dom0 CodingStyle.
Use roundup_pow_of_two().

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 11:57:37 +01:00