[libvirt] [PATCH v2 5/7] Fake host CPU for qemu tests

Eric Blake eblake at redhat.com
Tue Apr 20 17:35:39 UTC 2010


On 04/20/2010 06:42 AM, Jiri Denemark wrote:
> ---
>  tests/testutilsqemu.c |   30 +++++++++++++++++++++++++++++-
>  1 files changed, 29 insertions(+), 1 deletions(-)
> 
> -    if ((machines = testQemuAllocMachines(&nmachines)) == NULL)
> +    if ((caps->host.cpu = virCPUDefCopy(&host_cpu)) == NULL ||
> +        (machines = testQemuAllocMachines(&nmachines)) == NULL)
>          goto cleanup;

ACK - I think this can go in now, even if we decide to not do patches 6
or 7 at this time (in other words, even if we don't use this patch yet,
it is better to put it in now while we are thinking about it, in case we
come up with another use case in the future that would benefit from it).

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100420/219a164a/attachment-0001.sig>


More information about the libvir-list mailing list