Commit Graph
8781 Commits
Author SHA1 Message Date
john.levon@sun.com a7c8d79dcf Fix pygrub to handle timeout of -1 (wait forever).
Only call use_default_colors() if it's available.

Signed-off-by: John Levon <john.levon@sun.com>
2006-02-07 20:46:13 +00:00
cl349@firebug.cl.cam.ac.uk 96b9e930ec Clean up the TPM stack a bit.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-07 20:38:44 +00:00
kaf24@firebug.cl.cam.ac.uk e808fe9ad9 Since USER_PTRS_PER_PGD depends on TASK_SIZE and thus on the current
thread, it must not be used in code that can be called in the context
switch path (otherwise the 32-bitness of the outgoing task is used
here rather then the 32-bitness of the incoming one, possibly
resulting in large parts of the page tables not getting converted to
read-only).

Signed-off-by: Jan Beulich <JBeulich@novell.com>
2006-02-07 19:16:11 +01:00
cl349@firebug.cl.cam.ac.uk 8a0cd2e31b Fix ia32 support.
From: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-07 15:24:04 +00:00
kaf24@firebug.cl.cam.ac.uk ba9adb737b Apply stricter checking to RDMSR/WRMSR emulations.
In particular, MSRs that domain0 may write to must now
be 'white listed': default policy is to ignore the write.

This will prevent SYSCALL/SYSENTER instructions from
crashign Xen, by preventing the target MSRs from being
overwritten by domain 0.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-07 15:56:39 +01:00
cl349@firebug.cl.cam.ac.uk 3fcbbc1cfe Fix x86_64 SMP support.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-07 13:57:40 +00:00
kaf24@firebug.cl.cam.ac.uk 92e6726926 Clarify dual licensing of gnttab.[ch] files in Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-07 12:59:27 +01:00
cl349@firebug.cl.cam.ac.uk b7b3756669 Fix x86_64 guest console support.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-07 11:54:09 +00:00
kaf24@firebug.cl.cam.ac.uk b24a912939 Remove the PHYSDEV_ACCESS configure option from Linux.
It saves very little space, no distro will disable it
in their unified build, and it's rather a pain to 
implement it properly.

I've left the PRIVILEGED_GUEST option for now, as it 
provides some indication of where our platform-bringup
hacks are in our Linux tree. We may wish to exclude 
those from upstream merge in the first instance.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-07 01:02:49 +01:00
kaf24@firebug.cl.cam.ac.uk 67b4c5b77e Remove CONFIG_VMX and CONFIG_SVM compile options. Support
will always be compiled into Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-06 23:33:58 +01:00
kaf24@firebug.cl.cam.ac.uk 64c4a850af Allows x86_32 PAE Xen to run VMX domains (2-level guest page
tables). To support >4GB machines, we use PAE mode for the shadow page
tables; the guests think they are using 2-level page tables.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>

