]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/log
legacy/linux-2.6.18-xen.git
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Tue, 20 Nov 2007 18:53:03 +0000 (11:53 -0700)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoClean up gnttab interface and allow to grant iomem page access with
Keir Fraser [Tue, 20 Nov 2007 17:30:31 +0000 (17:30 +0000)]
Clean up gnttab interface and allow to grant iomem page access with
arbitrary cache attributes (x86 only).
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years ago[IA64] Sync public headers
Alex Williamson [Tue, 20 Nov 2007 16:33:53 +0000 (09:33 -0700)]
[IA64] Sync public headers

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agopvfb: PVFB frontend can send bogus screen updates
Keir Fraser [Fri, 16 Nov 2007 16:55:46 +0000 (16:55 +0000)]
pvfb: PVFB frontend can send bogus screen updates

The PVFB frontend can get confused and send a screen update to the
backend when the screen is actually clean.  Such an update asks for
the impossible rectangle (x1, x2, y1, y2) = (INT_MAX, 0, INT_MAX, 0).
Fix by setting the dirty flag in the obvious place: when the dirty
rectangle is grown.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
17 years agocpufreq: Fix the ondemand driver for Xen. No 64-bit division allowed
Keir Fraser [Sat, 10 Nov 2007 10:18:28 +0000 (10:18 +0000)]
cpufreq: Fix the ondemand driver for Xen. No 64-bit division allowed
in a 32-bit kernel except in special circumstances.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoblkback: Sanity-check nr_segments parameter.
Keir Fraser [Thu, 8 Nov 2007 18:26:08 +0000 (18:26 +0000)]
blkback: Sanity-check nr_segments parameter.
From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
17 years ago[IA64] Sync arch-ia64.h with Xen
Alex Williamson [Wed, 7 Nov 2007 22:19:39 +0000 (15:19 -0700)]
[IA64] Sync arch-ia64.h with Xen

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Re-add parens lost when paravirtualized
Alex Williamson [Tue, 6 Nov 2007 21:11:43 +0000 (14:11 -0700)]
[IA64] Re-add parens lost when paravirtualized

