[PATCH v2 3/4] hyperv: Add a utility function for getting method output params