mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-28 06:16:59 +00:00
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:
parent
15819915db
commit
082c39587d
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue