]> xenbits.xensource.com Git - xenclient/kernel.git/log
xenclient/kernel.git
17 years agomerge
Keir Fraser [Thu, 28 Feb 2008 10:55:58 +0000 (10:55 +0000)]
merge

17 years agokexec: dont initialise regions in reserve_memory()
Keir Fraser [Thu, 28 Feb 2008 10:55:18 +0000 (10:55 +0000)]
kexec: dont initialise regions in reserve_memory()

There is no need to initialise efi_memmap_res and boot_param_res in
reserve_memory() for the initial xen domain as it is done in
machine_kexec_setup_resources() using values from the kexec hypercall.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agokexec: read more iomem regions from hypervisor
Keir Fraser [Thu, 28 Feb 2008 10:54:55 +0000 (10:54 +0000)]
kexec: read more iomem regions from hypervisor

This sets the location of the efi memmap and boot parameter
regions using information provided by the hypervisor,
overriding values derived by dom0 from the virtualised
efi memory regions.

It also creates a xen heap region and uses this as the parent
of per-cpu regions - they belong in hypervisor memory not
dom0 kernel memory.

The xen heap region is inserted into /proc/iomem_machine

* There is also a hypervisor portion of this patch.
* In order for the regions to show up after kexec patches
  to kexec-tools are required. I have posted them
  to the kexec mailing list and intend to merge them.

  http://lists.infradead.org/pipermail/kexec/2008-February/001348.html

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agokexec: add xen_machine_kexec_register_resources() and machine_kexec_register_resources()
Keir Fraser [Thu, 28 Feb 2008 10:54:20 +0000 (10:54 +0000)]
kexec: add xen_machine_kexec_register_resources() and machine_kexec_register_resources()

Add xen_machine_kexec_register_resources() and
machine_kexec_register_resources() to allow architecture specific
handling of iomem resources.

At this time xen_machine_kexec_register_resources() does the
same parenting of per-cpu resources on all architectures.
And machine_kexec_register_resources does nothing on all
architectures.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agokexec: add parent to per-cpu regions at setup time.
Keir Fraser [Thu, 28 Feb 2008 10:53:42 +0000 (10:53 +0000)]
kexec: add parent to per-cpu regions at setup time.

This is slightly more efficient as xen_machine_kexec_setup_resorces()
is called once (before xen_machine_kexec_register_resources()). While
xen_machine_kexec_register_resources() is called once for each EFI
memory region seen by a domain.

More cosmetic than anything else, but it seems more logical to me.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agokexec: Use error path if crash region range can't be accessed
Keir Fraser [Thu, 28 Feb 2008 10:52:47 +0000 (10:52 +0000)]
kexec: Use error path if crash region range can't be accessed

Although the error handling path in xen_machine_kexec_setup_resource()
is somewhat minmal, it ought to be used if HYPERVISOR_kexec_op() fails
whengetting the crash kernel region, as this indicates that an error
occured, not that the crash kernel region is empty.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agoFully initialise watch data structure in pcifront by using kzalloc.
Ian Campbell [Wed, 27 Feb 2008 16:33:32 +0000 (16:33 +0000)]
Fully initialise watch data structure in pcifront by using kzalloc.

This avoids creating a watch with XBWF_new_thread set spuriously.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
17 years agonetfront accel: Fix request_module/modprobe deadlock
Keir Fraser [Wed, 27 Feb 2008 13:14:18 +0000 (13:14 +0000)]
netfront accel: Fix request_module/modprobe deadlock

There would seem to be a potential deadlock in the netfront accelerator
plugin support.  When the configured accelerator changes in xenstore,
netfront tries to load the new plugin using request_module().  It does
this from a workqueue work item.  request_module() will invoke
modprobe which in some circumstances (I'm not sure exactly what - I've
not managed to reproduce it myself) seems to try to flush the
workqueue, and so it deadlocks.   This patch fixes the problem by
giving the accel watch work item its own workqueue, and so modprobe
can successfully flush the system-wide one.

Signed-off-by Kieran Mansley <kmansley@solarflare.com>

17 years agoAvoid using a separate watch thread due to uninitialised watch->flags.
Ian Campbell [Tue, 26 Feb 2008 17:59:18 +0000 (17:59 +0000)]
Avoid using a separate watch thread due to uninitialised watch->flags.

The xenbus_dev code isn't setup to handle the case where
XBWF_new_thread is set so there is a potetial crash if this flag is
erroneously set. Therefore initialise flags to zero by using kzalloc
rather than kmalloc.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
17 years agofbfront: Slightly streamline handling of wheel (z-axis) mouse events.
Keir Fraser [Mon, 25 Feb 2008 09:15:12 +0000 (09:15 +0000)]
fbfront: Slightly streamline handling of wheel (z-axis) mouse events.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoAdd license stanza to a few Xen header files.
Keir Fraser [Fri, 22 Feb 2008 16:52:34 +0000 (16:52 +0000)]
Add license stanza to a few Xen header files.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoXen paravirtualised PCI hotplug.
Keir Fraser [Fri, 22 Feb 2008 10:06:03 +0000 (10:06 +0000)]
Xen paravirtualised PCI hotplug.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
17 years agoSolarflare: use simplifying header-offset macros where possible
Keir Fraser [Thu, 21 Feb 2008 10:22:27 +0000 (10:22 +0000)]
Solarflare: use simplifying header-offset macros where possible
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoSolarflare: adjust Kconfig additions
Keir Fraser [Thu, 21 Feb 2008 10:21:34 +0000 (10:21 +0000)]
Solarflare: adjust Kconfig additions

