]> xenbits.xensource.com Git - xenclient/kernel.git/log
xenclient/kernel.git
16 years agoimported patch git-e82c354bb26a9da6fed1fadf7082d68055b7d1db-xen git-e82c354bb26a9da6fed1fadf7082d68055b7d1db
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
imported patch git-e82c354bb26a9da6fed1fadf7082d68055b7d1db-xen

16 years agocommit e82c354bb26a9da6fed1fadf7082d68055b7d1db git-61d488da9bad8d1511d18291006bd2dd728f173d
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit e82c354bb26a9da6fed1fadf7082d68055b7d1db
Author: Len Brown <len.brown@intel.com>
Date:   Thu Dec 21 01:29:59 2006 -0500

    ACPI: fix section mis-match build warning

    Dunno why this pops out in only in the allmodconfig build.
    Though the warning is accurate, all the callers of the flagged
    non __init function are __init, this is not a functional change.

    WARNING: vmlinux - Section mismatch: reference to .init.data:acpi_sci_flags from .text between 'acpi_sci_ioapic_setup' (at offset 0xc010f0a
    6) and 'acpi_gsi_to_irq'                                                                                                                   WARNING: vmlinux - Section mismatch: reference to .init.text:mp_override_legacy_irq from .text between 'acpi_sci_ioapic_setup' (at offset 0
    xc010f0de) and 'acpi_gsi_to_irq'                                                                                                           WARNING: vmlinux - Section mismatch: reference to .init.data:acpi_sci_override_gsi from .text between 'acpi_sci_ioapic_setup' (at offset 0x
    c010f0e4) and 'acpi_gsi_to_irq'

Signed-off-by: Len Brown <len.brown@intel.com>
16 years agocommit 61d488da9bad8d1511d18291006bd2dd728f173d git-5f0f1c166647860bb2c2a206338e7d9af3834753
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit 61d488da9bad8d1511d18291006bd2dd728f173d
Author: Adrian Bunk <bunk@stusta.de>
Date:   Sat Jul 21 04:37:39 2007 -0700

    i386: intel_cacheinfo.c:find_num_cache_leaves() should be __cpuinit

    WARNING: arch/i386/kernel/built-in.o(.text+0xb6a7): Section mismatch: reference to .init.text:find_num_cache_leaves (between 'init_intel_cacheinfo' and 'cache_shared_cpu_map_setup')

    It could be __init_refok, but gcc >= 4.0 anyway inlines it into the
    __cpuinit init_intel_cacheinfo(), and IMHO it's too small for "noinline
    __init".

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 years agocommit 5f0f1c166647860bb2c2a206338e7d9af3834753 git-a6c4e076ee4c1ea670e4faa55814e63dd08e3f29-xen
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit 5f0f1c166647860bb2c2a206338e7d9af3834753
Author: Magnus Damm <magnus@valinux.co.jp>
Date:   Tue Sep 26 10:52:36 2006 +0200

    [PATCH] i386: mark cpu identify functions as __cpuinit

    Mark i386-specific cpu identification functions as __cpuinit. They are all
    only called from arch/i386/common.c:identify_cpu() that already is marked as
    __cpuinit.

Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agoimported patch git-a6c4e076ee4c1ea670e4faa55814e63dd08e3f29-xen git-a6c4e076ee4c1ea670e4faa55814e63dd08e3f29
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
imported patch git-a6c4e076ee4c1ea670e4faa55814e63dd08e3f29-xen

16 years agocommit a6c4e076ee4c1ea670e4faa55814e63dd08e3f29 git-aae5f662a32c35b1a962627535acb588d48ff5f9
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit a6c4e076ee4c1ea670e4faa55814e63dd08e3f29
Author: Jeremy Fitzhardinge <jeremy@goop.org>
Date:   Wed May 2 19:27:12 2007 +0200

    [PATCH] i386: clean up identify_cpu

    identify_cpu() is used to identify both the boot CPU and secondary
    CPUs, but it performs some actions which only apply to the boot CPU.
    Those functions are therefore really __init functions, but because
    they're called by identify_cpu(), they must be marked __cpuinit.

    This patch splits identify_cpu() into identify_boot_cpu() and
    identify_secondary_cpu(), and calls the appropriate init functions
    from each.  Also, identify_boot_cpu() and all the functions it
    dominates are marked __init.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agocommit aae5f662a32c35b1a962627535acb588d48ff5f9 git-ee5bfa642a0d4b0f6ec6200bf96e5e647f93fcdb
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit aae5f662a32c35b1a962627535acb588d48ff5f9
Author: Sam Ravnborg <sam@ravnborg.org>
Date:   Mon Feb 26 16:45:41 2007 +0100

    kbuild: whitelist section mismatch in init/main.c

    In init/main.c we have a reference from rest_init() to .init.text
    which is intentional.
    Rename the function 'init' to 'kernel_init' to make it a
    kernel wide unique symbol and whitelist the reference.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
