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