qemu: cpu: fix "full" CPU to include all "reported" CPU features
qemu: cpu: fix "full" CPU to include all "reported" CPU features

On Core i5 650 x86_64 kvm guest fail to start with error [1] for next cpu config:

  <cpu mode='host-model' check='partial'>
    <model fallback='allow'/>
    <feature policy='require' name='x2apic'/>
  </cpu>

The problem is in full CPU calculation in virQEMUCapsInitHostCPUModel.
It is supposed to include features emulated by qemu and missed on host. Some of
such features may be not included however.

For Core i5 650  host CPU is detected as Westmere and reported CPU as
SandyBridge. x2apic is missed on host and provided by installed qemu. The
feature is not mentioned in reported CPU features explicitly because SandyBridge
model include it. As a result full CPU does not include x2apic too.

Solution is to expand guest cpu features before updating fullCPU features.

[1] error: the CPU is incompatible with host CPU: \
       Host CPU does not provide required features: x2apic

Signed-off-by: Nikolay Shirokovskiy <7fa0e2698a05be944b362bdf5d7736c0162e16c9@virtuozzo.com>
Reviewed-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

eskultety/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,olafhering/libvirt,andreabolognani/libvirt,libvirt/libvirt,jardasgit/libvirt,crobinso/libvirt,eskultety/libvirt,jardasgit/libvirt,nertpinx/libvirt,eskultety/libvirt,jfehlig/libvirt,libvirt/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,zippy2/libvirt,nertpinx/libvirt,jardasgit/libvirt,olafhering/libvirt,andreabolognani/libvirt,jardasgit/libvirt,zippy2/libvirt,zippy2/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,zippy2/libvirt,jardasgit/libvirt,andreabolognani/libvirt,jfehlig/libvirt,crobinso/libvirt,fabianfreyer/libvirt,libvirt/libvirt,andreabolognani/libvirt,eskultety/libvirt,nertpinx/libvirt,eskultety/libvirt,olafhering/libvirt,libvirt/libvirt,fabianfreyer/libvirt,crobinso/libvirt,nertpinx/libvirt,jfehlig/libvirt,crobinso/libvirt,olafhering/libvirt