Commit Graph
8908 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk d3e3ecc2a9 Suppress VIDEO_SELECT config option.
The Xen guest doesn't know how to change video modes at boot.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 18:03:56 +00:00
cl349@firebug.cl.cam.ac.uk cb4d0ad5d0 Add drivers/video/Kconfig to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 18:02:55 +00:00
cl349@firebug.cl.cam.ac.uk 4d0d0e2ed5 Fix I/O port address for first floppy controller on x86_64.
As a consequence, some of the i386 changes over native code need to also be
added to x86-64.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 17:59:41 +00:00
cl349@firebug.cl.cam.ac.uk 49fa33098b Fix read_cr3() and use it.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 17:34:21 +00:00
cl349@firebug.cl.cam.ac.uk d685638f98 Eliminate x86_64 idt_table.
Add CONFIG_X86_NO_IDT to exclude all code which references the idt table.
Also fix the non-Xen cpu_gdt_init() handling.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 17:32:29 +00:00
cl349@firebug.cl.cam.ac.uk 704aa39dff Eliminate i386 idt_table.
Add CONFIG_X86_NO_IDT to exclude all code which references the idt table.
Make CONFIG_X86_F00F_BUG conditional on CONFIG_X86_NO_IDT.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 17:22:00 +00:00
cl349@firebug.cl.cam.ac.uk 9f4df136bd Add arch/i386/Kconfig.cpu to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 17:15:14 +00:00
vhanquez@kneesa.uk.xensource.com b5532eb9d7 do not BUG() if memory cannot be allocated, just wait.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-02-20 17:14:19 +00:00
vhanquez@kneesa.uk.xensource.com 2d93dbc65a alloc_netdev must be freed with free_netdev, not directly by kfree.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-02-20 17:06:36 +00:00
cl349@firebug.cl.cam.ac.uk 0df689dee5 Simplify utoa macro, make it identical with x86_64 version.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 16:49:35 +00:00
cl349@firebug.cl.cam.ac.uk 448cb8937a Eliminate hard coded items from x86_64 __xen_guest section
to avoid problems when the position of the hypercall page changes.
Further, clean up many things to avoid needless differences to native
code, while also adding a couple of adjustments that only will be
submitted for native code inclusion, that simplify code, or that
remove unused elements.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 16:42:54 +00:00
cl349@firebug.cl.cam.ac.uk 83e8b14bc4 Eliminate hard coded items from i386 __xen_guest section
to allow the new VMSPLIT_* Kconfig options to work, and to
avoid problems when the position of the hypercall page
changes.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 16:08:27 +00:00
cl349@firebug.cl.cam.ac.uk dd0d21ac29 Fix loading binary kernel images.
Starting a domain with a binary kernel image fails due to an uninitialized
field.  This patch fixes that problem.
The Novell NetWare port to Xen 3.0 currently uses the binary image loader.

Signed-off-by: Bruce Rogers <brogers@novell.com>
2006-02-20 15:18:38 +00:00
cl349@firebug.cl.cam.ac.uk 29a164e799 Eliminate tss - tss is meaningless in a paravirtualized kernel
and consumes 25% of the per-cpu area.
Add CONFIG_X86_NO_TSS to exclude all code which references tss.

Based on a patch by Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 15:15:10 +00:00
cl349@firebug.cl.cam.ac.uk c41010d645 Add arch/x86_64/kernel/{asm-offsets,init_task}.c to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 14:51:50 +00:00
cl349@firebug.cl.cam.ac.uk b2c35e3d13 Eliminate tss - tss is meaningless in a paravirtualized kernel
and consumes 25% of the per-cpu area.
Add CONFIG_X86_NO_TSS to exclude all code which references tss.
Add CONFIG_X86_SYSENTER to conditionally include support for sysenter.
Change CONFIG_DOUBLEFAULT to depend on !CONFIG_X86_NO_TSS.
(sysenter and doublefault need tss).

Based on a patch by Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 14:46:14 +00:00
cl349@firebug.cl.cam.ac.uk 530dd103f6 Add arch/i386/kernel/{asm-offsets.c,sysenter.c,vm86.c,vsyscall.S} to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 14:37:13 +00:00
vhanquez@kneesa.uk.xensource.com a339fd4388 missing "is not set" string in one config option.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-02-20 14:08:39 +00:00
vhanquez@kneesa.uk.xensource.com 9be7dc25d1 Set default HZ to 100.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-02-20 13:13:14 +00:00
cl349@firebug.cl.cam.ac.uk 0ce71ef235 Allow CPU frequency option on x86_64 for privileged guests.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 11:38:23 +00:00
cl349@firebug.cl.cam.ac.uk 3bd384cfd9 Don't define ARCH_APICTIMER_STOPS_ON_C3.
Protect the calls to the switch_APIC_timer_to_ipi and
switch_ipi_to_APIC_timer functions since we don't implement
smp_send_timer_broadcast_ipi().

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 11:20:42 +00:00
cl349@firebug.cl.cam.ac.uk 2adc93e80c Add include/asm-{i386,x86_64}/apic.h to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-20 10:26:39 +00:00
kaf24@firebug.cl.cam.ac.uk 5116432d41 Fix get_mfn_from_gpfn_foreign for HVM guests.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-02-19 09:06:44 +01:00
kaf24@firebug.cl.cam.ac.uk 06c843b557 Missing file from previous changeset. 2006-02-18 11:56:51 +01:00
kaf24@firebug.cl.cam.ac.uk 315c3fa6a2 Enable x86_32 PAE unmodified guests on 64-bit Xen when the hvm feature
is present. We tested only Linux at this point, and we'll improve the
functionality as we test other guests.

