]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/log
legacy/linux-2.6.18-xen.git
17 years agoConfig ACPI_PV_SLEEP depends on ACPI_SLEEP.
Keir Fraser [Sat, 28 Jul 2007 07:45:07 +0000 (08:45 +0100)]
Config ACPI_PV_SLEEP depends on ACPI_SLEEP.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoBLKFRONT: Make sure we don't use bounce buffers, we don't need them.
Ian Campbell [Fri, 27 Jul 2007 13:45:36 +0000 (14:45 +0100)]
BLKFRONT: Make sure we don't use bounce buffers, we don't need them.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoxenbus: Allow to build with old kernels (pre-2.6.6).
kfraser [Thu, 26 Jul 2007 15:36:52 +0000 (16:36 +0100)]
xenbus: Allow to build with old kernels (pre-2.6.6).
Original patch by Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxenbus: Improvements to wait_for_devices().
kfraser [Wed, 25 Jul 2007 12:29:33 +0000 (13:29 +0100)]
xenbus: Improvements to wait_for_devices().
 1. When printing a warning about a timed-out device, print the
 current state of both ends of the device connection (i.e., backend as
 well as frontend).
 2. A device is 'not yet connected' only when the local state is *less
 than* XenbusStateConnected. If the state is Closing or Closed
 (usually because of an explicit failure when trying to make the
 connection) then we should not wait for the connection to occur -- it
 will never happen!

Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxenbus: Fix obvious use-after-free spotted by Coverity checker.
kfraser [Tue, 24 Jul 2007 16:09:09 +0000 (17:09 +0100)]
xenbus: Fix obvious use-after-free spotted by Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
17 years agoxenbus: Wait for 30s for devices to connect (previously 10s).
kfraser [Tue, 24 Jul 2007 08:39:00 +0000 (09:39 +0100)]
xenbus: Wait for 30s for devices to connect (previously 10s).
Give a visual update to the user on the console every 5s during this
period.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoEnable ACPI sleep in XenLinux
kfraser [Thu, 19 Jul 2007 12:28:14 +0000 (13:28 +0100)]
Enable ACPI sleep in XenLinux

Open CONFIG_ACPI_SLEEP in xenlinux, to enable ACPI based
power management. Basically, user can trigger power event
now by "echo *** > /sys/power/state". Also gear to pm
interface defined between xenlinux and Xen.

Also sync to xen interface headers consequently

Signed-off-by Ke Yu <ke.yu@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>

17 years ago[Xen PM] Create -xen version for necessary arch files
kfraser [Thu, 19 Jul 2007 12:24:44 +0000 (13:24 +0100)]
[Xen PM] Create -xen version for necessary arch files
Signed-off-by Ke Yu <ke.yu@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>

17 years agoXen frontend driver module autoloading.
kfraser [Tue, 17 Jul 2007 13:21:40 +0000 (14:21 +0100)]
Xen frontend driver module autoloading.

Implements module autoloading for the xen frontend drivers by adding a
uevent function for the frontend xenbus and some module aliases to the
individual drivers.

From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMerge with PPC Xen tree.
kfraser [Tue, 17 Jul 2007 09:19:48 +0000 (10:19 +0100)]
Merge with PPC Xen tree.

17 years ago[NETFRONT] Implement netif_release_rx_bufs for the copying case.
Ian Campbell [Mon, 16 Jul 2007 12:57:35 +0000 (13:57 +0100)]
[NETFRONT] Implement netif_release_rx_bufs for the copying case.