16 years agocommit ee5bfa642a0d4b0f6ec6200bf96e5e647f93fcdb git-88d20328cd66ee05f9b7f4d414640700db69d82b
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit ee5bfa642a0d4b0f6ec6200bf96e5e647f93fcdb
Author: Vivek Goyal <vgoyal@in.ibm.com>
Date:   Tue Feb 13 13:26:22 2007 +0100

    [PATCH] generic: Break init() in two parts to avoid MODPOST warnings

    o init() is a non __init function in .text section but it calls many
      functions which are in .init.text section. Hence MODPOST generates lots
      of cross reference warnings on i386 if compiled with CONFIG_RELOCATABLE=y

    WARNING: vmlinux - Section mismatch: reference to .init.text:smp_prepare_cpus from .text between 'init' (at offset 0xc0101049) and 'rest_init'
    WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init from .text between 'init' (at offset 0xc010104e) and 'rest_init'
    WARNING: vmlinux - Section mismatch: reference to .init.text:spawn_ksoftirqd from .text between 'init' (at offset 0xc0101053) and 'rest_init'

    o This patch breaks down init() in two parts. One part which can go
      in .init.text section and can be freed and other part which has to
      be non __init(init_post()). Now init() calls init_post() and init_post()
      does not call any functions present in .init sections. Hence getting
      rid of warnings.

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agocommit 88d20328cd66ee05f9b7f4d414640700db69d82b git-f8657e1b55901e6c227094258d1fa3642fa242bd-xen
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit 88d20328cd66ee05f9b7f4d414640700db69d82b
Author: Vivek Goyal <vgoyal@in.ibm.com>
Date:   Thu Jan 11 01:52:44 2007 +0100

    [PATCH] i386: Convert some functions to __init to avoid MODPOST warnings

    o Some functions which should have been in init sections as they are called
      only once. Put them in init sections. Otherwise MODPOST generates warning
      as these functions are placed in .text and they end up accessing something
      in init sections.

    WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init
    from .text between 'do_pre_smp_initcalls' (at offset 0xc01000d1) and
    'run_init_process'

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agoimported patch git-f8657e1b55901e6c227094258d1fa3642fa242bd-xen git-f8657e1b55901e6c227094258d1fa3642fa242bd
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
imported patch git-f8657e1b55901e6c227094258d1fa3642fa242bd-xen

16 years agocommit f8657e1b55901e6c227094258d1fa3642fa242bd git-9b5587cdd9f2a8dd4a010a93a6380051d43a3c16
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit f8657e1b55901e6c227094258d1fa3642fa242bd
Author: Vivek Goyal <vgoyal@in.ibm.com>
Date:   Tue Feb 13 13:26:22 2007 +0100

    [PATCH] i386: move startup_32() in text.head section

    o Entry startup_32 was in .text section but it was accessing some init
      data too and it prompts MODPOST to generate compilation warnings.

    WARNING: vmlinux - Section mismatch: reference to .init.data:boot_params from
    .text between '_text' (at offset 0xc0100029) and 'startup_32_smp'
    WARNING: vmlinux - Section mismatch: reference to .init.data:boot_params from
    .text between '_text' (at offset 0xc0100037) and 'startup_32_smp'
    WARNING: vmlinux - Section mismatch: reference to
    .init.data:init_pg_tables_end from .text between '_text' (at offset
    0xc0100099) and 'startup_32_smp'

    o Can't move startup_32 to .init.text as this entry point has to be at the
      start of bzImage. Hence moved startup_32 to a new section .text.head and
      instructed MODPOST to not to generate warnings if init data is being
      accessed from .text.head section. This code has been audited.

    o SMP boot up code (startup_32_smp) can go into .init.text if CPU hotplug
      is not supported. Otherwise it generates more warnings

    WARNING: vmlinux - Section mismatch: reference to .init.data:new_cpu_data from
    .text between 'checkCPUtype' (at offset 0xc0100126) and 'is486'
    WARNING: vmlinux - Section mismatch: reference to .init.data:new_cpu_data from
    .text between 'checkCPUtype' (at offset 0xc0100130) and 'is486'

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agocommit 9b5587cdd9f2a8dd4a010a93a6380051d43a3c16 git-cd6f5b8051efe03b90a1dd6d63a642f78ec4e60d
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit 9b5587cdd9f2a8dd4a010a93a6380051d43a3c16
Author: Adrian Bunk <bunk@stusta.de>
Date:   Tue Jul 10 14:44:37 2007 +0200

    tokenring/3c359.c:xl_init() must be __devinit

    This patch fixes the following section mismatch:

    <--  snip  -->

    ...
      MODPOST vmlinux
    WARNING: drivers/built-in.o(.text+0x361ef1): Section mismatch: reference to .init.text:xl_init (between 'xl_probe' and 'xl_hw_reset')
    ...

    <--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agocommit cd6f5b8051efe03b90a1dd6d63a642f78ec4e60d git-4e50a8e3c564add2f621dadb752a44872e93c754
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit cd6f5b8051efe03b90a1dd6d63a642f78ec4e60d
Author: Adrian Bunk <bunk@stusta.de>
Date:   Tue Jul 10 14:44:49 2007 +0200

    sunhme.c:quattro_pci_find() must be __devinit

    This patch fixes the following section mismatch:

    <--  snip  -->

    ...
      MODPOST vmlinux
    WARNING: drivers/built-in.o(.text+0x272f8b): Section mismatch: reference to .init.text:quattro_pci_find (between 'happy_meal_pci_probe' and 'happy_meal_pci_remove')
    ...

    <--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agocommit 4e50a8e3c564add2f621dadb752a44872e93c754 git-4f092432bd443416b649519c3d5405aa55ad2d15
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit 4e50a8e3c564add2f621dadb752a44872e93c754
Author: Adrian Bunk <bunk@stusta.de>
Date:   Tue Jul 10 14:44:35 2007 +0200

    sis900_mii_probe() must be __devinit

    This patch fixes the following section mismatch:

    <--  snip  -->

    ...
      MODPOST vmlinux
    WARNING: drivers/built-in.o(.text+0x298170): Section mismatch: reference to .init.text:sis900_mii_probe (between 'sis900_probe' and 'sis900_default_phy')
    ...

    <--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agocommit 4f092432bd443416b649519c3d5405aa55ad2d15 git-8aee929eda10b2502fd76c0bf2003f89f7992820
