9ae116e qemu: Improve qemuDomainChrTargetDefValidate()

Authored and Committed by Andrea Bolognani 6 years ago
    qemu: Improve qemuDomainChrTargetDefValidate()
    
    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@redhat.com>
    Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
    
        
file modified
+30 -20