Also reduce the log level when we are unable end foreign access to a
grant.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoxen/i386: Fix vmalloc_sync_all() for PAE.
Keir Fraser [Sat, 14 Jul 2007 08:50:59 +0000 (09:50 +0100)]
xen/i386: Fix vmalloc_sync_all() for PAE.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[POWERPC][XEN][LINUX] Enable performance monitoring.
Hollis Blanchard [Fri, 13 Jul 2007 22:14:12 +0000 (17:14 -0500)]
[POWERPC][XEN][LINUX] Enable performance monitoring.
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years ago[XEN][LINUX][POWERPC] Implement xencomm translation for ACM hypercalls.
Hollis Blanchard [Fri, 13 Jul 2007 19:01:30 +0000 (14:01 -0500)]
[XEN][LINUX][POWERPC] Implement xencomm translation for ACM hypercalls.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years agoRemove unusued xen_xlate_dev_mem_* macros.
kfraser [Fri, 13 Jul 2007 15:15:37 +0000 (16:15 +0100)]
Remove unusued xen_xlate_dev_mem_* macros.
The ia64 ones will be removed via the ia64 tree.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoRevert xen-unstable 12513 (changes to xen devmem for ia64).
kfraser [Fri, 13 Jul 2007 15:03:10 +0000 (16:03 +0100)]
Revert xen-unstable 12513 (changes to xen devmem for ia64).
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
17 years agoblktap: Fix page reference count/file rss count leak when auto-translate is enabled.
kfraser [Fri, 13 Jul 2007 12:57:42 +0000 (13:57 +0100)]
blktap: Fix page reference count/file rss count leak when auto-translate is enabled.

Tapdisk process rss size becomes too large with auto translation
enabled.
The example is as follows where dom0 has only several hundred
megabytes.
This patch fixes it.
>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 6758 root      15   0 39824 1.7t 1.7t S    0 188932.0  14:10.28
tapdisk

This is because page reference count/file rss size are incremented
when io request is accepted, but aren't decremented when the request
is done. This can be fixed by using vm_insert_page() in blktap_mmap()
instead of remap_pfn_range().

Details:
The tapdisk daemon mmaps blktap device and the blktap driver maps
page from the front end into the mmapped area and unmaps it when I/O
request is done.

When io request is accepted, dispatch_rw_block_io() is called.
With auto translated mode disabled, it directly manipulates the page
table without incrementing rss size. With auto translated mode
enabled, it calls vm_insert_page() which increments page reference
count/file rss. When io request is done, fast_flush_area() is called.
With auto translated mode disabled, it directly manipulates the page
table without decrementing rss size. With auto translated mode
enabled, it calls zap_page_range() which should decrements page
reference count/file rss. However (vma->vm_flags & VM_PFNMAP) is true,
it doesn't decrement them so that page reference count and file rss
are leaked. blktap driver allocates pages and never free them so that
page reference count leak doesn't cause an issue (probably until
overflow).

Without auto translation, it makes sense for blktap_mmap() to set
VM_PFNMAP with remap_pfn_range() because the blktap driver directly
manipulates page tables. On the other hand with auto translation the
VM_PFNMAP bit shouldn't set. This can be achieved by using
vm_insert_page() in blktap_mmap() instead of remap_pfn_range()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoxen: remove unnecessary inclusion of kthread.h
kfraser [Fri, 13 Jul 2007 12:39:25 +0000 (13:39 +0100)]
xen: remove unnecessary inclusion of kthread.h
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: move swiotlb.c to lib/swiotlb-xen.c
kfraser [Fri, 13 Jul 2007 12:38:43 +0000 (13:38 +0100)]
xen: move swiotlb.c to lib/swiotlb-xen.c
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux: adjust make logic for -xen files.
kfraser [Fri, 13 Jul 2007 12:35:06 +0000 (13:35 +0100)]
linux: adjust make logic for -xen files.