t_jeang [Tue, 6 Jan 2009 12:05:21 +0000 (12:05 +0000)]
commit 4f092432bd443416b649519c3d5405aa55ad2d15
Author: Adrian Bunk <bunk@stusta.de>
Date:   Tue Jul 10 14:44:47 2007 +0200

    rrunner.c:rr_init() must be __devinit

    This patch fixes the following section mismatch:

    <--  snip  -->

    ...
      MODPOST vmlinux
    WARNING: drivers/built-in.o(.text+0x26e3f2): Section mismatch: reference to .init.text:rr_init (between 'rr_init_one' and 'rr_remove_one')
    ...

    <--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agocommit 8aee929eda10b2502fd76c0bf2003f89f7992820 git-0a3c4bdc1b197a7d37fc75643a68daf45fe0a7cc
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 8aee929eda10b2502fd76c0bf2003f89f7992820
Author: Adrian Bunk <bunk@stusta.de>
Date:   Fri Aug 10 15:14:18 2007 -0700

    [ATM]: fore200e_param_bs_queue() must be __devinit

    WARNING: drivers/built-in.o(.text+0x6203bb): Section mismatch: reference to .init.text:fore200e_param_bs_queue (between 'fore200e_initialize' and 'fore200e_monitor_putc')

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocommit 0a3c4bdc1b197a7d37fc75643a68daf45fe0a7cc git-ebf88a9e7bfd7251fa80888c29b60aa4c86e2941
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 0a3c4bdc1b197a7d37fc75643a68daf45fe0a7cc
Author: Al Viro <viro@ftp.linux.org.uk>
Date:   Tue Jan 23 12:25:08 2007 +0000

    [PATCH] horizon.c: missing __devinit

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 years agocommit ebf88a9e7bfd7251fa80888c29b60aa4c86e2941 git-de24a193124e40fc4f23160336982de1565d51fc
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit ebf88a9e7bfd7251fa80888c29b60aa4c86e2941
Author: Al Viro <viro@ftp.linux.org.uk>
Date:   Wed Mar 14 09:05:01 2007 +0000

    [PATCH] zatm __init abuse

    zatm_init() and zatm_start() should be __devinit (the former is
    not module init, despite the name - it's a helper for PCI ->probe())

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 years agocommit de24a193124e40fc4f23160336982de1565d51fc git-977a415f2b70b5693aaa23b1a16ad57ea20a1dce
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit de24a193124e40fc4f23160336982de1565d51fc
Author: Adrian Bunk <bunk@stusta.de>
Date:   Mon Jul 16 18:34:04 2007 -0700

    [ATM]: [lanai] sram_test_word() must be __devinit

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: chas williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocommit 977a415f2b70b5693aaa23b1a16ad57ea20a1dce git-5b7c714ec27584b18279b741b6043016f8adb9de
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 977a415f2b70b5693aaa23b1a16ad57ea20a1dce
Author: David S. Miller <davem@sunset.davemloft.net>
Date:   Tue Oct 24 16:16:39 2006 -0700

    [ATM] horizon: read_bia() needs to be __devinit

    Thanks to Randy Dunlap.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocommit 5b7c714ec27584b18279b741b6043016f8adb9de git-7af8b66004fa827958b4871112e59a07db5b3f6b
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 5b7c714ec27584b18279b741b6043016f8adb9de
Author: Roland Dreier <roland@digitalvampire.org>
Date:   Sun Sep 24 20:09:33 2006 -0700

    [ATM] he: Fix __init/__devinit conflict

    he_init_one() is declared __devinit, but calls lots of init functions
    that are marked __init.  However, if CONFIG_HOTPLUG is enabled,
    __devinit functions go into normal .text, which leads to

        WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x2130) and 'he_service_tbrq'

    Fix this by changing the __init functions to __devinit.

Signed-off-by: Roland Dreier <roland@digitalvampire.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocommit 7af8b66004fa827958b4871112e59a07db5b3f6b git-2fa8a050a0026eadbb39a2f281011991e00fe29a-xen
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 7af8b66004fa827958b4871112e59a07db5b3f6b
Author: Pierre Ossman <drzeus@drzeus.cx>
Date:   Tue Oct 10 14:20:31 2006 -0700

    ACPI: fix section for CPU init functions

    The ACPI processor init functions should be marked as __cpuinit as they use
    structures marked with __cpuinitdata.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
16 years agoApply to mach-xen too. git-2fa8a050a0026eadbb39a2f281011991e00fe29a
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
Apply to mach-xen too.

commit 2fa8a050a0026eadbb39a2f281011991e00fe29a
Author: Jeff Garzik <jeff@garzik.org>
Date:   Tue Feb 13 13:26:24 2007 +0100

    [PATCH] x86-64: define dma noncoherent API functions

    x86-64 is missing these:

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agocommit 2fa8a050a0026eadbb39a2f281011991e00fe29a git-9f6026b8c308365d955faaf31dd0f457266d11f8
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 2fa8a050a0026eadbb39a2f281011991e00fe29a
Author: Jeff Garzik <jeff@garzik.org>
Date:   Tue Feb 13 13:26:24 2007 +0100

    [PATCH] x86-64: define dma noncoherent API functions

    x86-64 is missing these:

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agocommit 9f6026b8c308365d955faaf31dd0f457266d11f8 git-24420760c3701ff422b344e047a20ca09b76fc64
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 9f6026b8c308365d955faaf31dd0f457266d11f8
Author: Andi Kleen <ak@suse.de>
Date:   Tue Feb 13 13:26:25 2007 +0100

    [PATCH] x86-64: Fix wrong gcc check in bitops.h

    gcc 5.0 will likely not have the constraint problem
