d3f831a cpu_x86: Make virCPUx86DataAddCPUID work with virCPUDataPtr

Authored and Committed by Jiri Denemark 7 years ago
    cpu_x86: Make virCPUx86DataAddCPUID work with virCPUDataPtr
    
    The CPU driver provides APIs to create and free virCPUDataPtr. Thus all
    APIs exported from the driver should work with that rather than
    requiring the caller to pass a pointer to an internal part of the
    structure.
    
    In other words
    
        virCPUx86DataAddCPUID(cpudata, &cpuid)
    
    is much better than the original
    
        virCPUx86DataAddCPUID(&cpudata->data.x86, &cpuid)
    
    Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
    
        
file modified
+33 -24
file modified
+1 -1
file modified
+1 -1