[PATCH v1 00/24] move more validations to qemu_validate.c