]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/log
legacy/linux-2.6.18-xen.git
17 years agolinux: prevent non-Xen modules from loading in Xen kernel
Keir Fraser [Fri, 18 Jan 2008 16:18:12 +0000 (16:18 +0000)]
linux: prevent non-Xen modules from loading in Xen kernel
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: do_set_trap_table()'s argument can be const
Keir Fraser [Fri, 18 Jan 2008 16:14:16 +0000 (16:14 +0000)]
xen: do_set_trap_table()'s argument can be const
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: Constify pointer argument of HYPERVISOR_callback_op
Keir Fraser [Fri, 18 Jan 2008 16:13:24 +0000 (16:13 +0000)]
xen: Constify pointer argument of HYPERVISOR_callback_op
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoSync with Xen public headers.
Keir Fraser [Fri, 18 Jan 2008 16:12:45 +0000 (16:12 +0000)]
Sync with Xen public headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agolinux: another little bit of Kconfig cleanup
Keir Fraser [Fri, 18 Jan 2008 15:30:47 +0000 (15:30 +0000)]
linux: another little bit of Kconfig cleanup

Remove useless things and make the <arch>_XEN/XEN option interaction
for x86 the same as it is for ia64/powerpc (which is more
appropriate).

As usual, written and tested on 2.6.24-rc7 and made apply to the
2.6.18 tree without further testing.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoSupport pselect/ppoll in ia32entry-xen.S.
Keir Fraser [Fri, 18 Jan 2008 13:37:53 +0000 (13:37 +0000)]
Support pselect/ppoll in ia32entry-xen.S.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agonetback: On transition to XenbusStateClosing we should release
Keir Fraser [Thu, 17 Jan 2008 15:46:29 +0000 (15:46 +0000)]
netback: On transition to XenbusStateClosing we should release
frontend resources.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Check for XENFEAT_mmu_pt_update_preserve_ad before attempting to
Keir Fraser [Wed, 16 Jan 2008 13:27:22 +0000 (13:27 +0000)]
x86: Check for XENFEAT_mmu_pt_update_preserve_ad before attempting to
use new mmu_update() hypercall. Older Xen versions are noisy if the
unsupported hypercall is attempted.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoSync Xen public headers.
Keir Fraser [Tue, 15 Jan 2008 15:59:31 +0000 (15:59 +0000)]
Sync Xen public headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxen, x86: Allow mprotect() pte updates to be batched using new Xen
Keir Fraser [Tue, 15 Jan 2008 14:35:41 +0000 (14:35 +0000)]
xen, x86: Allow mprotect() pte updates to be batched using new Xen
batched interface which preserves access/dirty pte flags.
Signed-off-by: Bruce Rogers <brogers@novell.com>
17 years agoAvoid allocations causing swap activity on the resume path by allowing
Ian Campbell [Mon, 14 Jan 2008 15:52:23 +0000 (15:52 +0000)]
Avoid allocations causing swap activity on the resume path by allowing
such allocations to access the emergency pools otherwise a
save/restore/migration of a guest which is low on memory can
deadlock.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
17 years agox86_64: Add ppoll/pselect syscalls (from upstream Linux)
Keir Fraser [Wed, 9 Jan 2008 22:12:32 +0000 (22:12 +0000)]
x86_64: Add ppoll/pselect syscalls (from upstream Linux)

Needed TIF_RESTORE_SIGMASK first

Signed-off-by: Andi Kleen <ak@suse.de>
17 years agox86_64: Add TIF_RESTORE_SIGMASK (from upstream Linux)
Keir Fraser [Wed, 9 Jan 2008 22:12:04 +0000 (22:12 +0000)]
x86_64: Add TIF_RESTORE_SIGMASK (from upstream Linux)

We need TIF_RESTORE_SIGMASK in order to support ppoll() and pselect()
system calls. This patch originally came from Andi, and was based
heavily on David Howells' implementation of same on i386. I fixed a
typo which was causing do_signal() to use the wrong signal mask.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andi Kleen <ak@suse.de>
17 years agoxen vtpm: Initialize the comms ring with zeroes.
Keir Fraser [Tue, 8 Jan 2008 09:55:29 +0000 (09:55 +0000)]
xen vtpm: Initialize the comms ring with zeroes.

