• P
    conf: Refactor virDomainNumaDefCPUParseXML · 34a1dd73
    Peter Krempa 提交于
    Rewrite the function to save a few local variables and reorder the code
    to make more sense.
    
    Additionally the ncells_max member of the virCPUDef structure is used
    only for tracking allocation when parsing the numa definition, which can
    be avoided by switching to VIR_ALLOC_N as the array is not resized
    after initial allocation.
    34a1dd73
testutilsqemu.c 12.8 KB