HvlIsCoreSharingPossible

BOOL __stdcall HvlIsCoreSharingPossible(){
  unsigned __int64 CoreProcessorSet; 
  BOOL result; 

  result = 1;
  if( (HvlpFlags & 0x400000) != 0 )
  {
    if( (HvlpFlags & 2) == 0 )
      return 0;
    if( HvlpSchedulerType != 2 )
    {
      if( HvlpSchedulerType != 4 )
        return 0;
      CoreProcessorSet = KeGetCurrentPrcb()->CoreProcessorSet;
      if( ((CoreProcessorSet - 1) & CoreProcessorSet) == 0 )
        return 0;
    }
  }
  return result;
}

Referenced by:

VslConnectSwInterrupt