Hardware Supports for Virtualizing GPUs