This should not break SVM, however the SVM code will need some small
changes to enable support for non-pae guests on pae hosts.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-06 23:25:31 +01:00
cl349@firebug.cl.cam.ac.uk 312e4db7f8 Update ia64 to 2.6.16-rc2.
This boots dom0 and domU on an rx2600.
Revert several files that were accidentally reverted by the merge-ups
(that weren't fixed by cset 8743).  Those are included here with the
2.6.15 patch re-applied as well as changes between 2.6.15 and 2.6.16-rc2.
Specifically, these are pal.h, processor.h and system.h.
This patch also reverts changes to include/asm-ia64/hypercall.h and
hypervisor.h from cset 8742.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-06 18:02:36 +00:00
cl349@firebug.cl.cam.ac.uk 96032442f4 Fix context copy code in NMI handler.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-06 16:48:34 +00:00
kaf24@firebug.cl.cam.ac.uk e959b31874 Fix hypercall_table size in x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-06 17:04:45 +01:00
kaf24@firebug.cl.cam.ac.uk 8334e9b1d8 A few trivial cleanups from the HVM merge.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-06 16:55:41 +01:00
kaf24@firebug.cl.cam.ac.uk 695affde7f No C1-Clock Ramp disabling on AMD processors. The tiny drift
caused by the ramping changes should not cause TSCs to become
noticeably out of sync on Xen systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-06 16:51:06 +01:00
cl349@firebug.cl.cam.ac.uk 326db4216a Fix "kernel direct mapping tables" printk.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-06 15:41:26 +00:00
kaf24@firebug.cl.cam.ac.uk 23cb6e0144 Clean up -g in CFLAGS.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-06 16:32:23 +01:00
cl349@firebug.cl.cam.ac.uk 250005a558 Fill hypercall_page so that its VA space doesn't get used for code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-06 15:26:29 +00:00
kaf24@firebug.cl.cam.ac.uk 5c0fa16fb6 Temporary fix to include PTY support in domU builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-06 14:52:45 +01:00
kaf24@firebug.cl.cam.ac.uk d7e8de1b92 Update the TPM hotplug scripts to determine the reason of a
device creation (create/resume).

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-04 10:58:28 +01:00
kaf24@firebug.cl.cam.ac.uk a040fb1a94 Fix show_registers() on x86/64. Get rid of
GUEST_CONTEXT() macro and the eflags==0 hack to detect
an HVM-guest stack frame. Various cleanups and fixes.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-03 20:30:54 +01:00
cl349@firebug.cl.cam.ac.uk 2f41331f4c Fix hypercall_page location on x86_64.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-03 18:45:14 +00:00
cl349@firebug.cl.cam.ac.uk ebe6af1e31 Update patches for Linux 2.6.16-rc2.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : patches/linux-2.6.16-rc1-git4/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc2/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc1-git4/net-csum.patch => patches/linux-2.6.16-rc2/net-csum.patch
rename : patches/linux-2.6.16-rc1-git4/pmd-shared.patch => patches/linux-2.6.16-rc2/pmd-shared.patch
rename : patches/linux-2.6.16-rc1-git4/smp-alts.patch => patches/linux-2.6.16-rc2/smp-alts.patch
2006-02-03 18:24:28 +00:00
cl349@firebug.cl.cam.ac.uk 69c17613a4 Update x86_32 -xen config file for PAE builds.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-03 18:10:40 +00:00
cl349@firebug.cl.cam.ac.uk 294491e83f Update to Linux 2.6.16-rc2.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-03 17:49:27 +00:00
cl349@firebug.cl.cam.ac.uk 4396727748 Update x86_32 -xen config file for PAE builds.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-03 14:24:52 +00:00
kaf24@firebug.cl.cam.ac.uk 4d291129f8 Fix up the new non-paging direct_map shadow pagetable mode
for SVM. Rename a vmx_ function in HVM-generic code to
hvm_.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-03 12:47:38 +01:00
kaf24@firebug.cl.cam.ac.uk 60079e38bf Build the phys_to_machine_mapping array in Xen rather than
reusing the 1:1 page table built by the builder, and it also establishes
the 1:1 direct mapping at runtime a la shadow page tables. Since the
builder constructs the full 1:1 direct mapping (but <4GB), the current
implementation wastes memory but cannot support guests with >=4GB
memory (even for x64-64).

This is also required for HVM support on the PAE host. That patch
should be sent soon.

For SVM, I think the svm code needs changes. Please look at the changes
to vmx.c and vmcs.c; should be straightforward.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-02-03 12:02:30 +01:00
kaf24@firebug.cl.cam.ac.uk 49c3d24510 I have previously posted a patch with changes to the xenbus for being
able to detect the reason why a frontend is created, which can be either
due to domain creation or a restore. The attached patch now puts this
functionality into XenD and allows driver implementations in Xend to
read the state and see whether a domain is currently being resumed or
created and write this value into the xenstore for hotplug scripts to
read it. The state of a domain being resumed is set when a
XendDomainInfo object is created and reset at the end of the restore
function.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-03 11:54:05 +01:00
kaf24@firebug.cl.cam.ac.uk b7327bd081 Get ia64 working again on xen-unstable after cset 8736.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>

[
 I manually applied a failed chunk and removed hard tabs
 from the file while I was editing it.
 Signed-off-by: Keir Fraser <keir@xensource.com>
]
2006-02-03 11:51:39 +01:00
cl349@firebug.cl.cam.ac.uk 2a32352264 One more fix to the buildsystem ($^ is not $<).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-03 10:00:15 +00:00
cl349@firebug.cl.cam.ac.uk 9c3cd0101e Fix another corner case in the build system.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-03 09:54:04 +00:00
cl349@firebug.cl.cam.ac.uk 2304302edf Update ignores for .bz2 patches in top level directory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-03 09:37:34 +00:00
stekloff@elm3b216.beaverton.ibm.com d353d82ab3 Make "make disk.img" not require building the entire buildroot if initrd
already exists. Changed dependency for disk.img to "existing" and added
a line to make existing false.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-02-03 09:34:03 +00:00
cl349@firebug.cl.cam.ac.uk c8c4472c3d Converge the TPM drivers in the Xen repository
with those coming from the 2.6.15 kernel. Some files can now be
taken from 2.6.15 directly and can therefore be removed.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-03 09:31:28 +00:00
cl349@firebug.cl.cam.ac.uk 31a654dde2 Fix buildsystem.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-02 21:21:47 +00:00
cl349@firebug.cl.cam.ac.uk 6e59ff5e15 Revert ia64 changes from previous checkin.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-02 19:21:18 +00:00
cl349@firebug.cl.cam.ac.uk a8f141f465 Update to Linux 2.6.16-rc1-git4.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : patches/linux-2.6.15/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc1-git4/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.15/net-csum.patch => patches/linux-2.6.16-rc1-git4/net-csum.patch
rename : patches/linux-2.6.15/pmd-shared.patch => patches/linux-2.6.16-rc1-git4/pmd-shared.patch
rename : patches/linux-2.6.15/smp-alts.patch => patches/linux-2.6.16-rc1-git4/smp-alts.patch
2006-02-02 19:16:38 +00:00
jrb44@plym.cl.cam.ac.uk e1aded64c5 There is a known "xm console" issue related with VMX. When "serial" is
enabled in script and no once uses "xm console" to read the console, 
VMX boting will hang due to the buffer is full.
I added a "select" before "write". If it could not be written, 
unix_write will Return immediately and it will not block the VMX 
booting. With this fix, we can  make VMX's serial enable by default.

Signed-off-by: Yu Ping <ping.y.yu@intel.com>

Modified to patch xmexample.hvm. Put through xenrt on a VMX box.

Signed-off-by: James Bulpin <james@xensource.com>
2006-02-02 19:15:22 +01:00
cl349@firebug.cl.cam.ac.uk d0b7c7a509 Update patches for linux 2.6.15.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : patches/linux-2.6.14/i386-mach-io-check-nmi.patch => patches/linux-2.6.15/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.14/net-csum.patch => patches/linux-2.6.15/net-csum.patch
rename : patches/linux-2.6.14/pmd-shared.patch => patches/linux-2.6.15/pmd-shared.patch
rename : patches/linux-2.6.14/smp-alts.patch => patches/linux-2.6.15/smp-alts.patch
2006-02-02 17:16:00 +00:00
kaf24@firebug.cl.cam.ac.uk 2ec893ee83 Blacklist memory-mapped APIC-register pages in the domain0
iomem capability list.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-02 15:10:27 +01:00
kaf24@firebug.cl.cam.ac.uk 893feafa99 Add argument-checking assertions to rangeset interfaces.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-02 15:09:39 +01:00
cl349@firebug.cl.cam.ac.uk 420ed75d54 Fix and cleanup how we build i386/x86_64 swiotlb.o.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-02 13:57:18 +00:00
kaf24@firebug.cl.cam.ac.uk b2572e0698 Fix some more pfn/mfn/gmfn/gpfn inconsistencies. Fix some direct
uses of max_page variable to use the mfn_valid() predicate.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-02 12:18:28 +01:00
cl349@firebug.cl.cam.ac.uk 78ae4baf58 Updates ia64 to 2.6.15.
Booted dom0 and domU on an rx2600.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-02 10:59:20 +00:00
rread@ubuntu.eng.hq.xensource.com 108a87ab2a use alternative mirror for gcc
(oops, forgot to add the patch. -robert)

Signed off by: Sean Dague <sean@dague.net>
Signed off by: Robert Read <robert@xensource.com>
2006-02-01 14:27:35 -07:00
Ian.Campbell@xensource.com 47168bc917 merge. 2006-02-01 20:15:08 +00:00
Ian.Campbell@xensource.com 03d6c77375 Add new feature XENFEAT_auto_translated_physmap.
This feature causes the guest OS to ignore the P2M and M2P tables and
to assume that P==M.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
2006-02-01 20:12:51 +00:00
rread@ubuntu.eng.hq.xensource.com dcabb12934 use alternative mirror for gcc
make clean doesn't wipe out patches directory anymore, which confuses hg less
multiple patches apply correctly

Signed off by: Sean Dague <sean@dague.net>
2006-02-01 13:11:21 -07:00