The SVM needs the equivalent changes to the vmc.c to get this
functionality working, but this patch does not break the build.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-18 11:56:13 +01:00
kaf24@firebug.cl.cam.ac.uk 1aca85cf41 Include an extra header file in xenbus.h. Fixes ia64 build.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-18 11:41:42 +01:00
kaf24@firebug.cl.cam.ac.uk ce6ffe2a14 Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-18 01:05:05 +01:00
kaf24@firebug.cl.cam.ac.uk e75e463bf5 Svm patch to remove unneeded update_pagetables().
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:02:19 +01:00
kaf24@firebug.cl.cam.ac.uk 07a27576b1 Svm patch to fix asid logic on multicore.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:01:52 +01:00
kaf24@firebug.cl.cam.ac.uk fa9ecc30bf Svm patch to cleanup the injection logic and consolidate into one function.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:01:31 +01:00
emellor@leeni.uk.xensource.com dd3606b160 Attached patch updates the xm man page for the listing of
block/network/vtpm devices.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-17 23:00:05 +01:00
kaf24@firebug.cl.cam.ac.uk 784aebe2ef Remove obsolete ccache patch from xm-test buildroot.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 21:26:49 +01:00
kaf24@firebug.cl.cam.ac.uk a50ec08122 Fix buildroot problems and bring the buildroot image up
to 15feb06, update to Makefile.am. The original gcc-mirror patch is
removed and the buildroot configuration updated.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
2006-02-17 21:25:53 +01:00
kaf24@firebug.cl.cam.ac.uk 262e026767 Disable C1 clock ramping on AMD 8th gen CPUs.
This reverts a previous changeset that removed this code.
It is currently required for good TSC behaviour in SVM
(fully virtualised) guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 20:41:30 +01:00
emellor@leeni.uk.xensource.com 1f52e936e5 This patch displays the network-list/block-list/vtpm-list using the 'xm'
command. It supports the '--long' option.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-17 19:35:38 +01:00
kaf24@firebug.cl.cam.ac.uk 13627ba6ee Fix 64b build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 18:22:23 +01:00
kaf24@firebug.cl.cam.ac.uk 0a64e72ee7 Fix HVM MSR save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-17 16:29:24 +01:00
cl349@firebug.cl.cam.ac.uk 47421a278a Fix Read/Write CR3 emulation.
- on write, new_guest_cr3() takes an mfn not an ma
- for shadow_translate guests, apply mfn_to_gmfn/gmfn_to_mfn

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-17 11:49:11 +00:00
kaf24@firebug.cl.cam.ac.uk ae1754163b Fix a VMX FPU bug introduced in changeset 8834.
From: Edwin Zhai

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 12:28:35 +01:00
cl349@firebug.cl.cam.ac.uk 9ff4a6f68e Update the ia64 linux-2.6-xen-sparse tree to 2.6.16-rc3.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-16 23:24:47 +00:00
kaf24@firebug.cl.cam.ac.uk 9a5bf16779 Update defconfigs for PCI front/back driver config options.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 00:07:11 +01:00
kaf24@firebug.cl.cam.ac.uk da0c51ab41 Update documentation to describe new PCI front/back drivers.
Update the documentation to include the syntax of "hiding" a PCI
device from domain 0 and for specifying the assignment of a PCI device
to a driver domain. It also includes a brief section exploring some of
the security concerns that driver domains address and mentioning some
of those that remain.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:47:58 +01:00
kaf24@firebug.cl.cam.ac.uk d70271d485 Tools changes for PCI front/back drivers.
Replace the old pciif DevController class with a new one that
configures the PCI backend. A util class detects the resource usage of
the specified PCI devices and pciif interacts with Xen to permit a
driver domain to directly access those physical I/O resources.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:46:51 +01:00
kaf24@firebug.cl.cam.ac.uk ca0e9847e8 PCI backend and frontend drivers for i386 and x86_64.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:44:41 +01:00
kaf24@firebug.cl.cam.ac.uk b41c62a012 Provide a simpler, higher-level interface for mapping in pages from another domain.
I also added a one-liner that causes xenbus_dev_(error|fatal) to output
to the kernel log buffer (and thus syslog) which was invaluable to me
while debugging (by default, error messages only appear in xenstore).

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:37:40 +01:00
kaf24@firebug.cl.cam.ac.uk 666c2a019b Fix bugs related to the virtual TPM. Also make the vTPM
manager listen on /dev/vtpm.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-16 23:00:00 +01:00
kaf24@firebug.cl.cam.ac.uk f47038ad99 Fix a dead download url for ccache when building the xm-test ramdisk.
From: Adam Wendt <adam@ipcoast.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 22:57:29 +01:00
kaf24@firebug.cl.cam.ac.uk 8a61bdcadb VTPM Tools: Fix threading bug in vtpm_manager while using NPTL. Now
supports Linux Threads and NPTL threads. Also clean up vtpm Makefile.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2006-02-16 22:39:55 +01:00
kaf24@firebug.cl.cam.ac.uk 97af5bbb77 Fix Xen builds with perfc=y and perfc_arrays=y.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Ben Thomas <ben@virtualiron.com>
2006-02-16 22:33:46 +01:00
kaf24@firebug.cl.cam.ac.uk a7e0c3b593 Sync Xen's mpspec.h with Linux 2.6.16-rc2 codebase.
Fixes building with gcc 4.1-pre, pointed out by Chris Wright.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 22:25:54 +01:00