The changed logic allows having *-xen.[cS] files anywhere in the tree,
without a need to modify the corresponding Makefiles. The patch also
cleans up Makefiles modified for Xen as far as possible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoFix PV-on-HVM driver build.
kfraser [Thu, 12 Jul 2007 15:05:09 +0000 (16:05 +0100)]
Fix PV-on-HVM driver build.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoballoon: Fix building as a module (totalhigh_pages is not exported to
kfraser [Thu, 12 Jul 2007 15:04:55 +0000 (16:04 +0100)]
balloon: Fix building as a module (totalhigh_pages is not exported to
modules).
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMerge with ia64 xen tree.
kfraser [Thu, 12 Jul 2007 08:53:09 +0000 (09:53 +0100)]
Merge with ia64 xen tree.

17 years agoFix a stale comment.
kfraser [Wed, 11 Jul 2007 09:55:49 +0000 (10:55 +0100)]
Fix a stale comment.
Signed-off-by: Jun Koi <junkoi2004@gmail.com>
17 years ago[IA64] Map cpu_to_node table with xencomm for physinfo sysctl
Alex Williamson [Tue, 10 Jul 2007 17:18:07 +0000 (11:18 -0600)]
[IA64] Map cpu_to_node table with xencomm for physinfo sysctl

Previously stubbed out.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoswiotlb: dma_addr_to_phys_addr() should be static.
kfraser [Tue, 10 Jul 2007 15:32:35 +0000 (16:32 +0100)]
swiotlb: dma_addr_to_phys_addr() should be static.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxebus: Do not avoid state transitions on shutdown in kernels for which
kfraser [Tue, 10 Jul 2007 15:32:06 +0000 (16:32 +0100)]
xebus: Do not avoid state transitions on shutdown in kernels for which
we do not provide a shutdown hook. This is because we don't drive
xenbus during shutdown in this case, and such kernels often do not
expose a 'system_state' variable, so the xenbus driver doesn't build!

Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualrion.com>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Tue, 10 Jul 2007 14:40:03 +0000 (08:40 -0600)]
merge with linux-2.6.18-xen.hg

17 years agopciback: Allow DomU to restore address bars if needed.
kfraser [Tue, 10 Jul 2007 09:18:24 +0000 (10:18 +0100)]
pciback: Allow DomU to restore address bars if needed.
Signed-off-by: Lukas Hejtmanek <xhejtman@ics.muni.cz>
17 years agoSynchronise sysctl.h with Xen public master header.
kfraser [Tue, 10 Jul 2007 09:12:11 +0000 (10:12 +0100)]
Synchronise sysctl.h with Xen public master header.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoswiotlb: Allow sync on arbitrary offsets into dma-mapped region.
kfraser [Mon, 9 Jul 2007 19:15:53 +0000 (20:15 +0100)]
swiotlb: Allow sync on arbitrary offsets into dma-mapped region.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoswiotlb: Keep offset in a page strictly smaller than PAGE_SIZE.
kfraser [Mon, 9 Jul 2007 19:00:19 +0000 (20:00 +0100)]
swiotlb: Keep offset in a page strictly smaller than PAGE_SIZE.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoswiotlb: Handle sync invocations on subregions of a mapped region.
kfraser [Mon, 9 Jul 2007 18:41:04 +0000 (19:41 +0100)]
swiotlb: Handle sync invocations on subregions of a mapped region.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFrontend net driver acceleration.
kfraser [Mon, 9 Jul 2007 17:16:05 +0000 (18:16 +0100)]
Frontend net driver acceleration.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoBackend net driver acceleration.
kfraser [Mon, 9 Jul 2007 17:15:12 +0000 (18:15 +0100)]
Backend net driver acceleration.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoAdd xenbus_for_each_[back,front]end functions to iterate each bus.
kfraser [Mon, 9 Jul 2007 17:09:51 +0000 (18:09 +0100)]
Add xenbus_for_each_[back,front]end functions to iterate each bus.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoprivcmd: Take write lock on mm semaphore when calling
kfraser [Mon, 9 Jul 2007 17:07:34 +0000 (18:07 +0100)]
privcmd: Take write lock on mm semaphore when calling
*remap_pfn_range(), as these function mess with fields in the vma
structure.
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years ago[IA64] Support special guest optimizations in the hypervisor
Alex Williamson [Mon, 9 Jul 2007 15:24:03 +0000 (09:24 -0600)]
[IA64] Support special guest optimizations in the hypervisor