Signed-off-by: Andi Kleen <ak@suse.de>
16 years agocommit 24420760c3701ff422b344e047a20ca09b76fc64 git-d10be6d1bdb0c901b78244872de3cc1c1b6c3fb2
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit 24420760c3701ff422b344e047a20ca09b76fc64
Author: Andi Kleen <ak@suse.de>
Date:   Thu Jan 11 01:52:44 2007 +0100

    [PATCH] x86-64: Use different constraint for gcc < 4.1 in bitops.h

    +m is really correct for a RMW instruction, but some older gccs
    error out. I finally gave in and ifdefed it.

    This fixes compilation errors with some compiler version.

Signed-off-by: Andi Kleen <ak@suse.de>
16 years agocommit d10be6d1bdb0c901b78244872de3cc1c1b6c3fb2 revert-linux-2.6.18-xen.hg-582.b29a06ba7a5f
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
commit d10be6d1bdb0c901b78244872de3cc1c1b6c3fb2
Author: Mark Huang <mlhuang@CS.Princeton.EDU>
Date:   Fri Sep 29 01:59:34 2006 -0700

    [PATCH] module_subsys: initialize earlier

    Initialize module_subsys earlier (or at least earlier than devices) since
    it could be used very early in the boot process if kmod loads a module
    before the device initcalls.  Otherwise, kmod will crash in
    kernel/module.c:mod_sysfs_setup() since the kset in module_subsys is not
    initialized yet.

    I only noticed this problem because occasionally, kmod loads the modules
    for my SCSI and Ethernet adapters very early, during the boot process
    itself.  I don't quite understand why it loads them sometimes and doesn't
    load them other times.  Or who is telling kmod to do so.  Can someone
    explain?

Signed-off-by: Mark Huang <mlhuang@cs.princeton.edu>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
16 years agoimported patch revert-linux-2.6.18-xen.hg-582.b29a06ba7a5f revert-linux-2.6.18-xen.hg-598.f1d726b984a3
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
imported patch revert-linux-2.6.18-xen.hg-582.b29a06ba7a5f

16 years agoimported patch revert-linux-2.6.18-xen.hg-598.f1d726b984a3 linux-2.6.18-xen.hg-764.618fc299e2f1
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
imported patch revert-linux-2.6.18-xen.hg-598.f1d726b984a3

16 years agonetback: handle non-netback foreign pages linux-2.6.18-xen.hg-717-ac9a6209c679
Keir Fraser [Thu, 18 Dec 2008 11:51:36 +0000 (11:51 +0000)]
netback: handle non-netback foreign pages

An SKB can contain pages which are foreign but not tracked by netback,
such as those created by gnttab_copy_grant_page when in
NETBK_DELAYED_COPY_SKB mode. These pages do not have a mapping field
which points to a valid offset in the pending_tx_info array.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
16 years agoimported patch linux-2.6.18-xen.hg-717-ac9a6209c679 linux-2.6.18-xen.hg-716-d49054ec0cc6
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
imported patch linux-2.6.18-xen.hg-717-ac9a6209c679

16 years agoimported patch linux-2.6.18-xen.hg-716-d49054ec0cc6 linux-2.6.18-xen.hg-685-b54652ee29ef qbase
t_jeang [Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)]
imported patch linux-2.6.18-xen.hg-716-d49054ec0cc6

16 years agoxen: fix kdump kernel crash on Xen3.2 qparent
Keir Fraser [Thu, 2 Oct 2008 10:29:02 +0000 (11:29 +0100)]
xen: fix kdump kernel crash on Xen3.2

The kernel is supposed to create some "Crash note" resources (children
of the "Hypervisor code and data" resource in /proc/iomem).  However,
when running on Xen 3.2, xen_machine_kexec_setup_resources()
encounters an error and returns prior to doing this.

The error occurs when it calls the "kexec_get_range" hypercall to
determine the location of the "vmcoreinfo".  This was only implemented
in Xen 3.3.

This patch makes the kernel handle this error gracefully by simply not
creating the sysfs file "hypervisor/vmcoreinfo" if the hypervisor is
unable to provide the info - rather than bailing out of
xen_machine_kexec_setup_resources() early.

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
16 years agoxen: Fix 32-bit build by fixing wrmsr_safe() usage.
Keir Fraser [Fri, 12 Sep 2008 06:24:53 +0000 (07:24 +0100)]
xen: Fix 32-bit build by fixing wrmsr_safe() usage.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoACPI: Backport latest T-state support from latest Linux upstream
Keir Fraser [Thu, 11 Sep 2008 15:52:15 +0000 (16:52 +0100)]
ACPI: Backport latest T-state support from latest Linux upstream

The purpose is to:
 - add ACPI 3.0 _TPC _TSS _PTC throttling support
 - Enable MSR (FixedHW) support for T-States
 - Update the t-state for every affected cpu when t-state is changed

The backport source is below Linux git tree index:
commit 93811d94f7e9bcfeed7d6ba75ea5d9c80a70ab95
Date:   Tue Sep 9 12:23:41 2008 -0700

Signed-off-by: Wei Gang <gang.wei@intel.com>
16 years agopciback: Fix kmalloc() usage to fix build.
Keir Fraser [Wed, 10 Sep 2008 09:54:08 +0000 (10:54 +0100)]
pciback: Fix kmalloc() usage to fix build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agox86: Enable PCI_MSI in default configs.
Keir Fraser [Wed, 10 Sep 2008 09:48:22 +0000 (10:48 +0100)]
x86: Enable PCI_MSI in default configs.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoblktap: Fix Reconnect demand by Frontend
Keir Fraser [Tue, 9 Sep 2008 14:13:29 +0000 (15:13 +0100)]
blktap: Fix Reconnect demand by Frontend

Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
16 years agolinux: make Xen cpufreq handling also work without _PSD objects
Keir Fraser [Mon, 8 Sep 2008 13:02:13 +0000 (14:02 +0100)]
linux: make Xen cpufreq handling also work without _PSD objects