Initialize the ring with zeroes on the backend side and on the
frontend set the 'unused' member to zeroes.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years ago[IA64] Sync arch-ia64.h
Alex Williamson [Sun, 30 Dec 2007 20:07:44 +0000 (13:07 -0700)]
[IA64] Sync arch-ia64.h

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agonetfront accel: Over-eager locking meant kmalloc at GFP_KERNEL with irqs disabled
Keir Fraser [Thu, 20 Dec 2007 16:58:14 +0000 (16:58 +0000)]
netfront accel: Over-eager locking meant kmalloc at GFP_KERNEL with irqs disabled
Signed-off-by Kieran Mansley <kmansley@solarflare.com>

17 years agoFix UP unprivileged x86/64 build.
Keir Fraser [Thu, 20 Dec 2007 11:05:16 +0000 (11:05 +0000)]
Fix UP unprivileged x86/64 build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agonet accel: Allow network accelerators to deal with hot-plug/unplug on
Keir Fraser [Wed, 19 Dec 2007 14:47:41 +0000 (14:47 +0000)]
net accel: Allow network accelerators to deal with hot-plug/unplug on
physical devices. Add watch for acceleration configuration in frontend.

Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years ago[IA64] Update buildconfigs: include IP_PNP & ROOT_NFS
Alex Williamson [Mon, 17 Dec 2007 20:41:07 +0000 (13:41 -0700)]
[IA64] Update buildconfigs: include IP_PNP & ROOT_NFS

Necessary for guests running NFS root.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] barrier in xen_rsm_i
Alex Williamson [Mon, 17 Dec 2007 16:06:55 +0000 (09:06 -0700)]
[IA64] barrier in xen_rsm_i

Force rsm to be visible, preventing possible looping with
virtual psr.i masked.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
17 years agocpufreq: add bounds checking to cpufreq_stats.c from upstream
Keir Fraser [Fri, 14 Dec 2007 11:28:40 +0000 (11:28 +0000)]
cpufreq: add bounds checking to cpufreq_stats.c from upstream

The cpufreq_stats.c will attempt to use an error return value as
an index to an array, causing the kernel to oops.  Stop that by
doing bounds checking.

This is a backport of upstream code.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agoxen: fix defconfigs after making gntdev configurable.
Keir Fraser [Fri, 14 Dec 2007 10:20:34 +0000 (10:20 +0000)]
xen: fix defconfigs after making gntdev configurable.
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
17 years ago[IA64] Update build configs and fix xenU build
Alex Williamson [Wed, 12 Dec 2007 17:53:30 +0000 (10:53 -0700)]
[IA64] Update build configs and fix xenU build

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Wed, 12 Dec 2007 17:51:43 +0000 (10:51 -0700)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoxen: more secondary CPU handling function attributes.
Keir Fraser [Wed, 12 Dec 2007 10:18:35 +0000 (10:18 +0000)]
xen: more secondary CPU handling function attributes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: consolidate drivers/xen/Kconfig
Keir Fraser [Wed, 12 Dec 2007 10:15:56 +0000 (10:15 +0000)]
xen: consolidate drivers/xen/Kconfig
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: make gntdev code configurable
Keir Fraser [Wed, 12 Dec 2007 10:15:29 +0000 (10:15 +0000)]
xen: make gntdev code configurable
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: secondary CPU handling adjustments
Keir Fraser [Wed, 12 Dec 2007 10:14:47 +0000 (10:14 +0000)]
xen: secondary CPU handling adjustments

Add proper attributes and remove a few unused items.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: add __exit to module_exit() handlers
Keir Fraser [Wed, 12 Dec 2007 10:14:18 +0000 (10:14 +0000)]
xen: add __exit to module_exit() handlers
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agogntdev: gntdev_fops struct should be const.
Keir Fraser [Wed, 12 Dec 2007 10:13:46 +0000 (10:13 +0000)]
gntdev: gntdev_fops struct should be const.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoOnly x86 does not refcount VM_FOREIGN ptes.
Keir Fraser [Wed, 12 Dec 2007 10:11:27 +0000 (10:11 +0000)]
Only x86 does not refcount VM_FOREIGN ptes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years ago[IA64] Fix CONFIG_XEN=no for gate page
Alex Williamson [Tue, 11 Dec 2007 16:00:53 +0000 (09:00 -0700)]
[IA64] Fix CONFIG_XEN=no for gate page