Changeset a08261650b8a lost a set of parens for likely:
-       if (likely((pci_addr & ~to_pci_dev(dev)->dma_mask) == 0)) {
+       if (likely(pci_addr & ~to_pci_dev(dev)->dma_mask) == 0 &&
+                  !range_straddles_page_boundary(addr, size)) {

These could go back around the original test or surrouding both.
To facilitate the fast path, I think it makes sense to include both.

Signed-off-by: Aron Griffis <aron@hp.com>
17 years agonetback accel: locking bug fix
Keir Fraser [Mon, 5 Nov 2007 15:02:50 +0000 (15:02 +0000)]
netback accel: locking bug fix

There was a call to xenbus_read() while a spinlock was held, and as
xenbus_read() can block this was clearly wrong. The spinlock is
replaced by a mutex.

Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agocpufreq: Linux support for the architectural pstate driver
Keir Fraser [Mon, 5 Nov 2007 10:42:26 +0000 (10:42 +0000)]
cpufreq: Linux support for the architectural pstate driver

With the third generation Opteron parts, AMD switched to an
architecturally defined interface for PowerNow! that uses
different MSRs than previous versions.

This patch brings the PowerNow! driver up to match the mainline
Linux driver and provide support for all AMD parts that use
or will use the architectural pstate interface.

It also removes a WARN_ON statement in kernel/cpu.c that
highlights a cpu hotplug locking issue in the ondemand cpufreq
governor.  It is only a warning message and the scope of
the changes to properly surpress it is a bit large to add to
the Xen 2.6.18.8 kernel.  I will backport them if people
think that's a better idea.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agocpufreq: minor clean-ups for ondemand governor on Xen.
Keir Fraser [Mon, 5 Nov 2007 10:40:31 +0000 (10:40 +0000)]
cpufreq: minor clean-ups for ondemand governor on Xen.

The cpufreq ondemand governor patch for Xen included some out
of order code and some test code; re-order the code to assign
a variable before passing it to a function and remove the
test code.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Thu, 1 Nov 2007 15:07:45 +0000 (09:07 -0600)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoPV-on-HVM: xencomm - compilation fix for old Linux kernels.
Keir Fraser [Thu, 1 Nov 2007 09:35:35 +0000 (09:35 +0000)]
PV-on-HVM: xencomm - compilation fix for old Linux kernels.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
17 years agoQuieten down messages about blkfront barriers being enabled/disabled.
Ian Campbell [Wed, 31 Oct 2007 14:00:12 +0000 (14:00 +0000)]
Quieten down messages about blkfront barriers being enabled/disabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agonetfront: arp code needs CONFIG_INET.
Keir Fraser [Wed, 31 Oct 2007 09:42:20 +0000 (09:42 +0000)]
netfront: arp code needs CONFIG_INET.
Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agoAdd boot parameter 'pci-mem-align' to page-align PCI memory regions.
Keir Fraser [Wed, 31 Oct 2007 09:21:37 +0000 (09:21 +0000)]
Add boot parameter 'pci-mem-align' to page-align PCI memory regions.

In PCI pass-through the mmio resources are mapped/translated from pfns
to mfns (page size), so mmio resources should be at least
page-aligned.

Signed-off-by: Barak Fargoun <barak@neocleus.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Ignore XEN_DOMCTL_pin_mem_cacheattr
Alex Williamson [Tue, 30 Oct 2007 22:44:52 +0000 (16:44 -0600)]
[IA64] Ignore XEN_DOMCTL_pin_mem_cacheattr

x86 specific domctl, ignore so we don't print an error.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Tue, 30 Oct 2007 21:38:11 +0000 (15:38 -0600)]
merge with linux-2.6.18-xen.hg (staging)

17 years ago[IA64] Sync public headers
Alex Williamson [Tue, 30 Oct 2007 19:42:54 +0000 (13:42 -0600)]
[IA64] Sync public headers

For NITRS/NDTRS patch

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agonetfront accel: Bump NETFRONT_ACCEL_VERSION due to API changes
Keir Fraser [Tue, 30 Oct 2007 17:35:21 +0000 (17:35 +0000)]
netfront accel: Bump NETFRONT_ACCEL_VERSION due to API changes
Signed-off-by <kmansley@solarflare.com>

17 years agonetfront accel: simplify locking
Keir Fraser [Tue, 30 Oct 2007 17:34:53 +0000 (17:34 +0000)]
netfront accel: simplify locking
Signed-off-by <kmansley@solarflare.com>

17 years agonetfront accel: cleanup accelerators list on netfront unload
Keir Fraser [Tue, 30 Oct 2007 17:34:26 +0000 (17:34 +0000)]
netfront accel: cleanup accelerators list on netfront unload
Signed-off-by <kmansley@solarflare.com>

17 years agonetfront accel: rename check_busy acceleration callback to check_ready
Keir Fraser [Tue, 30 Oct 2007 17:33:49 +0000 (17:33 +0000)]
netfront accel: rename check_busy acceleration callback to check_ready
Signed-off-by <kmansley@solarflare.com>

17 years agonetfront accel: Ensure hooks set if accelerator loads before first
Keir Fraser [Tue, 30 Oct 2007 17:32:56 +0000 (17:32 +0000)]
netfront accel: Ensure hooks set if accelerator loads before first
network interface.
Signed-off-by <kmansley@solarflare.com>

17 years agonetfront accel: Remove backend changed accelerator hook
Keir Fraser [Tue, 30 Oct 2007 17:32:02 +0000 (17:32 +0000)]
netfront accel: Remove backend changed accelerator hook
Signed-off-by <kmansley@solarflare.com>

17 years agonetfront accel: Use remove and probe hooks rather than extra suspend
Keir Fraser [Tue, 30 Oct 2007 17:31:17 +0000 (17:31 +0000)]
netfront accel: Use remove and probe hooks rather than extra suspend
and resume hooks for acceleration.
Signed-off-by <kmansley@solarflare.com>

17 years agonetfront accel: Get network stats from accelerator plugin
Keir Fraser [Tue, 30 Oct 2007 17:29:55 +0000 (17:29 +0000)]
netfront accel: Get network stats from accelerator plugin
Signed-off-by <kmansley@solarflare.com>

17 years agocpufreq: Xen support for the ondemand governor in Linux dom0
Keir Fraser [Mon, 29 Oct 2007 17:43:33 +0000 (17:43 +0000)]
cpufreq: Xen support for the ondemand governor in Linux dom0

Modify the cpufreq ondemand governor so that it can get idle and
total nsecs from the Xen hypervisor. Xen uses nsecs to measure
idle time, while Linux uses ticks.  Other than accounting for
that difference, use the same algorithm to calculate idle time.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agoSync Xen public headers.
Keir Fraser [Mon, 29 Oct 2007 17:42:54 +0000 (17:42 +0000)]
Sync Xen public headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMake xenstore notifier blocking rather than atomic.
Keir Fraser [Fri, 26 Oct 2007 16:17:41 +0000 (17:17 +0100)]
Make xenstore notifier blocking rather than atomic.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux: panic/shutdown handling adjustments
Keir Fraser [Thu, 25 Oct 2007 15:15:18 +0000 (16:15 +0100)]
linux: panic/shutdown handling adjustments

Prevent interrupts (and hence possibly scheduler operations) from
occuring on (against) a CPU after removing it from cpu_online_map
during panic/shutdown.

(Background: I found it quite annoying to see scheduler related
badness or BUG messages after a panic, eventually even leading to
important information scrolling off the screen.)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux: revert arch_free_page() change
Keir Fraser [Thu, 25 Oct 2007 15:10:19 +0000 (16:10 +0100)]
linux: revert arch_free_page() change

Since mm/page_alloc.c needs to be changed in two places anyway, the
same effect can (now) be achieved with less modifications elsewhere.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux: more users of __pte_val/__p[mug]d_val
Keir Fraser [Thu, 25 Oct 2007 15:07:39 +0000 (16:07 +0100)]
linux: more users of __pte_val/__p[mug]d_val

Use __pXX_val() instead of pXX_val() when only flags are accessed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: fix up time-xen.c
Keir Fraser [Thu, 25 Oct 2007 14:59:40 +0000 (15:59 +0100)]
linux/x86: fix up time-xen.c

Changeset 143 removed the uses of timer_suspend/timer_resume, but not
the implementations. It also introduced an incompatible pointer
assignment.

Also replace an #if checking a CONFIG_ variable by #ifdef.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux: Fix CONFIG_XEN_BLKDEV_TAP=m
Keir Fraser [Thu, 25 Oct 2007 14:56:17 +0000 (15:56 +0100)]
linux: Fix CONFIG_XEN_BLKDEV_TAP=m
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoSync Xen sysctl/domctl headers.
Keir Fraser [Thu, 25 Oct 2007 10:38:58 +0000 (11:38 +0100)]
Sync Xen sysctl/domctl headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolinux/x86: use sysenter/syscall for 32-bit apps on 64-bit Xen
Keir Fraser [Wed, 24 Oct 2007 16:17:09 +0000 (17:17 +0100)]
linux/x86: use sysenter/syscall for 32-bit apps on 64-bit Xen
for both 32-bit apps on 64-bit kernels and 32bit kernels.

Also removing the needless re-enabling of events on x86-64's 64-bit
syscall path as well as it's 32-bit int80 path (the latter accompanied
by telling Xen not to disable them in the first place).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Prevent softlockup when destroying VTi domain
Alex Williamson [Tue, 23 Oct 2007 16:23:00 +0000 (10:23 -0600)]
[IA64] Prevent softlockup when destroying VTi domain

Prevent soft lock up when unmapping foreign domain pages
add cond_resched() to unmapping loop.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Mon, 22 Oct 2007 19:57:37 +0000 (13:57 -0600)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoBackport netfilter bug fix from 2.6.19.
Keir Fraser [Mon, 22 Oct 2007 13:29:07 +0000 (14:29 +0100)]
Backport netfilter bug fix from 2.6.19.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years ago[IA64] Sync headers with Xen
Alex Williamson [Sun, 21 Oct 2007 21:08:11 +0000 (15:08 -0600)]
[IA64] Sync headers with Xen

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] vti domain save/restore: linux xencomm; add hvm_set/get_context support
Alex Williamson [Sun, 21 Oct 2007 19:40:48 +0000 (13:40 -0600)]
[IA64] vti domain save/restore: linux xencomm; add hvm_set/get_context support

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Sun, 21 Oct 2007 18:10:59 +0000 (12:10 -0600)]
merge with linux-2.6.18-xen.hg

