[libvirt] [PATCH 09/41] cpu_x86: Avoid unnecessary pointers to virCPUx86Data

Peter Krempa pkrempa at redhat.com
Wed Jun 8 13:25:44 UTC 2016


On Wed, Jun 08, 2016 at 10:22:23 +0200, Jiri Denemark wrote:
> virCPUData, virCPUx86Feature, and virCPUx86Model all contained a pointer
> to virCPUx86Data, which was not very nice since the real CPUID data were
> accessible by yet another pointer from virCPUx86Data. Moreover, using
> virCPUx86Data directly will make static definitions of internal CPU
> features a bit easier.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/cpu/cpu.h                |   2 +-
>  src/cpu/cpu_x86.c            | 308 +++++++++++++++++++------------------------
>  src/cpu/cpu_x86.h            |   4 +-
>  src/cpu/cpu_x86_data.h       |   2 +
>  src/libvirt_private.syms     |   2 +-
>  src/qemu/qemu_monitor_json.c |   9 +-
>  6 files changed, 142 insertions(+), 185 deletions(-)

ACK




More information about the libvir-list mailing list