Patent ID: 8683478

Claim:
A method of mapping source virtual functions for a logical partition in a first logically partitioned data processing system in association with migrating the logical partition to a second logically partitioned data processing system, the method, executed by at least one processor, comprising: for each of the source virtual functions assigned to the logical partition on the first logically partitioned data processing system, building an associated candidate list for each of the source virtual functions, each candidate list identifying at least one candidate physical port associated with at least one target virtual function in the second logically partitioned data processing system, wherein the identified at least one candidate physical port is capable of being mapped to the source virtual function associated with the candidate list via the at least one target virtual function of the identified at least one candidate physical port; calculating, for each candidate physical port in each candidate list, a weight based upon suitability of such candidate physical port for mapping to the source virtual function associated with the candidate list; sequentially selecting a candidate physical port, based on the candidate physical port's calculated weight, for each of the source virtual functions from the candidate list associated with the source virtual function, wherein sequentially selecting includes, after selecting a candidate physical port from the candidate list for a source virtual function and before selecting a next candidate physical port from a candidate list for another source virtual function, recalculating the weight for candidate physical ports in each of the other candidate lists of any source virtual function for which a candidate physical port has not yet been selected.