17 years agoSync with Xen public headers.
Keir Fraser [Fri, 19 Oct 2007 17:08:30 +0000 (18:08 +0100)]
Sync with Xen public headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFix ptep_get_and_clear(): atomic operation required on user ptes to
Keir Fraser [Fri, 19 Oct 2007 08:21:05 +0000 (09:21 +0100)]
Fix ptep_get_and_clear(): atomic operation required on user ptes to
get correct snapshot of A/D bits.

Error pointed out by Jan Beulich.

Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFix ptep_get_and_clear() on init_mm pte that is not mapped into
Keir Fraser [Thu, 18 Oct 2007 15:18:48 +0000 (16:18 +0100)]
Fix ptep_get_and_clear() on init_mm pte that is not mapped into
current address space.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoSync HVM save headers with Xen.
Keir Fraser [Thu, 18 Oct 2007 10:18:55 +0000 (11:18 +0100)]
Sync HVM save headers with Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] clean up for linux-defconfig(xen, xen0, xenU)
Alex Williamson [Wed, 17 Oct 2007 16:27:10 +0000 (10:27 -0600)]
[IA64] clean up for linux-defconfig(xen, xen0, xenU)

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agoxfs: eagerly remove vmap mappings to avoid upsetting Xen
Ian Campbell [Wed, 17 Oct 2007 08:24:03 +0000 (09:24 +0100)]
xfs: eagerly remove vmap mappings to avoid upsetting Xen
XFS leaves stray mappings around when it vmaps memory to make it
virtually contigious.  This upsets Xen if one of those pages is being
recycled into a pagetable, since it finds an extra writable mapping of
the page.

