1. 11 10月, 2007 1 次提交
  2. 23 7月, 2007 1 次提交
  3. 20 7月, 2007 1 次提交
    • A
      i386: Allow KVM on i386 nonpae · 2d9ce177
      Avi Kivity 提交于
      Currently, CONFIG_X86_CMPXCHG64 both enables boot-time checking of
      the cmpxchg64b feature and enables compilation of the set_64bit() family.
      Since the option is dependent on PAE, and since KVM depends on set_64bit(),
      this effectively disables KVM on i386 nopae.
      
      Simplify by removing the config option altogether: the boot check is made
      dependent on CONFIG_X86_PAE directly, and the set_64bit() family is exposed
      without constraints.  It is up to users to check for the feature flag (KVM
      does not as virtualiation extensions imply its existence).
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2d9ce177
  4. 09 5月, 2007 1 次提交
    • J
      x86: create asm/cmpxchg.h · a436ed9c
      Jeff Dike 提交于
      i386:
      
        Rearrange the cmpxchg code to allow atomic.h to get it without needing to
        include system.h.  This kills warnings in the UML build from atomic.h about
        implicit declarations of cmpxchg symbols.  The i386 build presumably isn't
        seeing this because a separate inclusion of system.h is covering it over.
      
        The cmpxchg stuff is moved to asm-i386/cmpxchg.h, with an include left in
        system.h for the benefit of generic code which expects cmpxchg there.
      
        Meanwhile, atomic.h includes cmpxchg.h.
      
        This causes no noticable damage to the i386 build.
      
      x86_64:
      
        Move cmpxchg into its own header.  atomic.h already included system.h, so
        this is changed to include cmpxchg.h.
      
        This is purely cleanup - it's not fixing any warnings - so if the x86_64
        system.h isn't considered as cleanup-worthy as i386, then this can be
        dropped.
      
        It causes no noticable damage to the x86_64 build.
      
      uml:
      
        The i386 and x86_64 cmpxchg patches require an asm-um/cmpxchg.h for the
        UML build.
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a436ed9c