The important part of this is to refrain from building .tmp_gate.o unless
CONFIG_XEN.  However it also seems correct to make xen_gate_section in
vmlinux.lds.S depend on CONFIG_XEN as well.  Tested that both builds work now.

Signed-off-by: Aron Griffis <aron@hp.com>
17 years agoSetup memory zones in the same way as native instead of putting all
Ian Campbell [Mon, 10 Dec 2007 15:04:49 +0000 (15:04 +0000)]
Setup memory zones in the same way as native instead of putting all
low memory in ZONE_DMA. There is no real benefit from diverging from
native in this respect.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoDecode mouse event packet dz value and passes it as a wheel event into
Keir Fraser [Mon, 10 Dec 2007 13:52:47 +0000 (13:52 +0000)]
Decode mouse event packet dz value and passes it as a wheel event into
the input stream.

Signed-off-by: Pat Campbell <plc@novell.com>
17 years agoSync public i/o header files with Xen.
Keir Fraser [Mon, 10 Dec 2007 13:51:57 +0000 (13:51 +0000)]
Sync public i/o header files with Xen.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agofix native build after c/s 338
Keir Fraser [Mon, 10 Dec 2007 11:52:07 +0000 (11:52 +0000)]
fix native build after c/s 338
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoRevert 341:424f7b772301d501af6952507b2731e4b8c6da0a
Keir Fraser [Fri, 7 Dec 2007 00:38:40 +0000 (00:38 +0000)]
Revert 341:424f7b772301d501af6952507b2731e4b8c6da0a
xenbus uevent environment handling code is very much alive.

17 years agolinux/x86: Use cpu_relax() rather than barrier() in smp_call_function()
Keir Fraser [Thu, 6 Dec 2007 16:02:51 +0000 (16:02 +0000)]
linux/x86: Use cpu_relax() rather than barrier() in smp_call_function()

Short of getting an explanation for the odd difference to native, make
the code match native (and also, in the case of x86-64,
__smp_call_function_single()).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: fix initial GDT setup
Keir Fraser [Thu, 6 Dec 2007 15:59:52 +0000 (15:59 +0000)]
linux/x86: fix initial GDT setup

cpu_gdt_init() can be static, can have its argument point to const,
and the number of descriptors should be calculated from one more than
the table's limit.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86-64: Reduce delta to native setup code
Keir Fraser [Thu, 6 Dec 2007 15:51:11 +0000 (15:51 +0000)]
linux/x86-64: Reduce delta to native setup code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: Reduce delta to native IO-APIC code.
Keir Fraser [Thu, 6 Dec 2007 15:49:58 +0000 (15:49 +0000)]
linux/x86: Reduce delta to native IO-APIC code.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: dma_map_sg(): BUG_ON() before use
Keir Fraser [Thu, 6 Dec 2007 15:48:12 +0000 (15:48 +0000)]
linux/x86: dma_map_sg(): BUG_ON() before use
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: Remove more dead code
Keir Fraser [Thu, 6 Dec 2007 15:46:25 +0000 (15:46 +0000)]
linux/x86: Remove more dead code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/i386: Use symbolic constants in dump_fault_path()
Keir Fraser [Thu, 6 Dec 2007 15:46:01 +0000 (15:46 +0000)]
linux/i386: Use symbolic constants in dump_fault_path()
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux: kconfig adjustment
Keir Fraser [Thu, 6 Dec 2007 15:45:34 +0000 (15:45 +0000)]
linux: kconfig adjustment

2.6.24 removes support for omitting 'on' after 'depends', and fixing
this early doesn't harm older Linux.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: Modify CPPFLAGS just in a single place.
Keir Fraser [Thu, 6 Dec 2007 15:44:58 +0000 (15:44 +0000)]
linux/x86: Modify CPPFLAGS just in a single place.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxenbus: Remove dead code.
Keir Fraser [Thu, 6 Dec 2007 15:44:31 +0000 (15:44 +0000)]
xenbus: Remove dead code.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
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>