[PATCH 37/42] xpl: Add a function to indicate when in xPL