Add the usage of the new hypervisor call HYPERVISOR_opt_feature() for
identity mapping region 7.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
17 years agoReduce log level of informational message.
Ian Campbell [Mon, 9 Jul 2007 12:53:03 +0000 (13:53 +0100)]
Reduce log level of informational message.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agox86: dma_map_sg() must handle multi-page segments.
kfraser [Mon, 9 Jul 2007 12:45:10 +0000 (13:45 +0100)]
x86: dma_map_sg() must handle multi-page segments.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoRevert ARCH_HAS_DEV_MEM change in drivers/xen/char/mem.c
Keir Fraser [Sat, 7 Jul 2007 10:44:16 +0000 (11:44 +0100)]
Revert ARCH_HAS_DEV_MEM change in drivers/xen/char/mem.c
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoRevert unnecessary locking changes in privcmd_ioctl().
Keir Fraser [Sat, 7 Jul 2007 09:19:02 +0000 (10:19 +0100)]
Revert unnecessary locking changes in privcmd_ioctl().
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[XEN][LINUX][POWERPC] Add PowerPC Xen architecture support.
Hollis Blanchard [Fri, 6 Jul 2007 20:52:42 +0000 (15:52 -0500)]
[XEN][LINUX][POWERPC] Add PowerPC Xen architecture support.
Most of this code was written by Jimi Xenidis <jimix@watson.ibm.com>.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years agoAdd 32-bit privcmd ioctl conversion for 64-bit kernels.
kfraser [Fri, 6 Jul 2007 16:35:53 +0000 (17:35 +0100)]
Add 32-bit privcmd ioctl conversion for 64-bit kernels.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years agoRefactor grant table allocation into arch-specific code.
kfraser [Fri, 6 Jul 2007 16:33:03 +0000 (17:33 +0100)]
Refactor grant table allocation into arch-specific code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years agoAdd "#ifdef ARCH_HAS_DEV_MEM" to archtecture specific file_operations.
kfraser [Fri, 6 Jul 2007 13:32:59 +0000 (14:32 +0100)]
Add "#ifdef ARCH_HAS_DEV_MEM" to archtecture specific file_operations.
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
17 years ago[PPC] Invert #ifdef for x86-specific *_vm_area().
kfraser [Fri, 6 Jul 2007 13:01:27 +0000 (14:01 +0100)]
[PPC] Invert #ifdef for x86-specific *_vm_area().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years ago[PPC] Add architecture-generic xencomm infrastructure.
kfraser [Fri, 6 Jul 2007 13:00:18 +0000 (14:00 +0100)]
[PPC] Add architecture-generic xencomm infrastructure.
Xencomm is the mechanism by which userspace can pass virtual addresses
to Xen on architectures that cannot perform page table walks in
software, including PowerPC and IA64.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years ago[PPC] Create Xen-specific interface for xlate_dev_mem_*
kfraser [Fri, 6 Jul 2007 12:59:15 +0000 (13:59 +0100)]
[PPC] Create Xen-specific interface for xlate_dev_mem_*
PowerPC builds both drivers/char/mem.c and drivers/xen/char/mem.c at
once, so we cannot hijack the xlate_dev_mem_ptr() interface.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years ago[PPC] Add Kconfig option for the balloon driver.
kfraser [Fri, 6 Jul 2007 12:57:36 +0000 (13:57 +0100)]
[PPC] Add Kconfig option for the balloon driver.
PowerPC Xen does not support ballooning.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
17 years agoDelay wait for block devices until after the disk is added.
Christian Limpach [Fri, 6 Jul 2007 10:08:24 +0000 (11:08 +0100)]
Delay wait for block devices until after the disk is added.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
17 years ago[IA64] Make some of xen hyperprivops transparent
Alex Williamson [Thu, 5 Jul 2007 20:36:59 +0000 (14:36 -0600)]
[IA64] Make some of xen hyperprivops transparent

Some of definitions of xen hyperprivops aren't transparent.
This patch fixes them.  While this is done in assembler code
long before, But I chose the easy C version because binary
patching woule eliminate the overhead.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Inline xen hyperprivops to eliminate branch call.
Alex Williamson [Thu, 5 Jul 2007 20:33:49 +0000 (14:33 -0600)]
[IA64] Inline xen hyperprivops to eliminate branch call.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] White space clean up of privop.h
Alex Williamson [Thu, 5 Jul 2007 20:30:44 +0000 (14:30 -0600)]
[IA64] White space clean up of privop.h

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Call xen_get_ivr hyperprivops directly in interrupt handler
Alex Williamson [Thu, 5 Jul 2007 20:29:29 +0000 (14:29 -0600)]
[IA64] Call xen_get_ivr hyperprivops directly in interrupt handler

