[PATCH v2 16/35] qemuDomainRestore(Flags|Params): Refactor flag checking