]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/log
legacy/linux-2.6.18-xen.git
17 years agox86/64: Fix security vulnerability CVE-2007-4573.
Keir Fraser [Tue, 2 Oct 2007 08:52:15 +0000 (09:52 +0100)]
x86/64: Fix security vulnerability CVE-2007-4573.

Zero-extend all registers after ptrace in 32-bit entry path. Actually
only needed for %rax (which indexes into syscall table).

This is a backport of the upstream Linux patch.

Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMake sure that the device is fully ready before allowing release.
Wim Colgate [Mon, 24 Sep 2007 23:56:50 +0000 (16:56 -0700)]
Make sure that the device is fully ready before allowing release.

Signed-off-by: Wim Colgate <wim@xensource.com>
17 years agoNotify CPU frequency changes to Xen.
Keir Fraser [Thu, 20 Sep 2007 13:17:12 +0000 (14:17 +0100)]
Notify CPU frequency changes to Xen.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoBackport of powernow-k8 cpufreq changes, required for power management
Keir Fraser [Thu, 20 Sep 2007 13:16:30 +0000 (14:16 +0100)]
Backport of powernow-k8 cpufreq changes, required for power management
on Xen.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
17 years agolinux/i386-PAE: avoid temporarily inconsistent pte's.
kfraser [Wed, 19 Sep 2007 15:26:49 +0000 (16:26 +0100)]
linux/i386-PAE: avoid temporarily inconsistent pte's.

One more of these issues (which were considered fixed): Other than on
x86-64, i386 allows set_fixmap() to replace already present mappings.
Consequently, on PAE, care must be taken to not update the high half
of a pte while the low half is still holding the old value.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoRemove arch/i386/boot-xen which was made obsolete by 211:c1f5d027adf7
Ian Campbell [Wed, 19 Sep 2007 11:06:01 +0000 (12:06 +0100)]
Remove arch/i386/boot-xen which was made obsolete by 211:c1f5d027adf7

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoThis is a backport of some code for Linux that is needed by
kfraser [Wed, 19 Sep 2007 07:55:13 +0000 (08:55 +0100)]
This is a backport of some code for Linux that is needed by
my backport of kexec to IA64 xen.
From: Simon Horman <horms@verge.net.au>

sysctl: implement CTL_UNNUMBERED

This patch takes the CTL_UNNUMBERD concept from NFS and makes it
available to all new sysctl users.

At the same time the sysctl binary interface maintenance documentation
is updated to mention and to describe what is needed to successfully
maintain the sysctl binary interface.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years agolinux/x86: match native behavior of 'make install'
kfraser [Tue, 18 Sep 2007 15:31:30 +0000 (16:31 +0100)]
linux/x86: match native behavior of 'make install'