Issue get_ivr hypercall directly instead of function call xen_get_ivr
in interrupt handler. It eliminates function call overhead.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Fix xen_eoi() prototype.
Alex Williamson [Thu, 5 Jul 2007 20:27:35 +0000 (14:27 -0600)]
[IA64] Fix xen_eoi() prototype.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] linux header inclusion clean up.
Alex Williamson [Thu, 5 Jul 2007 20:26:31 +0000 (14:26 -0600)]
[IA64] linux header inclusion clean up.

With this patch dma-mapping.h and processor.h become unmodified.
privops.h overrides gcc/intel intrinsics methods so it should be
included from intrinsics.h

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Add more __read_mostly and add const to running_on_xen.
Alex Williamson [Thu, 5 Jul 2007 20:24:26 +0000 (14:24 -0600)]
[IA64] Add more __read_mostly and add const to running_on_xen.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Remove xen_pal_halt_light
Alex Williamson [Thu, 5 Jul 2007 20:22:46 +0000 (14:22 -0600)]
[IA64] Remove xen_pal_halt_light

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Fix xen_setup() call condition
Alex Williamson [Thu, 5 Jul 2007 19:40:57 +0000 (13:40 -0600)]
[IA64] Fix xen_setup() call condition

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Typo in linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c
Alex Williamson [Thu, 5 Jul 2007 19:37:31 +0000 (13:37 -0600)]
[IA64] Typo in linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] swiotlb: clean up. avoid unnecessary address conversion
Alex Williamson [Thu, 5 Jul 2007 19:36:21 +0000 (13:36 -0600)]
[IA64] swiotlb: clean up. avoid unnecessary address conversion

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Remove 'may be uninitialized' warning
Alex Williamson [Thu, 5 Jul 2007 19:35:01 +0000 (13:35 -0600)]
[IA64] Remove 'may be uninitialized' warning

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Mon, 2 Jul 2007 18:20:27 +0000 (12:20 -0600)]
merge with linux-2.6.18-xen.hg

17 years agoDo not call clock_was_set() from interrupt context.
Ian Campbell [Mon, 2 Jul 2007 16:19:24 +0000 (17:19 +0100)]
Do not call clock_was_set() from interrupt context.

Currently clock_was_set() is a nop but on newer kernels it is not and
cannot be called from interrupt context. Prepare for that by deferring
to a workqueue. Since a timer interrupt can occur before
init_workqueue() is called we need to protect against the possibility
that keventd hasn't started yet.

(drop unused variable max_ntp_tick).

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years ago[IA64] Update arch-ia64.h
Alex Williamson [Mon, 2 Jul 2007 15:56:35 +0000 (09:56 -0600)]
[IA64] Update arch-ia64.h

cpu_user_regs removed.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Update arch-ia64.h
Alex Williamson [Mon, 2 Jul 2007 15:07:19 +0000 (09:07 -0600)]
[IA64] Update arch-ia64.h

Include NVRAM signature structure

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Update arch-ia64.h
Alex Williamson [Mon, 2 Jul 2007 14:42:18 +0000 (08:42 -0600)]
[IA64] Update arch-ia64.h

Update to match removal of IA64_GUEST_CONTEXT_RBS_OFFSET

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoblktap/blkback: Tear down sysfs nodes before freeing blkdev structures.
kfraser [Mon, 2 Jul 2007 12:05:39 +0000 (13:05 +0100)]
blktap/blkback: Tear down sysfs nodes before freeing blkdev structures.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoStop low memory from appearing -ve in /proc/meminfo when ballooned.
kfraser [Sun, 1 Jul 2007 21:07:32 +0000 (22:07 +0100)]
Stop low memory from appearing -ve in /proc/meminfo when ballooned.
Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
17 years agoFix kexec compatibility with highmem.
Ian Campbell [Wed, 27 Jun 2007 15:31:36 +0000 (16:31 +0100)]
Fix kexec compatibility with highmem.

