1. 21 Dec, 2012 2 commits
    • Cyrill Gorcunov's avatar
      cpu: Add code to fetch/test cpuinfo data · cf2e6c54
      Cyrill Gorcunov authored
      This patch add ability to test /proc/cpuinfo data
      we're interested in at the moment.
      
      The code provides the following functionality
      
       - cpu_init, to parse cpuinfo and check if the
         host cpu we're running on is suitable enough
         for FPU checkpoint/restore. If FPU present then
         there must be at least fxsave capability present
      
       - cpu_set_feature/cpu_has_feature helpers which
         provides to test certain bits and set them where
         needed (we need to set bits when parse cpuinfo)
      
      Note, we reserve space for all cpuinfo bits known
      by the kernel at moment, while use only three FPU
      related bits for a while. This is done because we might
      need to use or find out other features in future.
      
      After all it's just 40 bytes of memory needed to keep
      all possible bits.
      Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      cf2e6c54
    • Cyrill Gorcunov's avatar
      fpu: Add fpu.h header · 666f4ebb
      Cyrill Gorcunov authored
      We will need these structures for restore FPU
      state via sigframe, as as we decode data provided
      by ptrace.
      Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      666f4ebb
  2. 20 Dec, 2012 2 commits
  3. 18 Dec, 2012 3 commits
  4. 17 Dec, 2012 9 commits
  5. 11 Dec, 2012 2 commits
  6. 10 Dec, 2012 8 commits
  7. 06 Dec, 2012 11 commits
  8. 05 Dec, 2012 1 commit
  9. 04 Dec, 2012 2 commits