]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/log
legacy/linux-2.6.18-xen.git
17 years agoCVE-2008-0600: Fix exploitable hole in vmsplice() syscall. xen-3.2.0
Keir Fraser [Mon, 11 Feb 2008 11:05:27 +0000 (11:05 +0000)]
CVE-2008-0600: Fix exploitable hole in vmsplice() syscall.
Fix is Al Viro's suggested patch for RHEL5.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agofbfront: Clear ring contents on save/restore. Otherwise in some cases
Keir Fraser [Mon, 11 Feb 2008 10:19:25 +0000 (10:19 +0000)]
fbfront: Clear ring contents on save/restore. Otherwise in some cases
a restored domain loses mouse and keyboard.
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
17 years agoblock: backport Jens Axboe's commit from
Keir Fraser [Mon, 11 Feb 2008 10:08:57 +0000 (10:08 +0000)]
block: backport Jens Axboe's commit from
Tue, 16 Oct 2007 09:03:56 +0000 (11:03 +0200)
bf2de6f5a4faf0197268f18d08969b003b87b6e8
Initial support for data-less (or empty) barrier support

blkback: permit and implement empty barrier.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoblkback: Fix st_wr_sect accounting by including write-barrier requests.
Keir Fraser [Mon, 11 Feb 2008 10:05:29 +0000 (10:05 +0000)]
blkback: Fix st_wr_sect accounting by including write-barrier requests.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agonet accel: Prevent frontend network accelerator plugin loading in dom0
Keir Fraser [Mon, 11 Feb 2008 09:55:55 +0000 (09:55 +0000)]
net accel: Prevent frontend network accelerator plugin loading in dom0

Generate error if frontend plugin tries to connect on dom0

Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agonet accel: Fix double-probe of accelerator on suspend_cancel
Keir Fraser [Mon, 11 Feb 2008 09:55:25 +0000 (09:55 +0000)]
net accel: Fix double-probe of accelerator on suspend_cancel

Fixes a bug in the network acceleration stuff where an accelerator
could get probed with the same interface twice on a suspend-cancel -
once manually in the suspend_cancel handler, and once when the watch
on the accel configuration option fired after being reinstated.

Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoxen balloon: allocate and free cold pages
Keir Fraser [Mon, 11 Feb 2008 09:52:49 +0000 (09:52 +0000)]
xen balloon: allocate and free cold pages

To reduce the performance side effects of ballooning, use and return
cold pages. To limit the impact scrubbing of these (and other) pages
has on the cache, also implement a dedicated scrubbing function on x86
which uses non-temporal stores (when available).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoCreate hgignore file: ignore patch droppings and .valid-src.
Keir Fraser [Mon, 11 Feb 2008 09:52:01 +0000 (09:52 +0000)]
Create hgignore file: ignore patch droppings and .valid-src.

17 years agoxen/x86: fix and improve xen_limit_pages_to_max_mfn()
Keir Fraser [Mon, 11 Feb 2008 09:49:58 +0000 (09:49 +0000)]
xen/x86: fix and improve xen_limit_pages_to_max_mfn()

- don't do multicall when nr_mcl is zero (and specifically don't
  access cr_mcl[nr_mcl - 1] in that case)
- fix CONFIG_XEN_COMPAT <=3D 0x030002 handling
- don't exchange pages already meeting the restriction (likely
  avoiding exchanging anything at all)
- avoid calling kmap functions without CONFIG_XEN_SCRUB_PAGES
- eliminate a few local variables

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: don't hardcode is_running_on_xen() for pv-on-hvm drivers
Keir Fraser [Thu, 7 Feb 2008 10:33:19 +0000 (10:33 +0000)]
linux/x86: don't hardcode is_running_on_xen() for pv-on-hvm drivers

Allowing graceful failure of these modules when inadvertently loaded
on native kernels.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agonetback: Fix BUG_ON() on page-flip receive path which would always
Keir Fraser [Tue, 5 Feb 2008 10:05:19 +0000 (10:05 +0000)]
netback: Fix BUG_ON() on page-flip receive path which would always
trigger and crash the kernbel.
Tracked down by Joakim Dahlstedt <jda@bea.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoebtables: don't compute gap until we know we have an ebt_entry
Keir Fraser [Mon, 4 Feb 2008 14:29:03 +0000 (14:29 +0000)]
ebtables: don't compute gap until we know we have an ebt_entry
Original upstream Linux patch by Chuck Ebbert.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agolinux/x86: make xen_change_pte_range() compatible with CONFIG_HIGHPTE
Keir Fraser [Fri, 1 Feb 2008 11:34:02 +0000 (11:34 +0000)]
linux/x86: make xen_change_pte_range() compatible with CONFIG_HIGHPTE

