Re: [libvirt] [PATCH v3] qemu: Fix using guest architecture as lookup key

2015-09-16 Thread Andrea Bolognani
On Wed, 2015-09-16 at 09:22 +0100, Daniel P. Berrange wrote: > On Wed, Sep 16, 2015 at 09:13:09AM +0200, Andrea Bolognani wrote: > > When looking for a QEMU binary suitable for running ppc64le guests > > we have to take into account the fact that we use the QEMU target > > as key for the hash, so d

Re: [libvirt] [PATCH v3] qemu: Fix using guest architecture as lookup key

2015-09-16 Thread Daniel P. Berrange
On Wed, Sep 16, 2015 at 09:13:09AM +0200, Andrea Bolognani wrote: > When looking for a QEMU binary suitable for running ppc64le guests > we have to take into account the fact that we use the QEMU target > as key for the hash, so direct comparison is not good enough. > > Factor out the logic from v

[libvirt] [PATCH v3] qemu: Fix using guest architecture as lookup key

2015-09-16 Thread Andrea Bolognani
When looking for a QEMU binary suitable for running ppc64le guests we have to take into account the fact that we use the QEMU target as key for the hash, so direct comparison is not good enough. Factor out the logic from virQEMUCapsFindBinaryForArch() to a new virQEMUCapsFindTarget() function and