_PSD objects are optional according to the ACPI spec.

Also eliminate a pointless static variable.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/pci-msi: translate Xen-provided PIRQs (take 2)
Keir Fraser [Mon, 8 Sep 2008 12:13:35 +0000 (13:13 +0100)]
linux/pci-msi: translate Xen-provided PIRQs (take 2)

Previously, the kernel depended upon Xen's NR_IRQS to be no larger
than the kernel's NR_PIRQS.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agopciback: Avoid large array allocation on kernel stack.
Keir Fraser [Sat, 6 Sep 2008 13:14:42 +0000 (14:14 +0100)]
pciback: Avoid large array allocation on kernel stack.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoRevert 654:8925ce7552528 (linux/pci-msi: translate Xen-provided PIRQs)
Keir Fraser [Fri, 5 Sep 2008 11:39:29 +0000 (12:39 +0100)]
Revert 654:8925ce7552528 (linux/pci-msi: translate Xen-provided PIRQs)

Breaks the -xenU configuration ("MAX_IO_APICS undefined")

Also implicated in kernel crash during save/restore in our automated
tests.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoxen: make xenoprof local variables static
Keir Fraser [Fri, 5 Sep 2008 10:12:55 +0000 (11:12 +0100)]
xen: make xenoprof local variables static

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agoMSI-X: Fix pciback_enable_msix().
Keir Fraser [Thu, 4 Sep 2008 14:10:11 +0000 (15:10 +0100)]
MSI-X: Fix pciback_enable_msix().
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
16 years agolinux: print at least a message if MSI-X restore failed
Keir Fraser [Thu, 4 Sep 2008 10:30:39 +0000 (11:30 +0100)]
linux: print at least a message if MSI-X restore failed

I'm not sure how to properly recover from that condition, but at least
don't let it happen silently.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/pci-msi: translate Xen-provided PIRQs
Keir Fraser [Thu, 4 Sep 2008 10:30:12 +0000 (11:30 +0100)]
linux/pci-msi: translate Xen-provided PIRQs

Previously, the kernel depended upon Xen's NR_IRQS to be no larger
than the kernel's NR_PIRQS.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agoSync Xen public headers with xen-unstable.
Keir Fraser [Mon, 1 Sep 2008 09:46:19 +0000 (10:46 +0100)]
Sync Xen public headers with xen-unstable.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoxen: don't round up swiotlb slab count
Keir Fraser [Fri, 29 Aug 2008 15:12:50 +0000 (16:12 +0100)]
xen: don't round up swiotlb slab count

This has been unnecessary for a long time, as
xen_create_contiguous_region() is no longer called on the whole area
at once, and the rounding can (under certain circumstances) prevent
the kernel from successfully booting when a larger than the default
size is needed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agonetback: Ignore duplicate notifications of frontend switch to
Keir Fraser [Thu, 21 Aug 2008 09:36:07 +0000 (10:36 +0100)]
netback: Ignore duplicate notifications of frontend switch to
XenbusStateConnected.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agolinux/x86-64: remove _TIF_SECCOMP check from ret_from_fork
Keir Fraser [Mon, 18 Aug 2008 09:52:29 +0000 (10:52 +0100)]
linux/x86-64: remove _TIF_SECCOMP check from ret_from_fork

Native doesn't have this, and I can't see why the Xen kernel should be
different here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years ago[IA64] xencomm support for HVMOP_set_mem_type.
Isaku Yamahata [Thu, 14 Aug 2008 02:03:53 +0000 (11:03 +0900)]
[IA64] xencomm support for HVMOP_set_mem_type.

remove the runtime warning when HVMOP_set_mem_type is used.
> xencomm_privcmd_hvm_op: unknown HVMOP 8
add xencomm support of HVMOP_set_mem_type.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years ago[IA64] Fix xc_save for PV domains
Isaku Yamahata [Wed, 13 Aug 2008 13:50:27 +0000 (22:50 +0900)]
[IA64] Fix xc_save for PV domains

Saving PV domains fails with the following error:
  xc_save: failed to subscribe to domain: -1
This adds XEN_DOMCTL_subscribe to xencomm.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
16 years agoFix the build after public header sync.
Keir Fraser [Wed, 13 Aug 2008 13:01:49 +0000 (14:01 +0100)]
Fix the build after public header sync.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoSync xen public headers.
Keir Fraser [Wed, 13 Aug 2008 12:53:31 +0000 (13:53 +0100)]
Sync xen public headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoMSI-X: enhancement
Keir Fraser [Wed, 13 Aug 2008 12:46:14 +0000 (13:46 +0100)]
MSI-X: enhancement

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
16 years agoSync domctl.h for XEN_DOMCTL_subscribe
Keir Fraser [Wed, 13 Aug 2008 09:00:09 +0000 (10:00 +0100)]
Sync domctl.h for XEN_DOMCTL_subscribe

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
16 years agoRevert 630:9c730ffb48f. Crashes on boot.
Keir Fraser [Mon, 11 Aug 2008 12:39:00 +0000 (13:39 +0100)]
Revert 630:9c730ffb48f. Crashes on boot.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agomerge with linux-2.6.18-xen.hg
Isaku Yamahata [Mon, 11 Aug 2008 02:05:57 +0000 (11:05 +0900)]
merge with linux-2.6.18-xen.hg

16 years ago[IA64] Fix PV driver domains - xenlinux xencomm support
Isaku Yamahata [Fri, 8 Aug 2008 02:39:35 +0000 (11:39 +0900)]
[IA64] Fix PV driver domains - xenlinux xencomm support

