]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/log
legacy/linux-2.6.18-xen.git
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 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 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 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 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 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 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>
17 years agoFix the x86/64 build.
Keir Fraser [Tue, 12 Jun 2007 17:20:54 +0000 (18:20 +0100)]
Fix the x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoprivcmd: PowerPC guests can safely mmap() privcmd.
kfraser [Tue, 12 Jun 2007 10:42:09 +0000 (11:42 +0100)]
privcmd: PowerPC guests can safely mmap() privcmd.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agopciback: "Controller" pcibackend and frontend extensions.
kfraser [Tue, 12 Jun 2007 10:36:58 +0000 (11:36 +0100)]
pciback: "Controller" pcibackend and frontend extensions.

On ia64, we've run into the case where the I/O hierarchies are more
complicated than the current set of driver domain backends can describe.
Some platforms make use of translation offsets for I/O port and MMIO
ranges.  Without knowledge of these translation offsets, devices are
unusable by driver domains.  For instance, here's an example of a
tulip card that lives under a PCI root bus making use of an I/O port
translation:

# lspci -v -s 02:05.0
02:05.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
        Subsystem: Hewlett-Packard Company Unknown device 125a
        Flags: bus master, medium devsel, latency 128, IRQ 67
        I/O ports at 2001100 [size=128]
        Memory at 90102000 (32-bit, non-prefetchable) [size=1K]
        Expansion ROM at 90080000 [disabled] [size=256K]

# setpci -s 02:05.0 BASE_ADDRESS_0
00001101

# cat /proc/ioports
...
02000000-0200ffff : PCI Bus 0000:01
  02001000-02001fff : PCI Bus #02
    02001100-0200117f : 0000:02:05.0
      02001100-0200117f : tulip
...

# cat /proc/iomem
...
80100000000-80103ffffff : PCI Bus 0000:01 I/O Ports 02000000-0200ffff
...

I/O port spaces are of course limited to 64k, but on this system
multiple I/O port spaces are available (one per PCI root bridge in
this case).  On ia64, I/O port spaces are typically a sparse encoding
of an MMIO range.  The legacy I/O port range is decoded directly by
the processor, additional ranges are decoded by the I/O hardware.  To
access I/O port 0x1100 on this device, the driver needs to do an
inb/outb to address 0x2001100.  The kernel will then swizzle the bits
to create an MMIO transaction within the MMIO range for that set of
I/O ports.

To support this, I've created the "controller" backend as shown below.
This is unfortunately an ia64-specific backend, but I don't see
any mechanism to generically support the kinds of things this backend
needs to do.  PCI controllers on ia64 are created to represent the PCI
root bridges found in ACPI.  These root bridge ACPI nodes have _CRS
(Current Resource Setting) methods that describe the address ranges
consumed by the bus below the root bridge.  Address ranges described
with a translation attribute make use of a translation offset to reach
the desired address.  This information must be provided to a driver
domain guest to allow it to access the devices.

Given this architecture, the obvious choice is to create virtual PCI
buses based on controllers.  All devices physically under the same
controller are virtualized under the same domain:bus.  Within a bus,
device slots are virtualized much like the slot backend.  The tricky
part comes with how to describe the address translation for a
controller to the guest driver domain.  For this, I chose to store the
information in xenbus.  We already make use of the following keys for
driver domains:

root_num        /* Number of PCI roots exposed */
root-X          /* domain:bus information for root X */

To this, I've added:

root-X-resources        /* number of resources for root X */
root-X-resource-Y       /* resource umber Y for root X */
root-resource-magic     /* synchronization/versioning for resource
info */

I debated for a while how to expose the root-X-resource-Y information
and came up with a simple ASCII dump of the struct acpi_resource
returned from the ACPI _CRS method.  This isn't quite a silly as it
sounds because the structure is a fixed size regardless of word
length, and it's contents are largely based on fixed tables found in
the ACPI spec.  This makes it relatively immune to frequent changes.
The PCI backend stores the ASCII byte stream of the controller
resources into xenbus, the PCI frontend then extracts the byte stream,
and decodes it back into a struct acpi_resource for use.

The only changes to the existing code to support the frontend is a
trivial addition of passing the bus number to pcifront_init_sd() and a
hook to setup the root windows after the bus is scanned.  No changes
are required for the controller backend.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agolinux/x86-64: miscellaneous initialization code cleanup
kfraser [Tue, 12 Jun 2007 10:15:20 +0000 (11:15 +0100)]
linux/x86-64: miscellaneous initialization code cleanup
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/x86-64: remove non-native entry point name
kfraser [Tue, 12 Jun 2007 10:12:35 +0000 (11:12 +0100)]
linux/x86-64: remove non-native entry point name
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agolinux/i386: allow the /dev/cpu/*/msr devices
kfraser [Tue, 12 Jun 2007 10:12:05 +0000 (11:12 +0100)]
linux/i386: allow the /dev/cpu/*/msr devices
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years ago[IA64] Pull in changes from xen-ia64 tree
Alex Williamson [Mon, 11 Jun 2007 20:59:53 +0000 (14:59 -0600)]
[IA64] Pull in changes from xen-ia64 tree

