To clarify, this only works on tradeable pets. You cannot select another player's pet in the game world and upgrade it. You must summon it from your own journal. So you may not upgrade, for instance, another player's minfernal. And in case you are wondering, in order to upgrade a pet, you must add it to your journal, summon it then select it in the game world, and use the stone.