This adds xencomm support for several PHYSDEVOP calls (map_pirq and
unmap_pirq) as well as XEN_DOMCTL_assign_device.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
16 years agomerge with linux-2.6.18-xen.hg
Isaku Yamahata [Thu, 7 Aug 2008 02:58:10 +0000 (11:58 +0900)]
merge with linux-2.6.18-xen.hg

16 years agoDon't WARN_ON -ENOSYS from PHYSDEVOP_manage_pci_remove
Keir Fraser [Fri, 8 Aug 2008 09:54:59 +0000 (10:54 +0100)]
Don't WARN_ON -ENOSYS from PHYSDEVOP_manage_pci_remove

We let -ENOSYS slip through on the add side to support old
hypervisors, let's do the same on the remove end so we don't get stack
dumps during bootup.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
16 years ago[IA64] improve response time in dom 0 at creating a guest domain
Isaku Yamahata [Tue, 5 Aug 2008 03:19:38 +0000 (12:19 +0900)]
[IA64] improve response time in dom 0 at creating a guest domain

The hypercall takes several hundred mili seconds,
and it takes around 5 mili seconds with my new patch.
Time of one hypercall should be smaller than a vcpu time slice.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
16 years agoxen suspend: Fix suspend-via-evtchn reentrancy.
Keir Fraser [Thu, 31 Jul 2008 14:33:54 +0000 (15:33 +0100)]
xen suspend: Fix suspend-via-evtchn reentrancy.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agonet accel: Don't set accel watch on suspend_cancel unless we're in a
Keir Fraser [Thu, 31 Jul 2008 08:46:58 +0000 (09:46 +0100)]
net accel: Don't set accel watch on suspend_cancel unless we're in a
state where it has meaning.

From: Kieran Mansley <kmansley@solarflare.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agolinux/blkfront: Add "media" file to vbd sysfs directory
Keir Fraser [Tue, 29 Jul 2008 15:16:31 +0000 (16:16 +0100)]
linux/blkfront: Add "media" file to vbd sysfs directory

Patch adds "media" file to the vbd sysfs directory.  File contains a
string,  cdrom or disk.

Currently all PV vbd devices are seen by HAL as "disk".  Applications
that query HAL info.capabilities attribute to determine a block
devices capabilities fail to see a PV cdrom as having CDROM
capabilities. With the attached patch and a small corresponding patch
to HAL, applications that query HAL for the storage type of the block
device will see it as a disk or a cdrom.  Standard Linux IDE devices
use this same mechanism.

lshal of vbd without patches:
     info.capabilities = {'storage', 'block'} (string list)
lshal of vbd with patches:
    info.capabilities = {'storage', 'block', 'storage.cdrom'} (string
     list)

Signed-off-by: Pat Campbell <plc@novell.com>
16 years agoDecouple xen controlled cpufreq path from dom0 CONFIG_CPU_FREQ,
Keir Fraser [Tue, 29 Jul 2008 12:26:15 +0000 (13:26 +0100)]
Decouple xen controlled cpufreq path from dom0 CONFIG_CPU_FREQ,
since only processor_perflib.o is required for necessary freq
information parse. This avoids hacks to cpufreq drivers and
fortunately the change is not intrusive.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Jinsong Liu <jinsong.liu@inte.com>

16 years agoMove xen-pm options from dom0 cmdline option to start info.
Keir Fraser [Mon, 28 Jul 2008 10:43:36 +0000 (11:43 +0100)]
Move xen-pm options from dom0 cmdline option to start info.

Thus to avoid xen-pm being manually enforced by end user in dom0
cmdline but without enabling them in xen.

Signed-off-by: Wei Gang <gang.wei@intel.com>
16 years agoacpi: Fix broken extctnl mechanism.
Keir Fraser [Mon, 28 Jul 2008 10:26:33 +0000 (11:26 +0100)]
acpi: Fix broken extctnl mechanism.

Fn arch_acpi_processor_init_extcntl need to be called before any
acpi_processor init stuff, otherwise many special paths for
xen-cpu-idle & xen-cpu-freq can't get executed. So keep
arch_acpi_processor_init_extcntl call in processor_extcntl_init and
call it very early, move other stuff of processor_extcntl_init into a
new fn processor_extcntl_prepare.

Signed-off-by: Wei Gang <gang.wei@intel.com>
16 years ago[IA64] xencomm: support PHYSDEVOP_manage_pci_add/remove.
Isaku Yamahata [Mon, 28 Jul 2008 08:24:40 +0000 (17:24 +0900)]
[IA64] xencomm: support PHYSDEVOP_manage_pci_add/remove.

add support PHYSDEVOP_manage_pci_add/remove which were
newly added.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years ago[IA64] kexec: remove unnecessary #ifdef CONFIG_XEN.
Isaku Yamahata [Mon, 28 Jul 2008 08:24:37 +0000 (17:24 +0900)]
[IA64] kexec: remove unnecessary #ifdef CONFIG_XEN.

There is no specific reason to reduce memory and stack registers
for kexec. Because the page for relocate_kernel code is allocated
by kimage_alloc_pages() which calls xen_limit_pages_to_max_mfn()
so that pages are guaranteed to be machine contiguous.
Remove those unnecessary #ifdef CONFIG_XEN.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years ago[IA64] initialize /proc/iomem_machine properly when discontig mem.
Isaku Yamahata [Mon, 28 Jul 2008 08:22:46 +0000 (17:22 +0900)]
[IA64] initialize /proc/iomem_machine properly when discontig mem.

With CONFIG_DISCONTIGMEM enabled /proc/iomem_machine isn't
initialized properly so that kexec failes because kexec-tools wrongly
tries to use ia64 boot mem (or efi memmap area).
This patch fixes /proc/iomem_machine.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years ago[IA64] backport Pick highest possible saved_max_pfn for crash_dump
Isaku Yamahata [Mon, 28 Jul 2008 08:22:45 +0000 (17:22 +0900)]
[IA64] backport Pick highest possible saved_max_pfn for crash_dump

