[PATCH v2 03/10] hyperv: break out common lookups into separate functions