complete the function kernel_exec

Signed-off-by: Le,Min <min.le@intel.com>