qapi: restrict allow-oob value to be "true"

It was missed in the first version of OOB series.  We should check this
to make sure we throw the right error when fault value is passed in.

Backports commit 9408860165e07aaadec66c336f3dc849b945a8ed from qemu
This commit is contained in:
Peter Xu 2018-07-05 11:37:22 -04:00 committed by Lioncash
parent 15819915db
commit 082c39587d
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -878,7 +878,7 @@ def check_keys(expr_elem, meta, required, optional=[]):
raise QAPISemError(info,
"'%s' of %s '%s' should only use false value"
% (key, meta, name))
if key == 'boxed' and value is not True:
if (key == 'boxed' or key == 'allow-oob') and value is not True:
raise QAPISemError(info,
"'%s' of %s '%s' should only use true value"
% (key, meta, name))