]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/log
legacy/linux-2.6.18-xen.git
17 years agoxen smpboot: Fix a merge oversight.
Keir Fraser [Thu, 6 Dec 2007 15:44:05 +0000 (15:44 +0000)]
xen smpboot: Fix a merge oversight.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agor8169: Upgrade driver to recognise more modern 8169-based chipsets.
Keir Fraser [Thu, 6 Dec 2007 15:27:06 +0000 (15:27 +0000)]
r8169: Upgrade driver to recognise more modern 8169-based chipsets.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoChanged vm_normal_page to return NULL when presented with a VMA marked
Keir Fraser [Thu, 6 Dec 2007 10:43:24 +0000 (10:43 +0000)]
Changed vm_normal_page to return NULL when presented with a VMA marked
as being VM_FOREIGN.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
17 years agonetfront accel: spinlock flags are 'unsigned long'.
Keir Fraser [Wed, 5 Dec 2007 10:43:46 +0000 (10:43 +0000)]
netfront accel: spinlock flags are 'unsigned long'.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
17 years ago[cpufreq] Correctly calculate load
Keir Fraser [Tue, 4 Dec 2007 11:54:22 +0000 (11:54 +0000)]
[cpufreq] Correctly calculate load

The idle time of the system should be less than the wall time
of the system.  The initial implementation incorrectly set
idle time to wall time when idle time was less than wall time,
instead of when idle time was more than wall time.  Correct
this error.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agoRemove CONFIG_INPUT_EVBUG from xen_x86_32 config.
Keir Fraser [Tue, 4 Dec 2007 11:20:30 +0000 (11:20 +0000)]
Remove CONFIG_INPUT_EVBUG from xen_x86_32 config.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
17 years agoMerge with ia64.
Keir Fraser [Tue, 4 Dec 2007 11:06:57 +0000 (11:06 +0000)]
Merge with ia64.

17 years ago[powernow] Fix Linux headers for architectural pstate driver
Keir Fraser [Tue, 4 Dec 2007 10:43:44 +0000 (10:43 +0000)]
[powernow] Fix Linux headers for architectural pstate driver

For some reason, the header changes necessary to support the
architectural pstate driver are not in linux-2.6.18-xen.hg.
Fix this oversight so the PowerNow! driver can compile.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agolinux/i386: remove include/asm-i386/mach-xen/asm/param.h
Keir Fraser [Tue, 4 Dec 2007 10:14:51 +0000 (10:14 +0000)]
linux/i386: remove include/asm-i386/mach-xen/asm/param.h

.. as it's identical to the native file.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoFix access to xenstore hangs after hot-remove CPU.
Keir Fraser [Tue, 4 Dec 2007 10:02:30 +0000 (10:02 +0000)]
Fix access to xenstore hangs after hot-remove CPU.

CPU hotplug doesn't support user-space event channels.

$ echo 0 > /sys/devices/system/cpu/cpu1/online
$ xenstore-ls
... hangs up ...

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years agoMake last processed event channel a per-cpu variable.
Ian Campbell [Mon, 3 Dec 2007 08:50:12 +0000 (08:50 +0000)]
Make last processed event channel a per-cpu variable.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoProcess event channels notifications in round-robin order.
Ian Campbell [Fri, 30 Nov 2007 14:35:31 +0000 (14:35 +0000)]
Process event channels notifications in round-robin order.

Avoids fairness issue resulting from domain 0 processing lowest
numbered event channel first.

Bugzilla #1115 "Event channel port scanning unfair".

From: Scott Rixner <rixner@rice.edu>
From: Diego Ongaro <dieo.ongaro@rice.edu>
From: Alan L. Cox <alc@rice.edu>
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years ago[IA64] Sync arch-ia64.h for guest_os_type changes
Alex Williamson [Thu, 29 Nov 2007 19:20:05 +0000 (12:20 -0700)]
[IA64] Sync arch-ia64.h for guest_os_type changes

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] xencomm support for XEN_DOMCTL_set_opt_feature
Alex Williamson [Thu, 29 Nov 2007 19:03:24 +0000 (12:03 -0700)]
[IA64] xencomm support for XEN_DOMCTL_set_opt_feature

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Sync domctl.h for XEN_DOMCTL_set_opt_feature
Alex Williamson [Thu, 29 Nov 2007 19:00:07 +0000 (12:00 -0700)]
[IA64] Sync domctl.h for XEN_DOMCTL_set_opt_feature

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Sync arch-ia64.h
Alex Williamson [Wed, 28 Nov 2007 19:41:10 +0000 (12:41 -0700)]
[IA64] Sync arch-ia64.h

VGCF_SET_CR_IRR added

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Extract debug_op.h from arch-ia64.h
Alex Williamson [Mon, 26 Nov 2007 17:05:43 +0000 (10:05 -0700)]
[IA64] Extract debug_op.h from arch-ia64.h

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agoNetfront accelerator bug fix
Keir Fraser [Fri, 23 Nov 2007 16:26:56 +0000 (16:26 +0000)]
Netfront accelerator bug fix

In testing Xen for the upcoming 3.2.0 release, we've found a bug in
the netfront accelerator support where if an accelerator was removed
before it had properly initialised it wasn't handled correctly.

Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agolinux/x86: don't build cstate.o and wakeup.o
Keir Fraser [Thu, 22 Nov 2007 14:28:31 +0000 (14:28 +0000)]
linux/x86: don't build cstate.o and wakeup.o

The code in arch/i386/kernel/acpi/cstate.c is (at best) irrelevant for
VMs. The code in arch/{i386,x86_64}/kernel/acpi/wakeup.S is even
dangerous; while not being actively used, its inadvertant use would go
unnoticed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: Remove useless wrappers
Keir Fraser [Thu, 22 Nov 2007 14:22:44 +0000 (14:22 +0000)]
linux/x86: Remove useless wrappers
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/i386: Use normal set_pmd() in vmalloc_sync_one() on modern Xen
Keir Fraser [Thu, 22 Nov 2007 14:22:05 +0000 (14:22 +0000)]
linux/i386: Use normal set_pmd() in vmalloc_sync_one() on modern Xen
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agonetback: remove an unused variable
Keir Fraser [Thu, 22 Nov 2007 14:20:07 +0000 (14:20 +0000)]
netback: remove an unused variable
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86-64: Remove dead code.
Keir Fraser [Thu, 22 Nov 2007 14:19:10 +0000 (14:19 +0000)]
linux/x86-64: Remove dead code.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoFix arch/i386/power/Makefile.
Keir Fraser [Thu, 22 Nov 2007 14:18:20 +0000 (14:18 +0000)]
Fix arch/i386/power/Makefile.

For being able to build native with CONFIG_APM=3Dm, this small
adjustment is needed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Wed, 21 Nov 2007 16:12:39 +0000 (09:12 -0700)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoOn pirq enable/disable we fully unregister/reregister with Xen. This
Keir Fraser [Wed, 21 Nov 2007 09:41:11 +0000 (09:41 +0000)]
On pirq enable/disable we fully unregister/reregister with Xen. This
causes the underlying IRQ to be properly masked/unmasked, thus
avoiding deadlock scenarios if the IRQ is not EOIed.
Based on a patch by Chris Lalancette <clalance@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
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.