This is a GCC extension that means "if the condition is true, use it, else use this other value", so
machine->max_cpus = machine->max_cpus ?: 1;
is shorthand for
machine->max_cpus = machine->max_cpus ? machine->max_cpus : 1;
although if the conditional has side-effects, it will only be run once