[PATCH v3 15/33] xpl: Add a function to indicate when in xPL