backport Upstream Linux changeset e55fdf11f3029bcd41b1b9547ad9db12c27eea76

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years ago[IA64] backport point saved_max_pfn to the max_pfn of the entire system
Isaku Yamahata [Mon, 28 Jul 2008 08:22:45 +0000 (17:22 +0900)]
[IA64] backport point saved_max_pfn to the max_pfn of the entire system

backport Upstream Linux changeset f4a570997e71b892805a1e71303d09c327af135f

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years ago[IA64] remove warning.
Isaku Yamahata [Mon, 28 Jul 2008 08:22:45 +0000 (17:22 +0900)]
[IA64] remove warning.

This patch removes the following warning.

> linux-2.6.18-xen.hg/arch/ia64/kernel/efi.c: In function 'efi_initialize_iomem_machine_resources':
> linux-2.6.18-xen.hg/arch/ia64/kernel/efi.c:1185: warning: control reaches end of non-void function

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years ago[IA64] Support timer vector IPIs in PV code
Isaku Yamahata [Mon, 28 Jul 2008 01:53:43 +0000 (10:53 +0900)]
[IA64] Support timer vector IPIs in PV code

Add support for IA64_TIMER_VECTOR as a paravirtualized IPI target

Necessary for the latest upstream Linux implementation of
check_sal_cache_flush() 3463a93def55c309f3c0d0a8aaf216be3be42d64

Upstream Linux recently added this change:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3463a93def55c309f3c0d0a8aaf216be3be42d64

Now, for a platform bug check, we issue an IPI for the IA64_TIMER_VECTOR
and wait for it to show up in the IRR.  Since a PV kernel doesn't
support a timer IPI, this never happens.  The fix is simply to tie this
into xen_send_ipi() for this case.  This doesn't actually happen on
2.6.18, but since vendors are backporting changes from upstream, I think
it's good to have this in the reference tree

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
16 years agox86_64: Build fixes.
Keir Fraser [Sun, 10 Aug 2008 17:05:09 +0000 (18:05 +0100)]
x86_64: Build fixes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agolinux/x86: fix issues with the assignment of huge amounts of memory
Keir Fraser [Fri, 8 Aug 2008 13:24:33 +0000 (14:24 +0100)]
linux/x86: fix issues with the assignment of huge amounts of memory

At the same time remove the non-applicable and broken support for the
memmap= command line option.
Also fix the overlap of the modules area with the fixmaps on x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/x86-64: use xen_new_user_pt() rather than open-coding it
Keir Fraser [Fri, 8 Aug 2008 13:22:52 +0000 (14:22 +0100)]
linux/x86-64: use xen_new_user_pt() rather than open-coding it

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux: some Kconfig adjustments
Keir Fraser [Fri, 8 Aug 2008 13:21:32 +0000 (14:21 +0100)]
linux: some Kconfig adjustments

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/acpi: more extcntl code adjustments
Keir Fraser [Fri, 8 Aug 2008 13:20:34 +0000 (14:20 +0100)]
linux/acpi: more extcntl code adjustments

Restore a preprocessor conditional for native to remain unaltered.

Add necessary definitions for being able to build with
CONFIG_ACPI_DEBUG.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agox86, xen: get_time_values_from_Xen() is not IRQ-safe.
Keir Fraser [Fri, 8 Aug 2008 11:43:57 +0000 (12:43 +0100)]
x86, xen: get_time_values_from_Xen() is not IRQ-safe.
Also the loop header should act on local variables for safety.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agomsi: Remove unnecessary warning information
Keir Fraser [Fri, 8 Aug 2008 09:57:41 +0000 (10:57 +0100)]
msi: Remove unnecessary warning information
From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agox86: restrict keyboard io ports reservation to make ipmi driver work
Keir Fraser [Fri, 25 Jul 2008 08:42:29 +0000 (09:42 +0100)]
x86: restrict keyboard io ports reservation to make ipmi driver work

Straightforward port of
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9096bd7a66efbe406910365c5206a32eed3875af

Quoting its commit message:

    x86: restrict keyboard io ports reservation to make ipmi driver
    work

    On some of our (single board computer) boards (x86) we are using
    an IPMI controller that uses I/O ports 0x62 and 0x66 for a KCS
    (keyboard controller style) IPMI system interface.

    Trying to load the openipmi driver fails, because the ports
    (0x62/0x66) are reserved for keyboard. keyboard reserves the full
    range 0x60-0x6F while it doesn't need to.

    Reserve only ports 0x60 and 0x64 for the legacy PS/2 i8042 keyboad
    controller instead of 0x60-0x6F to allow the openipmi driver to
    work.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
16 years agolinux/i386: enforce PAE
Keir Fraser [Thu, 24 Jul 2008 13:16:04 +0000 (14:16 +0100)]
linux/i386: enforce PAE

Now that building non-PAE kernels isn't really possible anymore, force
X86_PAE on when X86_XEN gets selected.

While not in this patch, include/asm-i386/mach-xen/pgtable-2level*.h
could also be removed to reflect that state.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/x86-64: (re-)add warning to set_pte_phys_ma()
Keir Fraser [Wed, 23 Jul 2008 13:21:58 +0000 (14:21 +0100)]
linux/x86-64: (re-)add warning to set_pte_phys_ma()

.. as a similar one exists in set_pte_phys() (and also in native).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/x86-64: eliminate dead code
Keir Fraser [Wed, 23 Jul 2008 13:21:16 +0000 (14:21 +0100)]
linux/x86-64: eliminate dead code

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/acpi: adjust extcntl's changes to (mostly) common code, mostly for readability
Keir Fraser [Wed, 23 Jul 2008 13:20:56 +0000 (14:20 +0100)]
linux/acpi: adjust extcntl's changes to (mostly) common code, mostly for readability