Stop abusing xen_create_contiguous_region() to move pages below the
MFN limit. Instead introduce xen_limit_pages_to_max_mfn() which works
for both low and highmem but doesn't bother making the pages
contiguous.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoUpdate x86/64 defcnfigs.
kfraser [Wed, 27 Jun 2007 11:51:35 +0000 (12:51 +0100)]
Update x86/64 defcnfigs.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFix build with CONFIG_EDD disabled.
kfraser [Thu, 21 Jun 2007 21:37:49 +0000 (22:37 +0100)]
Fix build with CONFIG_EDD disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoSync with Xen public interface headers.
kfraser [Thu, 21 Jun 2007 20:22:22 +0000 (21:22 +0100)]
Sync with Xen public interface headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoblktap: blktap kthread must respond to freeze requests.
kfraser [Thu, 21 Jun 2007 12:43:33 +0000 (13:43 +0100)]
blktap: blktap kthread must respond to freeze requests.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolinux: fix agp address handling, namely intel-agp
kfraser [Thu, 21 Jun 2007 12:41:22 +0000 (13:41 +0100)]
linux: fix agp address handling, namely intel-agp

Make sure machine addresses are in fact constrained to 32 bits, and
assumptions about multi-page extents being contiguous are being met.

Generic parts of the patch are in 2.6.22-rc4.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoFix amd64-agp aperture validation
kfraser [Thu, 21 Jun 2007 12:39:05 +0000 (13:39 +0100)]
Fix amd64-agp aperture validation

Under Xen, pfn_valid() on a machine address makes no sense. But even
on native, under CONFIG_DISCONTIGMEM, assuming that a !pfn_valid()
implies all subsequent pfn-s are also invalid is wrong. Thus replace
this by explicitly checking against the E820 map.

Patch is in 2.6.22-rc4.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agoxen/firmware: Simplify Xen-interfacing code. The firmware-info maps
kfraser [Thu, 21 Jun 2007 08:45:00 +0000 (09:45 +0100)]
xen/firmware: Simplify Xen-interfacing code. The firmware-info maps
will be guaranteed to be densely populated from index 0 to max-1,
hence when we see an error it is always appropriate to bail from the
loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolinux/x86: Obtain EDID info from Xen
kfraser [Wed, 20 Jun 2007 18:28:54 +0000 (19:28 +0100)]
linux/x86: Obtain EDID info from Xen
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMerge
Tim Deegan [Wed, 20 Jun 2007 18:18:46 +0000 (19:18 +0100)]
Merge

17 years agoDon't clip the TSC-derived usec value to <1tick in gettimeofday.
Tim Deegan [Wed, 20 Jun 2007 18:17:36 +0000 (19:17 +0100)]
Don't clip the TSC-derived usec value to <1tick in gettimeofday.
This fixes some very odd gettimeofday() results when NTP is
adjtimex()ing the clock backwards.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
17 years agolinux/x86: Obtain EDD info from Xen
kfraser [Wed, 20 Jun 2007 18:09:25 +0000 (19:09 +0100)]
linux/x86: Obtain EDD info from Xen
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxen sysfs: Utilize SYS_HYPERVISOR config option
kfraser [Wed, 20 Jun 2007 13:39:34 +0000 (14:39 +0100)]
xen sysfs: Utilize SYS_HYPERVISOR config option
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agox86 time: Ensure gettimeofday() is monotonically increasing.
kfraser [Tue, 19 Jun 2007 14:36:16 +0000 (15:36 +0100)]
x86 time: Ensure gettimeofday() is monotonically increasing.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years ago[IA64] Dom0 kernel - sn2 use ioremap for PCI registers
Alex Williamson [Mon, 18 Jun 2007 19:59:27 +0000 (13:59 -0600)]
[IA64] Dom0 kernel - sn2 use ioremap for PCI registers

