Commit Graph
8806 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk cbed226d72 Do_softirq is invoked at the path of ia64_leave_kernel instead of
being invoking in function irq_exit, which is aligned with XEN/X86 and
avoids __enter_schedule being reentered.

Signed-off-by Anthony Xu <anthony.xu@intel.com>
2006-02-09 16:09:00 +01:00
kaf24@firebug.cl.cam.ac.uk 6d3a6af8ed Make a VTI domain boot again.
Signed-off-by Anthony Xu <anthony.xu@intel.com>
2006-02-09 16:03:17 +01:00
kaf24@firebug.cl.cam.ac.uk f0a5649694 Remove xennull_con. Use dummy_con.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-09 15:57:52 +01:00
cl349@firebug.cl.cam.ac.uk 36dd99577d Fix typos in Kconfig files.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-09 13:54:58 +00:00
kaf24@firebug.cl.cam.ac.uk 646568b23c Fix CPU hotplug.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-09 14:52:40 +01:00
kaf24@firebug.cl.cam.ac.uk 1fe5f9e97e More details on ordering and safety of the Xen timer API.
Most functions are safe to call after a timer structure
has been initialised to all zeroes, as long as they are
*never* called concurrently with init_timer().

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-09 12:17:35 +01:00
kaf24@firebug.cl.cam.ac.uk 447e708047 Fix CPU-migration of VMX domains.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-09 12:10:28 +01:00
smh22@firebug.cl.cam.ac.uk 35d92ef39d Quiet down wbinvd warning for verbose/debug builds of xen.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-02-09 11:32:17 +01:00
rread@ubuntu.eng.hq.xensource.com ebaab45e14 Fix the backward compatibility support for using 'vcpus' in the image section of the domain sexp.
Signed-off-by: Robert Read <robert@xensource.com>
2006-02-08 19:20:51 -07:00
kaf24@firebug.cl.cam.ac.uk c362c8308e Fix x86_64 CPU hotplug by paravirtualizing the play_dead() function.
Also fix the i386 play_dead() function to call idle_task_exit(),
which ensures the CPU exits while running the init_mm. Otherwise
other tasks may get stuck.

Signed-off-by: Ryan Grimm <grimm@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-09 00:27:52 +01:00
kaf24@firebug.cl.cam.ac.uk e5d704d01e The NAT checksum fixes in patches/linux-2.6.16-rc2/net-csum.patch do
not work when port numbers are modified (bug 447).
tcp_manip_pkt()/udp_manip_pkt() modify the protocol checksum to
reflect the changes to ip addresses and port numbers.  When
dev_queue_xmit() finds a message with proto_csum_blank set, it
calculates a new tcp/udp checksum that includes both the modified port
numbers and the modified protocol checksum field...  so the change to
the port numbers affects the protocol checksum twice.

This patch modifies net-csum.patch to remove the checksum mangling for
port numbers in tcp_manip_pkt()/udp_manip_pkt()

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-02-09 00:22:38 +01:00
kaf24@firebug.cl.cam.ac.uk 2251ccb98d Attached patch for svm will enable a tlb flush for each vmrun.
Setting the tbl_control flag to 1 in the vmcb, causes a complete tlb
flush on this core.  We have seen issues (blue screens) when utilizing
ASID granularity with WinxpSP1 running on cores>0.  we have found that
flushing the TLBs each vmrun alleviates winxpsp1 crashes.  We have also
sometimes seen a substantial performance improvement(!) when flushing
each vmrun, which was completely unexpected.  We are continuing to
investigate root cause, but for the moment, we would like to just flush
each vmrun. Digging around in the SPT code might be necessary here also.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-09 00:13:46 +01:00
kaf24@firebug.cl.cam.ac.uk 6472d24751 Fix Xen timer interface to allow migration of timers
among CPUs (using new migrate_timer() call). Fix the
locking protocol in light of this addition.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-08 17:27:32 +01:00
kaf24@firebug.cl.cam.ac.uk 55a07900b4 Prevent a guest from specifying its own domain id when
making a 'foreign' page mapping. It must use DOMID_SELF.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-08 17:26:20 +01:00
kaf24@firebug.cl.cam.ac.uk 8f5a16e68d Add 'dom0_max_vcpus' Xen boot parameter.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-08 17:25:14 +01:00
kaf24@firebug.cl.cam.ac.uk 3058bd4b35 Fix i386 CPU hotplug, and CPU hotplug when maxcpus= kernel boot option is used.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-08 17:24:29 +01:00
cl349@firebug.cl.cam.ac.uk addd7afd98 Add m2p translation to read_cr3 on x86_64.
From: Jan Beulich <JBeulich@novell.com>
From: Nakajima, Jun <jun.nakajima@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-08 15:58:01 +00:00
cl349@firebug.cl.cam.ac.uk 4c33e3bc04 x86-64 linux: remove dead code
Remove left-over pieces from native interrupt handling.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-08 15:45:11 +00:00
cl349@firebug.cl.cam.ac.uk 83f96ddf65 x86-64 linux: CONFIG_ACPI_BOOT doesn't exist anymore
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-08 15:43:01 +00:00
cl349@firebug.cl.cam.ac.uk c81c906ac3 linux: don't export evtchn_do_upcall()
Remove the export of evtchn_do_upcall().
Given the constraints on the use of this function (should run at least
with irqcount adjusted properly, preferrably also on irq stack), it
doesn't seem reasonable for this function to be exported.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-08 15:38:38 +00:00
cl349@firebug.cl.cam.ac.uk 5196eb3f94 x86-64 linux: properly exit idle mode from evtchn_do_upcall()
Add a call to exit_idle() when evtchn_do_upcall() calls
evtchn_device_upcall() instead of do_IRQ().

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-08 15:36:49 +00:00
cl349@firebug.cl.cam.ac.uk ba4485632d x86-64 linux: call evtchn_do_upcall on irq stack and adjust irqcount
Especially in the light of the recent no-idle-tick preparations in
native x86-64 it is important that exit_idle() has proper state
available.  For this reason, the processor's irqcount must be adjusted
within upcalls, and for consistency and similarity with native code
this call should also execute on the processor's irq stack.
At once the patch slightly simplifies the pre-existing code by copying
%rdi into %rsp instead of adding 8 to %rsp, and by using %rdi instead
of %rsp (avoiding a needless resource dependency) for storing the event
mask.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-08 15:31:38 +00:00
cl349@firebug.cl.cam.ac.uk aaf0872464 Use /dev/kmem to map dom0 xenstore page instead of abusing the foreign mapping interface.
Change /proc/xen/xsd_mfn to /proc/xen/xsd_kva containing the kernel
virtual address of the dom0 xenstore page.  Update xenstored to use
/proc/xen/xsd_kva.

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-08 12:03:52 +00:00
kaf24@firebug.cl.cam.ac.uk 5ceb0a4532 Rationalise initialisation of cpu_possible_map.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-08 11:10:52 +01:00
kaf24@firebug.cl.cam.ac.uk 74bcc224ed /sbin/udev no longer exists in upstream udev, so use udevinfo for
version info.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-02-08 00:30:50 +01:00
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