Cannot use virt_to_machine() on a kmap()-ed address.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: Fix a missing hypercall WARN_ON().
Keir Fraser [Fri, 1 Feb 2008 11:32:53 +0000 (11:32 +0000)]
linux/x86: Fix a missing hypercall WARN_ON().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoDo not allocate vcpu_guest_context on the stack when initialising a
Keir Fraser [Fri, 1 Feb 2008 11:11:12 +0000 (11:11 +0000)]
Do not allocate vcpu_guest_context on the stack when initialising a
new VCPU. It is too big for 4kB stacks.
Original patch by Donald Dutile <ddutile@redhat.com> backported from
upstream pv_ops work.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agolinux/x86: avoid casting hypercall return value
Keir Fraser [Tue, 29 Jan 2008 11:53:33 +0000 (11:53 +0000)]
linux/x86: avoid casting hypercall return value

.., being a little more type correct and producing better code on
64-bits.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86-64: don't use explicit moves in 4- and 5-argument hypercall macros
Keir Fraser [Tue, 29 Jan 2008 11:53:10 +0000 (11:53 +0000)]
linux/x86-64: don't use explicit moves in 4- and 5-argument hypercall macros

.., allowing the compiler to schedule the moves earlier or even avoid
an extra move.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years ago[gntdev] Fix multiple-grant mapping logic
Keir Fraser [Mon, 28 Jan 2008 10:29:58 +0000 (10:29 +0000)]
[gntdev] Fix multiple-grant mapping logic
Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
17 years agoxen, x86: Revert changes to use non-existent xen_halt() function.
Keir Fraser [Tue, 22 Jan 2008 21:52:44 +0000 (21:52 +0000)]
xen, x86: Revert changes to use non-existent xen_halt() function.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxen/x86: Remove use of undefined __noreturn function attribute.
Keir Fraser [Tue, 22 Jan 2008 19:48:26 +0000 (19:48 +0000)]
xen/x86: Remove use of undefined __noreturn function attribute.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Tue, 22 Jan 2008 15:31:46 +0000 (08:31 -0700)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoxen/x86: make set_ldt() more consistent with native
Keir Fraser [Tue, 22 Jan 2008 10:10:52 +0000 (10:10 +0000)]
xen/x86: make set_ldt() more consistent with native

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: check hypercall return status
Keir Fraser [Tue, 22 Jan 2008 10:09:52 +0000 (10:09 +0000)]
xen: check hypercall return status

Not doing so is almost always a mistake, potentially resulting in
debugging of problems being much more difficult.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoblkback/blktap: Check for kthread_should_stop() in inner loop,
Keir Fraser [Mon, 21 Jan 2008 11:43:31 +0000 (11:43 +0000)]
blkback/blktap: Check for kthread_should_stop() in inner loop,
mdelaay() should be msleep(), and these changes belong in blktap as
well as blkback.
Based on comments and patches from Jan Beulich and Steven Smith.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years ago[IA64] Coding style fix
Alex Williamson [Fri, 18 Jan 2008 21:20:59 +0000 (14:20 -0700)]
[IA64] Coding style fix

Mainly white spaces, // comments and * ops.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoblkback: Request-processing loop is unbounded and hence requires a
Keir Fraser [Fri, 18 Jan 2008 16:52:25 +0000 (16:52 +0000)]
blkback: Request-processing loop is unbounded and hence requires a
yield point. Also, bad request type is a good cause to sleep for a
short while as the frontend has probably gone mad.

Patch by Steven Smith <steven.smith@eu.citrix.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agolinux/x86: make hypercall wrapper functions' arguments unsigned where possible
Keir Fraser [Fri, 18 Jan 2008 16:36:01 +0000 (16:36 +0000)]
linux/x86: make hypercall wrapper functions' arguments unsigned where possible
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: clean up hypercall headers
Keir Fraser [Fri, 18 Jan 2008 16:35:24 +0000 (16:35 +0000)]
linux/x86: clean up hypercall headers

- don't define HYPERVISOR_hvm_op() for pv guests (requiring to not
  include
  include/xen/hvm.h in non-pv-driver builds)
- remove the custome __STR/STR macros
- remove stringification where not necessary
- reduce instruction size for pv-driver case on x86-64

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86: convert 'cpu' (and a few other) variables to unsigned
Keir Fraser [Fri, 18 Jan 2008 16:19:08 +0000 (16:19 +0000)]
linux/x86: convert 'cpu' (and a few other) variables to unsigned

Produces better code for x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
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>