Add qemu_opts_validate() for post parsing validation
authorMark McLoughlin <markmc@redhat.com>
Tue, 6 Oct 2009 11:17:03 +0000 (12:17 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:11 +0000 (14:36 -0500)
commit35e438b50a6bf156c20e5d13cd6d66ca3cf645c6
treec15b1e5c919af84f8d936f6bacb21b5b3e08aad1
parenta5d0920fe783584e8913d77f13c1e8521454bf9f
Add qemu_opts_validate() for post parsing validation

Several qemu command line options have a parameter whose value affects
what other parameters are accepted for the option.

In these cases, we can have an empty description table in the
QemuOptsList and once the option has been parsed we can use a suitable
description table to validate the other parameters based on the value of
that parameter.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-option.c
qemu-option.h