This patch solves the problem in a brute force way, by making XFS
always eagerly unmap its mappings.  David Chinner says this shouldn't
have any performance impact on filesystems with default block sizes;
it will only affect filesystems with large block sizes.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Acked-by: David Chinner <dgc@sgi.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: XFS masters <xfs-masters@oss.sgi.com>
Cc: Stable kernel <stable@kernel.org>
Cc: Morten =?utf-8?q?B=C3=B8geskov?= <xen-users@morten.bogeskov.dk>
Cc: Mark Williamson <mark.williamson@cl.cam.ac.uk>
---
 fs/xfs/linux-2.6/xfs_buf.c |   13 +++++++++++++
 1 file changed, 13 insertions(+)

===================================================================

17 years agoFix default configs for x86/32 and x86/64.
Keir Fraser [Tue, 16 Oct 2007 08:34:20 +0000 (09:34 +0100)]
Fix default configs for x86/32 and x86/64.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years ago[IA64] Fix linux restore. It should reset opt feature.
Alex Williamson [Mon, 15 Oct 2007 17:45:42 +0000 (11:45 -0600)]
[IA64] Fix linux restore.  It should reset opt feature.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoClean up linux-defconfig_xen_x86_32 (make oldconfig).
Keir Fraser [Mon, 15 Oct 2007 13:39:56 +0000 (14:39 +0100)]
Clean up linux-defconfig_xen_x86_32 (make oldconfig).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agoRemove another bit of Makefile.xen cruft.
Ian Campbell [Mon, 15 Oct 2007 13:25:17 +0000 (14:25 +0100)]
Remove another bit of Makefile.xen cruft.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoRemove a last stray reference to scripts/Makefile.xen
Ian Campbell [Mon, 15 Oct 2007 12:27:56 +0000 (13:27 +0100)]
Remove a last stray reference to scripts/Makefile.xen

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoRemove script/Makefile.xen. Requested by Jan Beulich since it is unused.
Ian Campbell [Mon, 15 Oct 2007 10:18:04 +0000 (11:18 +0100)]
Remove script/Makefile.xen. Requested by Jan Beulich since it is unused.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years ago[IA64] Updated dom0_init_screen_info() params.
Keir Fraser [Sat, 13 Oct 2007 07:40:34 +0000 (08:40 +0100)]
[IA64] Updated dom0_init_screen_info() params.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Use xsm_op instead of acm_op.
Keir Fraser [Sat, 13 Oct 2007 07:40:08 +0000 (08:40 +0100)]
[IA64] Use xsm_op instead of acm_op.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] xencomm: add resumedomain support.
Alex Williamson [Fri, 12 Oct 2007 20:21:34 +0000 (14:21 -0600)]
[IA64] xencomm: add resumedomain support.

