Lines Matching full:distance

192         error_setg(errp, "NUMA distance (%" PRIu8 ") is invalid, "  in parse_numa_distance()
199 error_setg(errp, "Local distance of node %d should be %d.", in parse_numa_distance()
204 numa_info[src].distance[dst] = val; in parse_numa_distance()
557 * distance from a node to itself is always NUMA_DISTANCE_MIN,
569 if (numa_info[src].distance[dst] == 0 && in validate_numa_distance()
570 numa_info[dst].distance[src] == 0) { in validate_numa_distance()
572 error_report("The distance between node %d and %d is " in validate_numa_distance()
573 "missing, at least one distance value " in validate_numa_distance()
580 if (numa_info[src].distance[dst] != 0 && in validate_numa_distance()
581 numa_info[dst].distance[src] != 0 && in validate_numa_distance()
582 numa_info[src].distance[dst] != in validate_numa_distance()
583 numa_info[dst].distance[src]) { in validate_numa_distance()
592 if (src != dst && numa_info[src].distance[dst] == 0) { in validate_numa_distance()
608 /* Fixup NUMA distance by symmetric policy because if it is an in complete_init_numa_distance()
609 * asymmetric distance table, it should be a complete table and in complete_init_numa_distance()
610 * there would not be any missing distance except local node, which in complete_init_numa_distance()
615 if (numa_info[src].distance[dst] == 0) { in complete_init_numa_distance()
617 numa_info[src].distance[dst] = NUMA_DISTANCE_MIN; in complete_init_numa_distance()
619 numa_info[src].distance[dst] = numa_info[dst].distance[src]; in complete_init_numa_distance()
715 * the whole NUMA distance table. QEMU treats the distance table in numa_complete_configuration()
716 * as symmetric by default, i.e. distance A->B == distance B->A. in numa_complete_configuration()
717 * Thus, QEMU is able to complete the distance table in numa_complete_configuration()
718 * initialization even though only distance A->B is provided and in numa_complete_configuration()
719 * distance B->A is not. QEMU knows the distance of a node to in numa_complete_configuration()
721 * the distances of two nodes of a pair differ, i.e. distance in numa_complete_configuration()
722 * A->B != distance B->A, then that means the distance table is in numa_complete_configuration()
727 /* Validate enough NUMA distance information was provided. */ in numa_complete_configuration()