1. 04 1月, 2009 2 次提交
    • M
      ia64: cpumask fix for is_affinity_mask_valid() · d3b66bf2
      Mike Travis 提交于
      Impact: cleanup
      
      The function prototype should use 'struct cpumask *' to declare
      cpumask arguments (instead of cpumask_var_t).
      
      Note: arch/ia64/kernel/irq.c still had the following "old cpumask_t" usages:
      
      105:	cpumask_t mask = CPU_MASK_NONE;
      107:	cpu_set(cpu_logical_id(hwid), mask);
      110:                 irq_desc[irq].affinity = mask;
      
      	... replaced with a simple "cpumask_of(cpu_logical_id(hwid))".
      
      161:			new_cpu = any_online_cpu(cpu_online_map);
      194:		time_keeper_id = first_cpu(cpu_online_map);
      
      	... replaced with cpu_online_mask refs.
      Signed-off-by: NMike Travis <travis@sgi.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d3b66bf2
    • I
      ia64: cpumask fix for is_affinity_mask_valid() · 6bdf197b
      Ingo Molnar 提交于
      Impact: build fix on ia64
      
      ia64's default_affinity_write() still had old cpumask_t usage:
      
       /home/mingo/tip/kernel/irq/proc.c: In function `default_affinity_write':
       /home/mingo/tip/kernel/irq/proc.c:114: error: incompatible type for argument 1 of `is_affinity_mask_valid'
       make[3]: *** [kernel/irq/proc.o] Error 1
       make[3]: *** Waiting for unfinished jobs....
      
      update it to cpumask_var_t.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      6bdf197b
  2. 03 1月, 2009 1 次提交
  3. 01 1月, 2009 1 次提交
  4. 31 12月, 2008 3 次提交
    • J
      KVM: ia64: Fix kvm_arch_vcpu_ioctl_[gs]et_regs() · 042b26ed
      Jes Sorensen 提交于
      Fix kvm_arch_vcpu_ioctl_[gs]et_regs() to do something meaningful on
      ia64. Old versions could never have worked since they required
      pointers to be set in the ioctl payload which were never being set by
      the ioctl handler for get_regs.
      
      In addition reserve extra space for future extensions.
      
      The change of layout of struct kvm_regs doesn't require adding a new
      CAP since get/set regs never worked on ia64 until now.
      
      This version doesn't support copying the KVM kernel stack in/out of
      the kernel. This should be implemented in a seperate ioctl call if
      ever needed.
      Signed-off-by: NJes Sorensen <jes@sgi.com>
      Acked-by : Xiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      042b26ed
    • X
      KVM: ia64: Define printk function for kvm-intel module · 7d637978
      Xiantao Zhang 提交于
      kvm-intel module is relocated to an isolated address space
      with kernel, so it can't call host kernel's printk for debug
      purpose. In the module, we implement the printk to output debug
      info of vmm.
      Signed-off-by: NXiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      7d637978
    • X
      KVM: ia64: Re-organize data sturure of guests' data area · a917f7af
      Xiantao Zhang 提交于
      1. Increase the size of data area to 64M
      2. Support more vcpus and memory, 128 vcpus and 256G memory are supported
         for guests.
      3. Add the boundary check for memory and vcpu allocation.
      
      With this patch, kvm guest's data area looks as follow:
        *
        *            +----------------------+  ------- KVM_VM_DATA_SIZE
        *            |     vcpu[n]'s data   |   |     ___________________KVM_STK_OFFSET
        *            |                      |   |    /                   |
        *            |        ..........    |   |   /vcpu's struct&stack |
        *            |        ..........    |   |  /---------------------|---- 0
        *            |     vcpu[5]'s data   |   | /       vpd            |
        *            |     vcpu[4]'s data   |   |/-----------------------|
        *            |     vcpu[3]'s data   |   /         vtlb           |
        *            |     vcpu[2]'s data   |  /|------------------------|
        *            |     vcpu[1]'s data   |/  |         vhpt           |
        *            |     vcpu[0]'s data   |____________________________|
        *            +----------------------+   |
        *            |    memory dirty log  |   |
        *            +----------------------+   |
        *            |    vm's data struct  |   |
        *            +----------------------+   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |   vm's p2m table  |      |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |  |
        * vm's data->|                      |   |  |
        *            +----------------------+ ------- 0
        * To support large memory, needs to increase the size of p2m.
        * To support more vcpus, needs to ensure it has enough space to
        * hold vcpus' data.
        */
      Signed-off-by: NXiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      a917f7af
  5. 26 12月, 2008 1 次提交
  6. 13 12月, 2008 1 次提交
    • R
      cpumask: centralize cpu_online_map and cpu_possible_map · 98a79d6a
      Rusty Russell 提交于
      Impact: cleanup
      
      Each SMP arch defines these themselves.  Move them to a central
      location.
      
      Twists:
      1) Some archs (m32, parisc, s390) set possible_map to all 1, so we add a
         CONFIG_INIT_ALL_POSSIBLE for this rather than break them.
      
      2) mips and sparc32 '#define cpu_possible_map phys_cpu_present_map'.
         Those archs simply have phys_cpu_present_map replaced everywhere.
      
      3) Alpha defined cpu_possible_map to cpu_present_map; this is tricky
         so I just manipulate them both in sync.
      
      4) IA64, cris and m32r have gratuitous 'extern cpumask_t cpu_possible_map'
         declarations.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Reviewed-by: NGrant Grundler <grundler@parisc-linux.org>
      Tested-by: NTony Luck <tony.luck@intel.com>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Cc: Mike Travis <travis@sgi.com>
      Cc: ink@jurassic.park.msu.ru
      Cc: rmk@arm.linux.org.uk
      Cc: starvik@axis.com
      Cc: tony.luck@intel.com
      Cc: takata@linux-m32r.org
      Cc: ralf@linux-mips.org
      Cc: grundler@parisc-linux.org
      Cc: paulus@samba.org
      Cc: schwidefsky@de.ibm.com
      Cc: lethal@linux-sh.org
      Cc: wli@holomorphy.com
      Cc: davem@davemloft.net
      Cc: jdike@addtoit.com
      Cc: mingo@redhat.com
      98a79d6a
  7. 10 12月, 2008 1 次提交
    • A
      [IA64] remove BUILD_BUG_ON from paravirt_getreg() · fc102125
      Alexey Dobriyan 提交于
      CC      arch/ia64/kernel/asm-offsets.s
      In file included from include/linux/bitops.h:17,
                       from include/linux/kernel.h:15,
                       from include/linux/sched.h:52,
                       from arch/ia64/kernel/asm-offsets.c:9:
      arch/ia64/include/asm/bitops.h: In function 'set_bit':
      arch/ia64/include/asm/bitops.h:47: error: implicit declaration of function 'BUILD_BUG_ON'
      
      Obvious inclusion of kernel.h doesn't fix it, because of circular dependencies
      involving fls.h and log2(). Fixing the latter requires some serious header surgery,
      it seems, so just remove BUILD_BUG_ON for now.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      fc102125
  8. 01 12月, 2008 1 次提交
  9. 26 11月, 2008 1 次提交
    • I
      sched: convert struct root_domain to cpumask_var_t, fix · 1c391948
      Ingo Molnar 提交于
      Mathieu Desnoyers reported this build failure on powerpc:
      
       kernel/sched.c: In function 'sd_init_NODE':
       kernel/sched.c:7319: error: non-static initialization of a flexible array member
       kernel/sched.c:7319: error: (near initialization for '(anonymous)')
      
      this happens because .span changed to cpumask_var_t, hence
      the static CPU_MASK_NONE initializers in the SD_*_INIT
      templates are not type-correct anymore.
      
      Remove them, as they default to empty anyway.
      
      Also remove them from IA64, MIPS and SH.
      Reported-by: NMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      1c391948
  10. 21 11月, 2008 1 次提交
  11. 05 11月, 2008 5 次提交
  12. 28 10月, 2008 2 次提交
  13. 25 10月, 2008 1 次提交
  14. 21 10月, 2008 1 次提交
  15. 18 10月, 2008 18 次提交