xcom_privcmd.c: add XEN_DOMCTL_resumedomain support domain save error
path issue resumedomain hypercall so that it is necessary to support.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Minor cleanup of hypervisor.h to removed one #ifdef.
Alex Williamson [Fri, 12 Oct 2007 20:19:04 +0000 (14:19 -0600)]
[IA64] Minor cleanup of hypervisor.h to removed one #ifdef.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agolinux/x86: retrieve VESA capabilities in dom0
Keir Fraser [Fri, 12 Oct 2007 11:08:17 +0000 (12:08 +0100)]
linux/x86: retrieve VESA capabilities in dom0
Also, move some more common code to dom0_init_screen_info().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoSync Xen public headers.
Keir Fraser [Fri, 12 Oct 2007 11:07:32 +0000 (12:07 +0100)]
Sync Xen public headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoi386: Fix build warning.
Keir Fraser [Thu, 11 Oct 2007 15:03:24 +0000 (16:03 +0100)]
i386: Fix build warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoi386: Fix xen_l1_entry_update() for highptes.
Keir Fraser [Thu, 11 Oct 2007 15:02:16 +0000 (16:02 +0100)]
i386: Fix xen_l1_entry_update() for highptes.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoCheck that awk supports 'gensub' command.
Keir Fraser [Wed, 10 Oct 2007 10:32:15 +0000 (11:32 +0100)]
Check that awk supports 'gensub' command.

The linux-2.6.18-xen.hg/scripts/Makefile.xen.awk script depends on the
GNU AWK-specific function "gensub".  If another awk is used (e.g.,
Debian installs mawk by default), the lack of gensub trickles down to
cause the -xen.c files to not be compiled.  This was time-consuming to
track.  So we should check that the awk program supports 'gensub'.

Signed-off-by: Michael Abd-El-Malek <mabdelmalek@cmu.edu>
17 years agoPV-on-HVM: Avoid undefined symbol in netfront module when building
Keir Fraser [Tue, 9 Oct 2007 11:14:39 +0000 (12:14 +0100)]
PV-on-HVM: Avoid undefined symbol in netfront module when building
against native Linux 2.6.18.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolinux/x86: batch hypercalls when pinning address spaces
Keir Fraser [Fri, 5 Oct 2007 09:51:53 +0000 (10:51 +0100)]
linux/x86: batch hypercalls when pinning address spaces
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux: allow use of split page table locks
Keir Fraser [Fri, 5 Oct 2007 09:49:06 +0000 (10:49 +0100)]
linux: allow use of split page table locks

