Fix a pattern patch

It's only by chance that this pattern match worked as intended.

Signed-off-by: John Else <john.else@citrix.com>
CP-5842: Blank VGPU.resident_on on VM shutdown

Signed-off-by: John Else <john.else@citrix.com>
Add helper functions for detecting the passthrough VGPU_type

Signed-off-by: John Else <john.else@citrix.com>