Conditional compilation source code(Part 2)

Signed-off-by: Emily <lijuan.zhang@intel.com>
Merge xenserver feature into next (part 2)