1. 14 Dec, 2017 2 commits
    • criu: add a test case for the criu feature check support · 739ef90c
      Adrian Reber authored
      This adds a simple test case which verifies that the new migrate() API
      command 'MIGRATE_FEATURE_CHECK' works as expected.
      
      If a feature does not exist on the currently running
      architecture/kernel/criu combination it does not report an error as this
      is a valid scenario.
      Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
    • criu: add feature check capability · b5b12b9e
      Adrian Reber authored
      For migration optimization features like pre-copy or post-copy migration
      the support cannot be determined by simply looking at the CRIU version.
      Features like that depend on the architecture/kernel/criu combination
      and CRIU offers a feature checking interface to query if it is
      supported.
      
      This adds a LXC interface to query CRIU for those feature via the
      migrate() API call. For the recent pre-copy migration support in LXD
      this can be used to automatically detect if pre-copy migration should be
      used.
      
      In addition to the existing migrate() API commands this adds a new
      command: 'MIGRATE_FEATURE_CHECK'.
      
      The migrate_opts{} structure is extended by the member features_to_check
      which is a bitmask defining which CRIU features should be queried.
      
      Currently only the querying of the features FEATURE_MEM_TRACK and
      FEATURE_LAZY_PAGES is supported.
      Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
  2. 11 Dec, 2017 9 commits
  3. 09 Dec, 2017 7 commits
  4. 08 Dec, 2017 1 commit
  5. 07 Dec, 2017 11 commits
  6. 06 Dec, 2017 10 commits