1. 25 1月, 2010 3 次提交
  2. 27 12月, 2009 2 次提交
  3. 23 12月, 2009 1 次提交
  4. 03 12月, 2009 17 次提交
  5. 05 11月, 2009 1 次提交
    • A
      Use Little Endian for Dirty Bitmap · c8240bd6
      Alexander Graf 提交于
      We currently use host endian long types to store information
      in the dirty bitmap.
      
      This works reasonably well on Little Endian targets, because the
      u32 after the first contains the next 32 bits. On Big Endian this
      breaks completely though, forcing us to be inventive here.
      
      So Ben suggested to always use Little Endian, which looks reasonable.
      
      We only have dirty bitmap implemented in Little Endian targets so far
      and since PowerPC would be the first Big Endian platform, we can just
      as well switch to Little Endian always with little effort without
      breaking existing targets.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      c8240bd6
  6. 16 10月, 2009 1 次提交
    • D
      KVM: Prevent kvm_init from corrupting debugfs structures · 0ea4ed8e
      Darrick J. Wong 提交于
      I'm seeing an oops condition when kvm-intel and kvm-amd are modprobe'd
      during boot (say on an Intel system) and then rmmod'd:
      
         # modprobe kvm-intel
           kvm_init()
           kvm_init_debug()
           kvm_arch_init()  <-- stores debugfs dentries internally
           (success, etc)
      
         # modprobe kvm-amd
           kvm_init()
           kvm_init_debug() <-- second initialization clobbers kvm's
                                internal pointers to dentries
           kvm_arch_init()
           kvm_exit_debug() <-- and frees them
      
         # rmmod kvm-intel
           kvm_exit()
           kvm_exit_debug() <-- double free of debugfs files!
      
           *BOOM*
      
      If execution gets to the end of kvm_init(), then the calling module has been
      established as the kvm provider.  Move the debugfs initialization to the end of
      the function, and remove the now-unnecessary call to kvm_exit_debug() from the
      error path.  That way we avoid trampling on the debugfs entries and freeing
      them twice.
      
      Cc: stable@kernel.org
      Signed-off-by: NDarrick J. Wong <djwong@us.ibm.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      0ea4ed8e
  7. 04 10月, 2009 1 次提交
  8. 02 10月, 2009 1 次提交
  9. 28 9月, 2009 1 次提交
  10. 24 9月, 2009 1 次提交
  11. 10 9月, 2009 11 次提交