Use ioremap() on SN2 specific PIC and TIO registers rather than
manually setting the __IA64_UNCACHED_OFFSET bits in the address we get
from the PROM.

Same patch pushed to upstream Linux

Signed-off-by: Jes Sorensen <jes@sgi.com>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Fri, 15 Jun 2007 19:33:47 +0000 (13:33 -0600)]
merge with linux-2.6.18-xen.hg

17 years ago[IA64] Fix p2m_size calculation in p2m_expose_init()
Alex Williamson [Fri, 15 Jun 2007 18:40:12 +0000 (12:40 -0600)]
[IA64] Fix p2m_size calculation in p2m_expose_init()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Update interface files to match RBS in vcpu_guest_context_regs
Alex Williamson [Fri, 15 Jun 2007 18:37:00 +0000 (12:37 -0600)]
[IA64] Update interface files to match RBS in vcpu_guest_context_regs

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Default to Controller PCI backend
Alex Williamson [Fri, 15 Jun 2007 15:09:49 +0000 (09:09 -0600)]
[IA64] Default to Controller PCI backend

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoSync Xen public interface headers.
Keir Fraser [Fri, 15 Jun 2007 10:52:20 +0000 (11:52 +0100)]
Sync Xen public interface headers.

17 years ago[IA64] Determine the size of NR_DYNIRQS based on the size of CONFIG_NR_CPUS.
Alex Williamson [Thu, 14 Jun 2007 20:23:21 +0000 (14:23 -0600)]
[IA64] Determine the size of NR_DYNIRQS based on the size of CONFIG_NR_CPUS.

Hardcoding to 256 means things break when trying to boot medium
to large systems.

Signed-off-by: Jes Sorensen <jes@sgi.com>
17 years ago[IA64] Fix virt_to_bus()/gnttab_dma_use_page() ordering
Alex Williamson [Wed, 13 Jun 2007 04:02:27 +0000 (22:02 -0600)]
[IA64] Fix virt_to_bus()/gnttab_dma_use_page() ordering

virt_to_bus() must be called after gnttab_dma_use_page() loop.
Otherwise gnttab unmap_and_replace may happen between them, resulting
in the bus address being wrong.  Thanks Isaku.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoMerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Wed, 13 Jun 2007 02:43:50 +0000 (20:43 -0600)]
Merge with linux-2.6.18-xen.hg (staging)

17 years ago[IA64] Support DMA tracking in sba_iommu.c
Alex Williamson [Tue, 12 Jun 2007 22:33:57 +0000 (16:33 -0600)]
[IA64] Support DMA tracking in sba_iommu.c

Based on patch from Isaku Yamahata

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] xencomm update for acm interface change
Alex Williamson [Tue, 12 Jun 2007 21:52:41 +0000 (15:52 -0600)]
[IA64] xencomm update for acm interface change

Changed by c/s 15189:96915ca8d5f2 of xen-unstable.h

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Add HYPERVISOR_add_io_space
Alex Williamson [Tue, 12 Jun 2007 21:48:23 +0000 (15:48 -0600)]
[IA64] Add HYPERVISOR_add_io_space

And call it to register new I/O spaces with Xen

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Support dma tracking for swiotlb and xen_dma
Alex Williamson [Tue, 12 Jun 2007 21:43:27 +0000 (15:43 -0600)]
[IA64] Support dma tracking for swiotlb and xen_dma

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] xencomm support for GNTTABOP_unmap_and_replace
Alex Williamson [Tue, 12 Jun 2007 21:42:06 +0000 (15:42 -0600)]
[IA64] xencomm support for GNTTABOP_unmap_and_replace

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Add dummy HYPERVISOR_mmu_update to compile gnttab.c
Alex Williamson [Tue, 12 Jun 2007 21:41:21 +0000 (15:41 -0600)]
[IA64] Add dummy HYPERVISOR_mmu_update to compile gnttab.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Define paddr_t.
Alex Williamson [Tue, 12 Jun 2007 21:40:30 +0000 (15:40 -0600)]
[IA64] Define paddr_t.

Temporary build workaround

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>