On Sun, Nov 26, 2017 at 11:25:33PM +0100, Andrea Bolognani wrote:
Instead of validating each target type / address type combination
separately, create a small helper to perform the matching and
collapse all existing checks into a single one.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/qemu/qemu_domain.c | 50 ++++++++++++++++++++++++++++++--------------------
1 file changed, 30 insertions(+), 20 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina(a)redhat.com>