This fixes the race condition previously experienced between
(un)pinning and vmscan.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agonetfront accelerator: Cleanup vif_state on device removal.
Keir Fraser [Wed, 3 Oct 2007 14:02:54 +0000 (15:02 +0100)]
netfront accelerator: Cleanup vif_state on device removal.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoUse module use count on accel plugin to prevent premature unload.
Keir Fraser [Wed, 3 Oct 2007 14:02:07 +0000 (15:02 +0100)]
Use module use count on accel plugin to prevent premature unload.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoAdd version number to API between netfront and accel plugin.
Keir Fraser [Wed, 3 Oct 2007 14:01:30 +0000 (15:01 +0100)]
Add version number to API between netfront and accel plugin.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoAdd version number to API between netback and accel plugin.
Keir Fraser [Wed, 3 Oct 2007 14:00:42 +0000 (15:00 +0100)]
Add version number to API between netback and accel plugin.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agonetfront/back: Configure network acceleration using ethernet device name.
Keir Fraser [Wed, 3 Oct 2007 13:58:45 +0000 (14:58 +0100)]
netfront/back: Configure network acceleration using ethernet device name.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agox86/64: Fix security vulnerability CVE-2006-5755.
Keir Fraser [Wed, 3 Oct 2007 13:53:41 +0000 (14:53 +0100)]
x86/64: Fix security vulnerability CVE-2006-5755.

Properly save/restore EFLAGS on context switch, to avoid leakage of NT
flag causing crash on IRET.

This is a port of the upstream patch to Xen-specific source files.

Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMerge with ia64 tree.
Keir Fraser [Wed, 3 Oct 2007 13:18:01 +0000 (14:18 +0100)]
Merge with ia64 tree.

17 years agoApply patch for 2.6.18.8.
Ian Campbell [Wed, 3 Oct 2007 09:00:44 +0000 (10:00 +0100)]
Apply patch for 2.6.18.8.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Tue, 2 Oct 2007 17:32:27 +0000 (11:32 -0600)]
merge with linux-2.6.18-xen.hg (staging)

17 years agox86/64: Fix security vulnerability CVE-2007-4573.
Keir Fraser [Tue, 2 Oct 2007 08:52:15 +0000 (09:52 +0100)]
x86/64: Fix security vulnerability CVE-2007-4573.

Zero-extend all registers after ptrace in 32-bit entry path. Actually
only needed for %rax (which indexes into syscall table).

This is a backport of the upstream Linux patch.

Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] kexec/kdump: call xen_machine_kexec_setup_resources after init_bootmem
Alex Williamson [Fri, 28 Sep 2007 16:34:06 +0000 (10:34 -0600)]
[IA64] kexec/kdump: call xen_machine_kexec_setup_resources after init_bootmem

Early on in find_memory(), reserve_memory() is called,
which in turn calls xen_machine_kexec_setup_resources()
and in turn alloc_bootmem_low().

However, before alloc_bootmem_low() can be called,
init_bootmem() needs to be called.

To resolve this problem, the call to xen_machine_kexec_setup_resources()
is moved to just after the call to init_bootmem() in alloc_bootmem_low().

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Purge the VHPT entry in the TLB on kexec
Alex Williamson [Fri, 28 Sep 2007 16:32:36 +0000 (10:32 -0600)]
[IA64] Kexec: Purge the VHPT entry in the TLB on kexec

Should relocate_new_kernel(), which is run by the hypervisor, purge the
VHPT on XEN like ia64_do_purge_tlb() (code in the hypervisor) does?

There is a hypervisor portion of this patch which modifies
machine_kexec() to pass the appropriate extra argument to
ia64_do_purge_tlb().

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kdump: Add /proc/iomem_machine
Alex Williamson [Thu, 27 Sep 2007 20:49:14 +0000 (14:49 -0600)]
[IA64] Kdump: Add /proc/iomem_machine

Add /proc/iomem_machine. This is basically the iomem regions
as the hypervisor sees them. As opposed to Linux's /proc/iomem
which is provides a somewhat limited and distorted view of the world.
Or in other words, /proc/iomem is for pseudo-phical memory and
/proc/iomem_machine is for machine memory.

This is needed for kdump to work on ia64 as else it can't place
the crashkernel region correctly, nor can it map out all physical
memory to be included in the vmcore file in the second kernel.

There is an acompanying patch to kexec-tools to allow it
to use /proc/iomem_machine instead of /proc/iomem as appropriate.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kdump: Use the machine address for the boot params region
Alex Williamson [Thu, 27 Sep 2007 20:37:22 +0000 (14:37 -0600)]
[IA64] Kdump: Use the machine address for the boot params region