Placement of the final image and handling of the install process
should match native (whether to implicitly create an initrd is just
one example). This includes there not being a need for a special
boot-xen subdirectory and more unification of arch/*/Makefile pieces.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoSupport ICH9 chipset.
kfraser [Tue, 18 Sep 2007 15:21:17 +0000 (16:21 +0100)]
Support ICH9 chipset.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
17 years agoxenbus: Print more comprehensive info about unconnected devices during boot.
kfraser [Tue, 18 Sep 2007 08:34:09 +0000 (09:34 +0100)]
xenbus: Print more comprehensive info about unconnected devices during boot.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoAdd the CDROM_GET_CAPABILITY ioctl to blkfront.
Christian Limpach [Tue, 11 Sep 2007 15:38:13 +0000 (16:38 +0100)]
Add the CDROM_GET_CAPABILITY ioctl to blkfront.
Return 0 instead of -EINVAL if the blkfront device is a cdrom,
i.e. had the VDISK_CDROM attribute.  This allows udev's cdrom_id
to correctly detect the device as a cdrom device.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Mon, 10 Sep 2007 19:59:28 +0000 (13:59 -0600)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoFix evtchn rebind.
kfraser [Mon, 10 Sep 2007 12:53:04 +0000 (13:53 +0100)]
Fix evtchn rebind.

rebind_irq_to_cpu needs to mask evtchn before bind, which should
be same as what evtchn_rebind_cpu does today. Or else cpu_disable
fails at fixup_irqs.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoDomU should scan all PCI fns.
kfraser [Mon, 10 Sep 2007 12:35:33 +0000 (13:35 +0100)]
DomU should scan all PCI fns.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxencons: Remove xencons_early_setup() and do not clear use_vt_console.
kfraser [Sat, 8 Sep 2007 09:02:52 +0000 (10:02 +0100)]
xencons: Remove xencons_early_setup() and do not clear use_vt_console.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Fri, 7 Sep 2007 19:57:35 +0000 (13:57 -0600)]
merge with linux-2.6.18-xen.hg (staging)

17 years agoFix one dead loop case in host S3
kfraser [Fri, 7 Sep 2007 10:18:23 +0000 (11:18 +0100)]
Fix one dead loop case in host S3

Wake sts is only required to be checked for S1, and implementation
is free to not touch wake sts bit for S3. The latter case is observed
falling into loop on checking wake sts after sleep hypercall returns.
Actually we only need to check hypercall return value here, and those
checks belong to Xen instead.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

17 years agoBind different tasks' evtchns to different vcpus of Dom0
kfraser [Fri, 7 Sep 2007 10:09:25 +0000 (11:09 +0100)]
Bind different tasks' evtchns to different vcpus of Dom0

Currently, all user-space event channels notify Dom0's vcpu0 -- this
is not nice considering scalability. The patch tries to bind different
tasks' evtchns to different vcpus of Dom0 when the bindings are
initialized, and it can also dynamically change the binding if a task
actually gets run on another vcpu for some reason. Tests (Inb and
OLTP) show the patch can improve scalability to some notable degree.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Kan Liang <kan.liang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoPV-on-HVM: Fix bad symbol reference
kfraser [Fri, 7 Sep 2007 09:24:57 +0000 (10:24 +0100)]
PV-on-HVM: Fix bad symbol reference

This fixes a bug causing a bogus symbol reference (to init_page_count)
in the PV-on-HVM drivers for 2.6 kernels that define the set_page_count
macro.

Based on an original patch by:
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Dave Lively <dlively@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoAdd missing err.h include to xenbus.h header file.
kfraser [Fri, 7 Sep 2007 09:19:22 +0000 (10:19 +0100)]
Add missing err.h include to xenbus.h header file.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFix potential kthread deadlock during Xen suspend.
kfraser [Fri, 7 Sep 2007 09:04:02 +0000 (10:04 +0100)]
Fix potential kthread deadlock during Xen suspend.

kthread_create() depends on keventd, so it cannot be executed from
keventd. Replace use of kthread_create() with an approach based on
kernel_thread().

Based on an original patch by:
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Foreign p2m: linux side
Alex Williamson [Thu, 6 Sep 2007 20:33:25 +0000 (14:33 -0600)]
[IA64] Foreign p2m: linux side

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agomerge with linux-2.6.18-xen.hg (staging)
Alex Williamson [Thu, 6 Sep 2007 18:05:58 +0000 (12:05 -0600)]
merge with linux-2.6.18-xen.hg (staging)

17 years ago[IA64] Move vfree() out of irq disabled code.
Alex Williamson [Thu, 6 Sep 2007 15:09:53 +0000 (09:09 -0600)]
[IA64] Move vfree() out of irq disabled code.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
17 years agoxen: Use unlocked_ioctl in evtchn, gntdev and privcmd drivers to avoid
kfraser [Fri, 31 Aug 2007 09:45:38 +0000 (10:45 +0100)]
xen: Use unlocked_ioctl in evtchn, gntdev and privcmd drivers to avoid
acquiring the BKL sempahore. Performance improvement is particularly
significant for heavy users of evtchn-notify ioctl.
Suggested by Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agonetfront: Add kref support for legacy Linux kernels.
kfraser [Thu, 30 Aug 2007 15:23:39 +0000 (16:23 +0100)]
netfront: Add kref support for legacy Linux kernels.

In kernels <= 2.6.5 kref_init, and kref_put had a different interface.
This patch allows for older kernels to compile with the older
interface.

Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Add vmalloc failure test
Alex Williamson [Tue, 28 Aug 2007 18:44:22 +0000 (12:44 -0600)]
[IA64] Add vmalloc failure test

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Avoid allocating memory in interrupt context
Alex Williamson [Tue, 28 Aug 2007 18:40:47 +0000 (12:40 -0600)]
[IA64] Avoid allocating memory in interrupt context

Allocate xencomm_handle in IA64_LOG_ALLOCATE instead of
allocating each time.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
17 years agoRemove xencomm page size limit.
kfraser [Tue, 28 Aug 2007 14:33:15 +0000 (15:33 +0100)]
Remove xencomm page size limit.

Currently xencomm has page size limit so that a domain with many
memory (e.g. 100GB~) can't be created.

Now that xencomm of xen side accepts struct xencomm_desc whose address
array crosses page boundary. Thus it isn't necessary to allocate
single page not to cross page boundary. We can allocate exact sized
memory. Note that struct xencomm_desc can't cross page boundary and
slab allocator returns sizeof(void*) aligned pointer.
Where sizeof(*desc) > sizeof(void*), e.g. 32 bit environment,
the slab allocator return pointer doesn't gurantee that
struct xencomm_desc doesn't cross page boundary. So we fall back to
page allocator.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Fix __ioremap() paravirtualization.
Alex Williamson [Thu, 23 Aug 2007 21:18:40 +0000 (15:18 -0600)]
[IA64] Fix __ioremap() paravirtualization.

__ioremap() should return NULL when error.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Work around for xencomm memory reservation op.
Alex Williamson [Wed, 22 Aug 2007 14:09:20 +0000 (08:09 -0600)]
[IA64] Work around for xencomm memory reservation op.

- Xencomm has single page size limit caused by xencomm_alloc()/xencomm_free()
  so that we have to repeat the hypercall.  Repeating the hypercall allows us
  to create domains larger than ~63G.  This limitation could also be removed
  by allowing xencomm calls to cross pages.
- Even if the above limitation is removed, the hypercall with large number of
  extents may cause the soft lockup warning.
  In order to avoid the warning, we limit the number of extents and repeat
  the hypercall.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Linux xencomm consolidation
Alex Williamson [Thu, 16 Aug 2007 19:44:51 +0000 (13:44 -0600)]
[IA64] Linux xencomm consolidation

Use common xencomm.c and remove ia64 xencomm.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Thu, 16 Aug 2007 16:58:46 +0000 (10:58 -0600)]
merge with linux-2.6.18-xen.hg

17 years ago[xencomm] introduce opaque type struct xencomm_handle* for xencommized
kfraser [Tue, 14 Aug 2007 15:20:55 +0000 (16:20 +0100)]
[xencomm] introduce opaque type struct xencomm_handle* for xencommized
value. This patch is preparation for xencomm consolidation.
powerpc uses void * for xencommized value, on the other hand IA64 uses
struct xencomm_handle *. Unify it with struct xencomm_handle *.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[linux, xencomm] Various fixes common xencomm.c for ia64 xencomm consolidation
kfraser [Tue, 14 Aug 2007 15:04:09 +0000 (16:04 +0100)]
[linux, xencomm] Various fixes common xencomm.c for ia64 xencomm consolidation
  - move xen_guest_handle() macro into include/xen/xencomm.h
    ia64 also uses it.
  - is_kern_addr() is powerpc specific. and other arch doesn't
  implement it.
    It will be defined in linux/include/asm-ia64/xen/xencomm.h
  - fix error recovery path of xencomm_create()
    xencomm_free() requires pseudo physical address, not virtual
    address.
  - add one BUG_ON() to xencomm_create_mini() for alignment
  requirement
  - use xencomm_pa() instead of __pa() in xencomm_map() and
    xencomm_map_no_alloc().
    They should work for statically allocated area. On ia64 it isn't
    in
    straight mapping area so that xencomm_pa() is necessary.
  - add gcc bug work around. gcc 4.1.2 doesn't handle properly
    variables on stack with align attribute.
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16660

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>)
17 years ago[LINUX] drivers: Add missing includes
kfraser [Mon, 13 Aug 2007 15:40:36 +0000 (16:40 +0100)]
[LINUX] drivers: Add missing includes

This patch adds missing includes that currently work through indirect
inclusions.  This cannot be relied on and indeed does break on older
kernels (2.4 with PV-on-HVM).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[LINUX] hypercall: Handle hypcercall_stub as a macro
kfraser [Mon, 13 Aug 2007 15:40:07 +0000 (16:40 +0100)]
[LINUX] hypercall: Handle hypcercall_stub as a macro

This patch handles the case where hypercall_stub is a macro.  This
will happen under 2.4 when hypercalls are made from a module.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[LINUX] netfront: Cleanup and fix TSO/GSO/CHECKSUM conditionals
kfraser [Mon, 13 Aug 2007 15:33:35 +0000 (16:33 +0100)]
[LINUX] netfront: Cleanup and fix TSO/GSO/CHECKSUM conditionals

This patch tries to minimise the amount of code that is conditionally
compiled.  This is desirable (and the Linux way) as it helps to
prevent people breaking code unwittingly since conditionals may hide
compile problems.

It also adds a missing conditional around the TSO ethtool operations.

This also helps the building of netfront under Linux 2.4 which
doesn't have TSO.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agonet front: Avoid deref'ing skb after it is potentially freed.
kfraser [Mon, 13 Aug 2007 11:21:19 +0000 (12:21 +0100)]
net front: Avoid deref'ing skb after it is potentially freed.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Default to xvc console
Alex Williamson [Sun, 12 Aug 2007 21:04:04 +0000 (15:04 -0600)]
[IA64] Default to xvc console

Based on patch from Aron Griffis

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Sun, 12 Aug 2007 20:50:32 +0000 (14:50 -0600)]
merge with linux-2.6.18-xen.hg

17 years ago[IA64] vga_con doesn't exist without CONFIG_VGA_CONSOLE
Alex Williamson [Sun, 12 Aug 2007 18:09:27 +0000 (12:09 -0600)]
[IA64] vga_con doesn't exist without CONFIG_VGA_CONSOLE

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agoxen: Remove unused "cpu_set_initialized"
kfraser [Thu, 9 Aug 2007 15:16:28 +0000 (16:16 +0100)]
xen: Remove unused "cpu_set_initialized"
Signed-off-by: Chris Lalancette <clalance@redhat.com>
17 years agoSuppress all use of ISA DMA on Xen.
kfraser [Thu, 9 Aug 2007 15:13:10 +0000 (16:13 +0100)]
Suppress all use of ISA DMA on Xen.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoxen: Two comment fixes.
kfraser [Tue, 7 Aug 2007 08:37:41 +0000 (09:37 +0100)]
xen: Two comment fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxencons: Default to xvc0. 'xencons=tty' gets old domU behaviour.
kfraser [Tue, 7 Aug 2007 07:58:08 +0000 (08:58 +0100)]
xencons: Default to xvc0. 'xencons=tty' gets old domU behaviour.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agomerge with linux-2.6.18-xen.hg
Alex Williamson [Wed, 1 Aug 2007 22:41:06 +0000 (16:41 -0600)]
merge with linux-2.6.18-xen.hg

17 years ago[IA64] Introduce xen specific gate page.
Alex Williamson [Wed, 1 Aug 2007 17:23:36 +0000 (11:23 -0600)]
[IA64] Introduce xen specific gate page.

With this transparent paravirtualization over head is eliminated.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Preparation patch for xen specivic gate page
Alex Williamson [Wed, 1 Aug 2007 15:53:36 +0000 (09:53 -0600)]
[IA64] Preparation patch for xen specivic gate page

Move __kernel_sigtramp up to allow to increase in
__kernel_syscall_via_epc size.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Set rr0 to rr4 hyperprivop
Alex Williamson [Wed, 1 Aug 2007 15:44:54 +0000 (09:44 -0600)]
[IA64] Set rr0 to rr4 hyperprivop

Introduce ia64_set_rr0_to_rr4() and paravirtualize it to eliminate
hyperprivop overhead.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[NET] netloop: Do not clobber cloned skb page frags
kfraser [Wed, 1 Aug 2007 14:16:46 +0000 (15:16 +0100)]
[NET] netloop: Do not clobber cloned skb page frags

The netloop driver tries to localise foreign mappings by
copying them.  Unfortunately, it does so by directly modifying
skb page frags without checking whether the skb is cloned or
not.  In fact, the packet is going to be cloned more often
than not.

This may result in either data corruption on DMA or a
page fault in dom0 which kills the whole machine.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agoblktap: Remove broken debug code.
kfraser [Wed, 1 Aug 2007 08:23:46 +0000 (09:23 +0100)]
blktap: Remove broken debug code.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoWait for up to 5 minutes for devices to connect.
Ian Campbell [Tue, 31 Jul 2007 14:47:11 +0000 (15:47 +0100)]
Wait for up to 5 minutes for devices to connect.

Heavy load in domain 0 can cause very long delays setting up the
backend.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years ago[IA64] Update buildconfigs
Alex Williamson [Mon, 30 Jul 2007 17:46:14 +0000 (11:46 -0600)]
[IA64] Update buildconfigs

XEN_DEVMEM is now dropped by make oldconfig

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Fix xen_ssm_i()
Alex Williamson [Mon, 30 Jul 2007 17:05:55 +0000 (11:05 -0600)]
[IA64] Fix xen_ssm_i()

Otherwise interruption may not be delivered.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Mark resource list functions __devinit
Alex Williamson [Mon, 30 Jul 2007 17:03:04 +0000 (11:03 -0600)]
[IA64] Mark resource list functions __devinit

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Issue ioremap hypercall in pci_acpi_scan_root()
Alex Williamson [Mon, 30 Jul 2007 17:01:27 +0000 (11:01 -0600)]
[IA64] Issue ioremap hypercall in pci_acpi_scan_root()

This setups up mapping in /dev/mem.

Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
17 years ago[IA64] Disable paravirtualization to remap /dev/mem.
Alex Williamson [Mon, 30 Jul 2007 16:53:36 +0000 (10:53 -0600)]
[IA64] Disable paravirtualization to remap /dev/mem.

Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
17 years ago[IA64] Revert paravirtualization to ioremap /proc/pci
Alex Williamson [Mon, 30 Jul 2007 16:51:55 +0000 (10:51 -0600)]
[IA64] Revert paravirtualization to ioremap /proc/pci

Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
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 agomerge with linux-2.6.18-xen.hg
Alex Williamson [Fri, 27 Jul 2007 14:15:50 +0000 (08:15 -0600)]
merge with linux-2.6.18-xen.hg

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 ago[IA64] defconfig update
Alex Williamson [Thu, 26 Jul 2007 20:33:50 +0000 (14:33 -0600)]
[IA64] defconfig update

Remove Radeon framebuffer, even if you have a radeon VGA, you
don't necessarily want the framebuffer.  Add framebuffer console
support for pvfb.  Other changes pulled in automatically from
make oldconfig.

Signed-off-by: Alex Williamson <alex.williamson@hp.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 ago[IA64] Fix Linux VGA autodetection
Alex Williamson [Wed, 25 Jul 2007 19:16:28 +0000 (13:16 -0600)]
[IA64] Fix Linux VGA autodetection

This patch re-orders setup_arch in xenlinux slightly.  This allows us
to check if conswitchp was setup early by the HCDP code to point to a
VGA console.  Also fix a bug w/ zero'ing the preferred console name string.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Fix swiotlb_dma_supported
Alex Williamson [Wed, 25 Jul 2007 19:07:30 +0000 (13:07 -0600)]
[IA64] Fix swiotlb_dma_supported

CD/DVD-ROM on recent Dom0 is not available.
After some investigation, IDE controller is disabled
by reason that io_tlb_end is out of bounds.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.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 ago[IA64] Cleanup vdso paravirtualization.
Alex Williamson [Thu, 19 Jul 2007 22:02:02 +0000 (16:02 -0600)]
[IA64] Cleanup vdso paravirtualization.

Hyperprivop calling convention was changed such that vpsr.ic
is left intact.  So we don't have to worry about itlb miss
fault with vpsr.ic = 0

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Trivial compilation fix when CONFIG_XEN=n
Alex Williamson [Thu, 19 Jul 2007 21:45:59 +0000 (15:45 -0600)]
[IA64] Trivial compilation fix when CONFIG_XEN=n

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
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 ago[IA64] counter part of changeset: 93:08cf42135056
Alex Williamson [Sun, 15 Jul 2007 19:48:57 +0000 (13:48 -0600)]
[IA64] counter part of changeset: 93:08cf42135056

"dma_map_sg() must handle multi-page segments."

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] counter part of 99:f15643dab1ca
Alex Williamson [Sun, 15 Jul 2007 19:44:09 +0000 (13:44 -0600)]
[IA64] counter part of 99:f15643dab1ca

"swiotlb: Handle sync invocations on subregions of a mapped region."

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Add stop bit after brl in vdso area
Alex Williamson [Sun, 15 Jul 2007 19:38:06 +0000 (13:38 -0600)]
[IA64] Add stop bit after brl in vdso area

This patch is catch up for upstream fix.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Fix vdso paravirtualization.
Alex Williamson [Sun, 15 Jul 2007 19:34:19 +0000 (13:34 -0600)]
[IA64] Fix vdso paravirtualization.

When on baremetal, xen address must not be referenced.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
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>