
On Thu, 2015-10-01 at 17:00 +0200, Jiri Denemark wrote:
I wonder if this case shouldn't somehow fall into the hostarch == guestarch case, via something like native_kvm = ARCH_CANONICAL(hostarch) == ARCH_CANONICAL(guestarch), but probably not since it maybe non-trivial (and depending on the actual usage) what a canonical architecture would be for every given architecture we support.
I doubt something like ARCH_CANONICAL() could ever be implemented, but I'm all for cleaning up the current logic and moving it to a single place for easier maintenance. virQEMUCapsFindTarget() can be considered a first step in that direction. A lot more work is still needed, though.
In other words, ACK :-)
Thanks :) -- Andrea Bolognani Software Engineer - Virtualization Team