[PATCH v2 25/30] xpl: Add a function to indicate when in xPL