Clean up drivers/xen/Kconfig after the Solarflare additions:
- placement of new items should not disturb menu hierarchy
- dependencies of XEN_NETDEV_ACCEL_SFC_BACKEND were missing
- use tabs for indentation

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoSolarflare: adjust module_param() permissions
Keir Fraser [Thu, 21 Feb 2008 10:20:43 +0000 (10:20 +0000)]
Solarflare: adjust module_param() permissions

Using permissions with bit 1 set (i.e. 0666) is prohibited on module
parameters on 2.6.20+.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoSolarflare: Various build fixes, and make SFC drivers dependent on x86
Keir Fraser [Wed, 20 Feb 2008 18:05:47 +0000 (18:05 +0000)]
Solarflare: Various build fixes, and make SFC drivers dependent on x86
From: Kieran Mansley <kmansley@solarflare.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoSolarflare: Add -I. to sfc module builds
Keir Fraser [Wed, 20 Feb 2008 17:44:08 +0000 (17:44 +0000)]
Solarflare: Add -I. to sfc module builds
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years ago[IA64] Update buildconfigs
Alex Williamson [Tue, 19 Feb 2008 18:22:24 +0000 (11:22 -0700)]
[IA64] Update buildconfigs

Solarflare doesn't build on ia64 yet

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Tue, 19 Feb 2008 18:15:05 +0000 (11:15 -0700)]
merge with linux-2.6.18-xen.hg

17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Thu, 14 Feb 2008 16:35:01 +0000 (09:35 -0700)]
merge with linux-2.6.18-xen.hg

17 years agoXen dom0 arbitrarily assigns APIC ID x to CPU ID x. Make dom0 also
Keir Fraser [Fri, 15 Feb 2008 10:01:06 +0000 (10:01 +0000)]
Xen dom0 arbitrarily assigns APIC ID x to CPU ID x.  Make dom0 also
assign the APIC ID to ACPI ID mapping in the same way.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agofbfront: Fix no-kbd-event case
Keir Fraser [Thu, 14 Feb 2008 09:25:05 +0000 (09:25 +0000)]
fbfront: Fix no-kbd-event case
out_cons shouldn't even be used.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoAdded tag xen-3.2.0 for changeset 08e85e79c65d0316bfda5e77e8a0dc7ab9ca181a xen-3.2.0
Keir Fraser [Tue, 12 Feb 2008 10:44:33 +0000 (10:44 +0000)]
Added tag xen-3.2.0 for changeset 08e85e79c65d0316bfda5e77e8a0dc7ab9ca181a

17 years agoCVE-2008-0600: Fix exploitable hole in vmsplice() syscall.
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 agomerge with linux-2.6.18-xen.hg
Alex Williamson [Thu, 7 Feb 2008 18:09:20 +0000 (11:09 -0700)]
merge with linux-2.6.18-xen.hg

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 ago[IA64] Remove dead code
Alex Williamson [Tue, 5 Feb 2008 16:27:21 +0000 (09:27 -0700)]
[IA64] Remove dead code

Remove ski simulator related stuff since it is for early
Xen development stage, and no longer necessary for now.

Signed-off-by: YaoZu (Eddie) Dong <eddie.dong@intel.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 ago[IA64] Split xencomm_arch_hypercall_suspend to its own file
Alex Williamson [Mon, 4 Feb 2008 15:35:36 +0000 (08:35 -0700)]
[IA64] Split xencomm_arch_hypercall_suspend to its own file

This allows us to use it from the unmodified driver, eliminating the following
error:

  Loading xen-platform-pci.ko module
  xen_platform_pci: Unknown symbol xencomm_hypercall_suspend
  insmod: error inserting '/lib/xen-platform-pci.ko':
   -1 Unknown symbol in module
  ERROR: /bin/insmod exited abnormally! (pid 210)

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoFix x86 SMP non-ACPI build.
Keir Fraser [Mon, 18 Feb 2008 17:16:52 +0000 (17:16 +0000)]
Fix x86 SMP non-ACPI build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoUpdate Xen/x86 defconfig files.
Keir Fraser [Mon, 18 Feb 2008 10:43:25 +0000 (10:43 +0000)]
Update Xen/x86 defconfig files.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoSolarflare: PV netback accelerator.
Keir Fraser [Mon, 18 Feb 2008 10:31:04 +0000 (10:31 +0000)]
Solarflare: PV netback accelerator.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoSolarflare: PV frontend accelerator and front/back common util driver.
Keir Fraser [Mon, 18 Feb 2008 10:30:33 +0000 (10:30 +0000)]
Solarflare: PV frontend accelerator and front/back common util driver.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoSolarflare: Resource driver.
Keir Fraser [Mon, 18 Feb 2008 10:29:29 +0000 (10:29 +0000)]
Solarflare: Resource driver.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoSolarflare: Standard network driver.
Keir Fraser [Mon, 18 Feb 2008 10:29:07 +0000 (10:29 +0000)]
Solarflare: Standard network driver.
Signed-off-by: Kieran Mansley <kmansley@solarflare.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 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 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 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 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 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 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>