Includes changes to old sparse tree and interface changes from
xen-ia64-unstable.hg csets:
15115:24463758319b - 15169:8655f7b7d50c

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoKernel threads need to be aware of freeze request, by checking in
kfraser [Mon, 11 Jun 2007 14:56:06 +0000 (15:56 +0100)]
Kernel threads need to be aware of freeze request, by checking in
their main loop.

xenbus/xenwatch threads are special with PF_NOFREEZE, since we're sure
that they do nothing to block other native device drivers.

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

17 years agoMake dma address conversion logic of gnttab dma arch specific.
kfraser [Mon, 11 Jun 2007 14:53:26 +0000 (15:53 +0100)]
Make dma address conversion logic of gnttab dma arch specific.

gnttab_dma_map_page() and gnttab_dma_unmap_page() uses machine address
with dma address interchangebly. However it doesn't work with auto
translated mode enabled (i.e. on ia64) because

- bus address space(dma_addr_t) is different from machine address
  space(maddr_t).
  With the terminology in xen/include/public/mm.h,
  dma_addr_t is maddr and maddr_t is gmaddr.
  So they should be handled differently with auto translated physmap
  mode
  enabled.

- dma address conversion depends on dma api implementation and
  its paravirtualization.
  "pfn_valid(mfn_to_local_pfn(maddr >> PAGE_SHIFT)" check in
  gnttab_dma_map_page() doesn't make sense with auto translate physmap
  mode enabled.

To address those issues, split those logic from gnttab_dma_map_page()
and gnttab_dma_unmap_page(), and put it into arch specific files.
This patch doesn't change the already existing x86 logic.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoSync Xen public interface headers.
Keir Fraser [Sun, 10 Jun 2007 18:50:32 +0000 (19:50 +0100)]
Sync Xen public interface headers.

17 years agoSync xen interface headers.
Keir Fraser [Sun, 10 Jun 2007 14:58:44 +0000 (15:58 +0100)]
Sync xen interface headers.

17 years agoUpdate vmx_assist.h to match xen changes.
Steven Hand [Fri, 8 Jun 2007 16:22:07 +0000 (17:22 +0100)]
Update vmx_assist.h to match xen changes.

Signed-off-by: Steven Hand <steven@xensource.com>
17 years agoSync Xen public headers,
kfraser [Thu, 7 Jun 2007 14:52:57 +0000 (15:52 +0100)]
Sync Xen public headers,
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoAdd backtrace support to xenoprof.
kfraser [Thu, 7 Jun 2007 12:48:27 +0000 (13:48 +0100)]
Add backtrace support to xenoprof.
Signed-off-by: Amitabha Roy <amitabha.roy@gmail.com>
Reviewed-by: Jose Renato G Santos <joserenato.santos@hp.com>
17 years agoLinux blkback: Resolve symbol collision with blktap.
kfraser [Thu, 7 Jun 2007 10:11:13 +0000 (11:11 +0100)]
Linux blkback: Resolve symbol collision with blktap.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
17 years agoLinux blktap: Modify sysfs name for blktap stats to match blkback.
kfraser [Thu, 7 Jun 2007 10:10:12 +0000 (11:10 +0100)]
Linux blktap: Modify sysfs name for blktap stats to match blkback.
Signed-off-by: Satochi UCHIDA <s-uchida@ap.jp.nec.com>
17 years ago[LINUX] gnttab: Fix copy_grant_page race with seqlock
kfraser [Thu, 7 Jun 2007 10:04:08 +0000 (11:04 +0100)]
[LINUX] gnttab: Fix copy_grant_page race with seqlock

Previously gnttab_copy_grant_page would always unmap the grant table
entry, even if DMA operations were outstanding.  This would allow a
hostile guest to free a page still used by DMA to the hypervisor.

This patch fixes this by making sure that we don't free the grant
table entry if a DMA operation has taken place.  To achieve this a
seqlock is used to synchronise the DMA operations and
copy_grant_page.

The DMA operations use the read side of the seqlock so performance
should be largely unaffected.

Thanks to Isaku Yamahata for noticing the race condition.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agoPV-on-HVM: Allow unmodified drivers to build under 64 bits on < 2.6.11.
kfraser [Wed, 6 Jun 2007 19:28:05 +0000 (20:28 +0100)]
PV-on-HVM: Allow unmodified drivers to build under 64 bits on < 2.6.11.
Signed-off-by: David Lively <dlively@virtualiron.com>
17 years agoblktap: Small fix to the blktap clear pte hook.
kfraser [Tue, 5 Jun 2007 09:04:22 +0000 (10:04 +0100)]
blktap: Small fix to the blktap clear pte hook.