The boot params region needs to be placed using the machine
address not the physical address. This is because it represents
an area of memory that is reserved in the hypervisor and it is
critical that the same area of machine memory is not trampled
over during kexec.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: machine addresss macros
Alex Williamson [Thu, 27 Sep 2007 20:34:42 +0000 (14:34 -0600)]
[IA64] Kexec: machine addresss macros

Define IA64-specific macros for kexec to find the machine address
of a virtual address etc... This abstraction was hammered out
during the merge of the x86 code.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Update default config to enable kexec
Alex Williamson [Thu, 27 Sep 2007 20:32:08 +0000 (14:32 -0600)]
[IA64] Update default config to enable kexec

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Call xen_machine_kexec_register_resources
Alex Williamson [Thu, 27 Sep 2007 20:29:00 +0000 (14:29 -0600)]
[IA64] Kexec: Call xen_machine_kexec_register_resources

For kexec on xen xen_machine_kexec_register_resources() needs
to be called at boot time.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] backport Kexec/Kdump: honour non-zero crashkernel offset
Alex Williamson [Thu, 27 Sep 2007 20:26:00 +0000 (14:26 -0600)]
[IA64] backport Kexec/Kdump: honour non-zero crashkernel offset

From: Horms <horms@verge.net.au>
From Linux upstream, commit ad1c3ba7e54fc38b119c1a7d5c98f9ffb8227fdb

There seems to be a value in both allowing the kernel to determine
the base offset of the crashkernel automatically and allowing
users's to sepcify it.

The old behaviour on ia64, which is still the current behaviour on
most architectures is for the user to always specify the address.
Recently ia64 was changed so that it is always automatically determined.

With this patch the kernel automatically determines the offset if
the supplied value is 0, otherwise it uses the value provided.

This should probably be backed by a documentation change.

Signed-Off-By: Simon Horman <horms@verge.net.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] backport CONFIG_KEXEC/CONFIG_CRASH_DUMP permutations
Alex Williamson [Thu, 27 Sep 2007 20:22:31 +0000 (14:22 -0600)]
[IA64] backport CONFIG_KEXEC/CONFIG_CRASH_DUMP permutations

From: Simon Horman <horms@verge.net.au>
Upstream Linux changeset 45a98fc622ae700eed34eb2be00743910d50dbe1

[IA64] CONFIG_KEXEC/CONFIG_CRASH_DUMP permutations

Actually, on reflection I think that there is a good case for
keeping the options separate. I am thinking particularly of people
who want a very small crashdump kernel and thus don't want to compile
in kexec.

The patch below should fix things up so that all valid combinations of
KEXEC, CRASH_DUMP and VMCORE compile cleanly - VMCORE depends on
CRASH_DUMP which is why I said valid combinations. In a nutshell
it just untangles unrelated code and switches around a few defines.

Please note that it creats a new file, arch/ia64/kernel/crash_dump.c
This is in keeping with the i386 implementation.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] Xenification of IA64 Kexec/kdump
Alex Williamson [Fri, 28 Sep 2007 15:51:31 +0000 (09:51 -0600)]
[IA64] Xenification of IA64 Kexec/kdump

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kdump: pass control page to hypervisor
Alex Williamson [Thu, 27 Sep 2007 19:47:38 +0000 (13:47 -0600)]
[IA64] Kdump: pass control page to hypervisor

On ia64 the control page needs to be passed down to the hypervisor
on kexec.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Use xen machine_kexec() and machine_shutdown()
Alex Williamson [Thu, 27 Sep 2007 19:44:28 +0000 (13:44 -0600)]
[IA64] Kexec: Use xen machine_kexec() and machine_shutdown()

machine_kexec() and machine_shutdown() are defined by xen code
rather than ia64 code when xen is in use

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Add xen_limit_pages_to_max_mfn()
Alex Williamson [Thu, 27 Sep 2007 19:42:38 +0000 (13:42 -0600)]
[IA64] Kexec: Add xen_limit_pages_to_max_mfn()