While I realize that it may have been upon my request that all these
#ifdef-s were introduced, I think this went too far here: With the
abstraction in include/acpi/processor.h in place, the code still
guarantees even without all these #ifdef-s that in native kernels
built from the same source the logic will not change.

The one thing that appears a little weak still is the NR_ACPI_CPUS
construct - nothing guarantees that the ACPI IDs are constrained to 8
bits, and hence using an array here doesn't seem either safe or
scalable looking forward. To make the issue explict, the patch adds a
respective BUG_ON().

Also remove a stray export.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agolinux/acpi: adjust extcntl code so that CONFIG_ACPI_PROCESSOR=m is possible again
Keir Fraser [Wed, 23 Jul 2008 12:37:30 +0000 (13:37 +0100)]
linux/acpi: adjust extcntl code so that CONFIG_ACPI_PROCESSOR=m is possible again

This is done by inverting the calling direction for registering the
extcntl_ops structure, similar to arch_acpi_processor_init_pdc().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agoxen: fix warnings (some errors with -Werror-implicit-function-declaration) in PCI...
Keir Fraser [Wed, 23 Jul 2008 12:36:53 +0000 (13:36 +0100)]
xen: fix warnings (some errors with -Werror-implicit-function-declaration) in PCI-MSI code

Plus a little bit of other cleanup.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agopvscsi: add retry in REPORT_LUN emulation
Keir Fraser [Wed, 23 Jul 2008 08:57:44 +0000 (09:57 +0100)]
pvscsi: add retry in REPORT_LUN emulation

Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
16 years agolinux/evtchn: Add memory barriers to evtchn ring accesses.
Keir Fraser [Tue, 22 Jul 2008 10:59:42 +0000 (11:59 +0100)]
linux/evtchn: Add memory barriers to evtchn ring accesses.

Xenstore infrequently hangs up on IA64.
Actually the xenstored is still alive but no response from
xenstore-XXX commands.

After tracking down, I've found that evtchn_read() infrequently
returns a wrong evtchn port number and evtchn_write() never
unmask the exact port.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Yes, updates of the ring_prod and ring_cons are separately protected
by different locks/mutexes, but the data communication between
producer and consumer is lock-free. Barriers are needed.

Acked-by: Keir Fraser <keir.fraser@citrix.com>
16 years agoFrom 2.6.19: Set SCI_EN when resuming from S3
Keir Fraser [Mon, 21 Jul 2008 08:51:36 +0000 (09:51 +0100)]
From 2.6.19: Set SCI_EN when resuming from S3

When resuming from S3, some platforms may clear SCI_EN bit in
PM1_CONTROL register and cause SCI interrupt disabled in Domain0. This
patch fixes this issue as Linux-2.6.19 does.

Signed-off-by: Huacai Chen <huacai.chen@intel.com>
16 years agoxen/x86: fix compatibility handling
Keir Fraser [Fri, 18 Jul 2008 10:26:26 +0000 (11:26 +0100)]
xen/x86: fix compatibility handling

A recent need for our kernel was to be able to run on 3.0.2-based Xen,
and this pointed out that while the fallback code in hypercall.h deals
with most of the cases, the multicalls used in the context switch code
didn't have appropriate fallback mechanisms. Short of breaking up the
multicall or checking individual operation status, the easier method
to fix this seemed to be to simply use the old hypercalls when
CONFIG_XEN_COMPAT_030002_AND_LATER is defined.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agoxen/i386: fix ordering in pte_free_kernel()
Keir Fraser [Fri, 18 Jul 2008 10:25:56 +0000 (11:25 +0100)]
xen/i386: fix ordering in pte_free_kernel()

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agopvSCSI: compilation fix.
Keir Fraser [Fri, 18 Jul 2008 10:25:07 +0000 (11:25 +0100)]
pvSCSI: compilation fix.

This patch fixes the following compilation error.
scsiback_interface_exit() is called by scsiback_init().
remove __exit.

>  LD      .tmp_vmlinux1
>`scsiback_interface_exit' referenced in section `.init.text' of
>drivers/built-in.o: defined in discarded section `.exit.text' of
>drivers/built-in.o

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
16 years agopcifront/back: Fix handling of device disconnect.
Keir Fraser [Wed, 16 Jul 2008 12:51:36 +0000 (13:51 +0100)]
pcifront/back: Fix handling of device disconnect.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
16 years agopvSCSI: Sanity check for REPORT_LUN emulation
Keir Fraser [Wed, 16 Jul 2008 10:19:14 +0000 (11:19 +0100)]
pvSCSI: Sanity check for REPORT_LUN emulation

- Sanity check for REPORT_LUN emulation.
- Return "residual" value from backend to frontend. The residual value
  is used to represent difference between request size the frontend
  requested and size backend actually responded.

Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
16 years agonetback: Ensure we send offline udev event when an interface goes away.
Keir Fraser [Tue, 15 Jul 2008 15:39:39 +0000 (16:39 +0100)]
netback: Ensure we send offline udev event when an interface goes away.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
16 years agopvSCSI: More fixes (including locking cleanups)
Keir Fraser [Mon, 14 Jul 2008 09:15:44 +0000 (10:15 +0100)]
pvSCSI: More fixes (including locking cleanups)

Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
16 years agogntdev: Do not take mutexes in initialiser function.
Keir Fraser [Fri, 11 Jul 2008 14:34:33 +0000 (15:34 +0100)]
gntdev: Do not take mutexes in initialiser function.
From: Derek Murray <derek.murray@gmail.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>