vl: move -global check earlier
commitcca686b44aa1315df4cda4dee56ca601050fab71
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Oct 2020 08:26:14 +0000 (27 04:26 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Dec 2020 17:15:14 +0000 (10 12:15 -0500)
treee4ad42d6ee62ab61b100f44d3a1560ff20dc7b51
parent7691bdef693c04e2a0c40846cda089c28016e043
vl: move -global check earlier

The check has the same effect here, it only matters that it is performed
once all devices, both builtin and user-specified, have been created.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/vl.c