Fix an offset error in the foreign page map indexing, add support for
auto-translated physmap mode and remove warning message.

This is an update on a patch submitted by Isaku Yamahata <yamahata@valinux.co.jp>.

Signed-off-by: Geoffrey Lefebvre <geoffrey@cs.ubc.ca>
17 years agonetback: Bit-field booleans must be unsigned.
kfraser [Mon, 4 Jun 2007 13:35:51 +0000 (14:35 +0100)]
netback: Bit-field booleans must be unsigned.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoDo not build netback loopback device driver by default.
kfraser [Mon, 4 Jun 2007 10:23:06 +0000 (11:23 +0100)]
Do not build netback loopback device driver by default.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[NET] back: Make copy_skb the default.
kfraser [Mon, 4 Jun 2007 10:00:48 +0000 (11:00 +0100)]
[NET] back: Make copy_skb the default.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agoImported buildconfigs from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:28 +0000 (10:05 +0100)]
Imported buildconfigs from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported linux-2.6-xen-sparse from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:28 +0000 (10:05 +0100)]
Imported linux-2.6-xen-sparse from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch from xen-unstable...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch allow-i386-crash-kernels-to-handle-x86_64-dumps-fix.patch from xen...
Andrew Morton [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch allow-i386-crash-kernels-to-handle-x86_64-dumps-fix.patch from xen-unstable.hg 15200:bd3d6b4c52ec

In file included from arch/i386/kernel/setup.c:46:
include/linux/crash_dump.h:19:36: warning: extra tokens at end of #ifndef directive

Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Horms <horms@verge.net.au>
Cc: Ian Campbell <ian.campbell@xensource.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/crash_dump.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

17 years agoImported patch allow-i386-crash-kernels-to-handle-x86_64-dumps.patch from xen-unstabl...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch allow-i386-crash-kernels-to-handle-x86_64-dumps.patch from xen-unstable.hg 15200:bd3d6b4c52ec

The specific case I am encountering is kdump under Xen with a 64 bit
hypervisor and 32 bit kernel/userspace.  The dump created is 64 bit due to
the hypervisor but the dump kernel is 32 bit for maximum compatibility.

It's possibly less likely to be useful in a purely native scenario but I
see no reason to disallow it.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Acked-by: Vivek Goyal <vgoyal@in.ibm.com>
Cc: Horms <horms@verge.net.au>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/proc/vmcore.c           |    2 +-
 include/asm-i386/kexec.h   |    3 +++
 include/linux/crash_dump.h |    8 ++++++++
 3 files changed, 12 insertions(+), 1 deletion(-)

17 years agoImported patch softlockup-no-idle-hz.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch softlockup-no-idle-hz.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch git-c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4.patch from xen-unstable...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch git-c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4.patch from xen-unstable.hg 15200:bd3d6b4c52ec

commit c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4
Author: Vivek Goyal <vgoyal@in.ibm.com>
Date:   Wed Nov 8 17:44:41 2006 -0800

    [PATCH] i386: Force data segment to be 4K aligned

    o Currently there is no specific alignment restriction in linker script
      and in some cases it can be placed non 4K aligned addresses. This fails
      kexec which checks that segment to be loaded is page aligned.

    o I guess, it does not harm data segment to be 4K aligned.

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/arch/i386/kernel/vmlinux.lds.S b/arch/i386/kernel/vmlinux.lds.S
index adc1f23..c6f84a0 100644

17 years agoImported patch fixaddr-top.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch fixaddr-top.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch x86-elfnote-as-preprocessor-macro.patch from xen-unstable.hg 15200...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch x86-elfnote-as-preprocessor-macro.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch from xen-unstable...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch from...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch from...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch xenoprof-generic.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch xenoprof-generic.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch xen-hotplug.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch xen-hotplug.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch from xen-unstable...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch pmd-shared.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch pmd-shared.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch net-gso-6-linear-segmentation.patch from xen-unstable.hg 15200:bd3d6b4...
Ian Campbell [Mon, 4 Jun 2007 09:05:24 +0000 (10:05 +0100)]
Imported patch net-gso-6-linear-segmentation.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch net-gso-5-rcv-mss.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:23 +0000 (10:05 +0100)]
Imported patch net-gso-5-rcv-mss.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch net-csum.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:23 +0000 (10:05 +0100)]
Imported patch net-csum.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch i386-mach-io-check-nmi.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:23 +0000 (10:05 +0100)]
Imported patch i386-mach-io-check-nmi.patch from xen-unstable.hg 15200:bd3d6b4c52ec

17 years agoImported patch fix-ide-cd-pio-mode.patch from xen-unstable.hg 15200:bd3d6b4c52ec
Ian Campbell [Mon, 4 Jun 2007 09:05:23 +0000 (10:05 +0100)]
Imported patch fix-ide-cd-pio-mode.patch from xen-unstable.hg 15200:bd3d6b4c52ec