Add xen_limit_pages_to_max_mfn() in keeping with x86.
On ia64 it seems that it just needs to be a wrapper
for xen_create_contiguous_region().

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] ia64 kexec/kdump backport
Alex Williamson [Thu, 27 Sep 2007 19:40:11 +0000 (13:40 -0600)]
[IA64] ia64 kexec/kdump backport

From: Simon Horman <horms@verge.net.au>

* From Linux Upstream, commit a79561134f38de12dce14ed72138f38e55ef53fc
* Trivial backport to linux-2.6.18-xen of the following hunks
  * arch/ia64/kernel/mca.c: hunk 2
  * include/asm-ia64/machvec.h: hunks 1 & 2
  * include/asm-ia64/machvec_sn2.h: hunk 1
  * meminit.h

[IA64] IA64 Kexec/kdump

Changes and updates.

1. Remove fake rendz path and related code according to discuss with Khalid Aziz.
2. fc.i offset fix in relocate_kernel.S.
3. iospic shutdown code eoi and mask race fix from Fujitsu.
4. Warm boot hook in machine_kexec to SN SAL code from Jack Steiner.
5. Send slave to SAL slave loop patch from Jay Lan.
6. Kdump on non-recoverable MCA event patch from Jay Lan
7. Use CTL_UNNUMBERED in kdump_on_init sysctl.

Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] Initialise xen_start_info earlier in setup_arch()
Alex Williamson [Thu, 27 Sep 2007 19:33:50 +0000 (13:33 -0600)]
[IA64] Initialise xen_start_info earlier in setup_arch()

xen_start_info needs to be set before efi_init() is called on ia64
because xen_machine_kexec_setup_resources() is indirectly
called by efi_init() and it needs a working is_initial_xendomain();

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Thu, 27 Sep 2007 18:22:59 +0000 (12:22 -0600)]
merge with linux-2.6.18-xen.hg

17 years agoMake sure that the device is fully ready before allowing release.
Wim Colgate [Mon, 24 Sep 2007 23:56:50 +0000 (16:56 -0700)]
Make sure that the device is fully ready before allowing release.

Signed-off-by: Wim Colgate <wim@xensource.com>
17 years ago[IA64] Linux support for debug_op hypercall
Alex Williamson [Fri, 21 Sep 2007 18:54:11 +0000 (12:54 -0600)]
[IA64] Linux support for debug_op hypercall

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agoNotify CPU frequency changes to Xen.
Keir Fraser [Thu, 20 Sep 2007 13:17:12 +0000 (14:17 +0100)]
Notify CPU frequency changes to Xen.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoBackport of powernow-k8 cpufreq changes, required for power management
Keir Fraser [Thu, 20 Sep 2007 13:16:30 +0000 (14:16 +0100)]
Backport of powernow-k8 cpufreq changes, required for power management
on Xen.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agolinux/i386-PAE: avoid temporarily inconsistent pte's.
kfraser [Wed, 19 Sep 2007 15:26:49 +0000 (16:26 +0100)]
linux/i386-PAE: avoid temporarily inconsistent pte's.

One more of these issues (which were considered fixed): Other than on
x86-64, i386 allows set_fixmap() to replace already present mappings.
Consequently, on PAE, care must be taken to not update the high half
of a pte while the low half is still holding the old value.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoRemove arch/i386/boot-xen which was made obsolete by 211:c1f5d027adf7
Ian Campbell [Wed, 19 Sep 2007 11:06:01 +0000 (12:06 +0100)]
Remove arch/i386/boot-xen which was made obsolete by 211:c1f5d027adf7

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoThis is a backport of some code for Linux that is needed by
kfraser [Wed, 19 Sep 2007 07:55:13 +0000 (08:55 +0100)]
This is a backport of some code for Linux that is needed by
my backport of kexec to IA64 xen.
From: Simon Horman <horms@verge.net.au>

sysctl: implement CTL_UNNUMBERED

This patch takes the CTL_UNNUMBERD concept from NFS and makes it
available to all new sysctl users.

At the same time the sysctl binary interface maintenance documentation
is updated to mention and to describe what is needed to successfully
maintain the sysctl binary interface.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>