HvlpAttachRootSvmDevice

NTSTATUS __fastcall HvlpAttachRootSvmDevice(UINT64 a1, INT64 a2){
  INT16 v2; 
  UINT16 v3; 
  UINT64 v5; 
  __int64 a2a; 
  int v7; 
  int v8; 
  __int64 v9; 
  __int64 v10; 
  int v11; 
  int v12; 
  v12 = 0;
  a2a = -1i64;
  v8 = 0x40000000;
  v9 = 7i64;
  v10 = (unsigned int)a1;
  v7 = a1;
  v11 = a2;
  while( 1 )
  {
    LODWORD(v5) = 0;
    v2 = HvcallFastExtended(65666i64, &a2a, 0x28ui64, 0i64, v5);
    if( !HvlpHvStatusIsInsufficientMemory(v2) )
      break;
    if( HvlpHandleInsufficientMemory() < 0 )
      return -1073741670;
  }
  return HvlpHvToNtStatus(v3);
}

Referenced by:

HvlSvmAttachPasidSpace