Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
This commit is contained in:
commit
cf256aa081
11315 files changed
+3598369
No files matched your search
@@ -0,0 +1,2 @@
|
||||
allow-preconfig-test.json: In command 'allow-preconfig-test':
|
||||
allow-preconfig-test.json:2: flag 'allow-preconfig' may only use true value
|
||||
@@ -0,0 +1,2 @@
|
||||
# Check against allow-preconfig illegal value
|
||||
{ 'command': 'allow-preconfig-test', 'allow-preconfig': 'some-string' }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-any.json: In alternate 'Alt':
|
||||
alternate-any.json:2: branch 'one' cannot use built-in type 'any'
|
||||
@@ -0,0 +1,4 @@
|
||||
# we do not allow the 'any' type as an alternate branch
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'any',
|
||||
'two': 'int' } }
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,5 @@
|
||||
{ 'struct': 'One',
|
||||
'data': { 'name': 'str' } }
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'One',
|
||||
'two': [ 'int' ] } }
|
||||
@@ -0,0 +1,17 @@
|
||||
module ./builtin
|
||||
object q_empty
|
||||
enum QType
|
||||
member none
|
||||
member qnull
|
||||
member qnum
|
||||
member qstring
|
||||
member qdict
|
||||
member qlist
|
||||
member qbool
|
||||
module alternate-array.json
|
||||
object One
|
||||
member name: str optional=False
|
||||
alternate Alt
|
||||
tag type
|
||||
case one: One
|
||||
case two: intList
|
||||
@@ -0,0 +1,3 @@
|
||||
alternate-base.json: In alternate 'Alt':
|
||||
alternate-base.json:4: alternate has unknown key 'base'
|
||||
Valid keys are 'alternate', 'data', 'features', 'if'.
|
||||
@@ -0,0 +1,6 @@
|
||||
# we reject alternate with base type
|
||||
{ 'struct': 'Base',
|
||||
'data': { 'string': 'str' } }
|
||||
{ 'alternate': 'Alt',
|
||||
'base': 'Base',
|
||||
'data': { 'number': 'int' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-branch-if-invalid.json: In alternate 'Alt':
|
||||
alternate-branch-if-invalid.json:2: 'if' condition ' ' of 'data' member 'branch' is not a valid identifier
|
||||
@@ -0,0 +1,3 @@
|
||||
# Cover alternative with invalid 'if'
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'branch': { 'type': 'int', 'if': ' ' } } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-clash.json: In alternate 'Alt1':
|
||||
alternate-clash.json:6: name of 'data' member 'a_b' must not use uppercase or '_'
|
||||
@@ -0,0 +1,7 @@
|
||||
# Alternate branch name collision
|
||||
# Naming rules make collision impossible (even with the pragma). If
|
||||
# that wasn't the case, then we'd get a collision in generated C: two
|
||||
# union members a_b.
|
||||
{ 'pragma': { 'member-name-exceptions': [ 'Alt1' ] } }
|
||||
{ 'alternate': 'Alt1',
|
||||
'data': { 'a-b': 'bool', 'a_b': 'int' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-conflict-bool-string.json: In alternate 'Alt':
|
||||
alternate-conflict-bool-string.json:2: branch 'two' can't be distinguished from 'one'
|
||||
@@ -0,0 +1,4 @@
|
||||
# alternate branches of 'str' type conflict with all scalar types
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'bool',
|
||||
'two': 'str' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-conflict-dict.json: In alternate 'Alt':
|
||||
alternate-conflict-dict.json:6: branch 'two' can't be distinguished from 'one'
|
||||
@@ -0,0 +1,8 @@
|
||||
# alternate branches of object type conflict with each other
|
||||
{ 'struct': 'One',
|
||||
'data': { 'name': 'str' } }
|
||||
{ 'struct': 'Two',
|
||||
'data': { 'value': 'int' } }
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'One',
|
||||
'two': 'Two' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-conflict-enum-bool.json: In alternate 'Alt':
|
||||
alternate-conflict-enum-bool.json:4: branch 'two' can't be distinguished from 'one'
|
||||
@@ -0,0 +1,6 @@
|
||||
# alternate branch of 'enum' type that conflicts with bool
|
||||
{ 'enum': 'Enum',
|
||||
'data': [ 'aus', 'off' ] }
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'Enum',
|
||||
'two': 'bool' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-conflict-enum-int.json: In alternate 'Alt':
|
||||
alternate-conflict-enum-int.json:4: branch 'two' can't be distinguished from 'one'
|
||||
@@ -0,0 +1,6 @@
|
||||
# alternate branches of 'enum' type that conflicts with numbers
|
||||
{ 'enum': 'Enum',
|
||||
'data': [ '1', '2', '3' ] }
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'Enum',
|
||||
'two': 'int' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-conflict-lists.json: In alternate 'Alt':
|
||||
alternate-conflict-lists.json:4: branch 'two' can't be distinguished from 'one'
|
||||
@@ -0,0 +1,6 @@
|
||||
# Two lists conflict even if their inner types would be compatible
|
||||
{ 'struct': 'One',
|
||||
'data': { 'name': 'str' } }
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': [ 'int' ],
|
||||
'two': [ 'str' ] } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-conflict-num-string.json: In alternate 'Alt':
|
||||
alternate-conflict-num-string.json:2: branch 'two' can't be distinguished from 'one'
|
||||
@@ -0,0 +1,4 @@
|
||||
# alternate branches of 'str' type conflict with all scalar types
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'number',
|
||||
'two': 'str' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-conflict-string.json: In alternate 'Alt':
|
||||
alternate-conflict-string.json:2: branch 'two' can't be distinguished from 'one'
|
||||
@@ -0,0 +1,4 @@
|
||||
# alternate branches of 'str' type conflict with all scalar types
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'str',
|
||||
'two': 'int' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-data-invalid.json: In alternate 'Alt':
|
||||
alternate-data-invalid.json:2: 'data' must be an object
|
||||
@@ -0,0 +1,4 @@
|
||||
# Alternate type requires an object for 'data'
|
||||
{ 'alternate': 'Alt',
|
||||
'data': ['rubbish', 'nonsense']
|
||||
}
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-empty.json: In alternate 'Alt':
|
||||
alternate-empty.json:2: 'data' must not be empty
|
||||
@@ -0,0 +1,2 @@
|
||||
# alternates cannot be empty
|
||||
{ 'alternate': 'Alt', 'data': { } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-invalid-dict.json: In alternate 'Alt':
|
||||
alternate-invalid-dict.json:2: 'data' member 'two' misses key 'type'
|
||||
@@ -0,0 +1,4 @@
|
||||
# exploded member form must have a 'type'
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'one': 'str',
|
||||
'two': { 'if': 'foo' } } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-nested.json: In alternate 'Alt2':
|
||||
alternate-nested.json:4: branch 'nested' cannot use alternate type 'Alt1'
|
||||
@@ -0,0 +1,5 @@
|
||||
# we reject a nested alternate branch
|
||||
{ 'alternate': 'Alt1',
|
||||
'data': { 'name': 'bool', 'value': 'int' } }
|
||||
{ 'alternate': 'Alt2',
|
||||
'data': { 'nested': 'Alt1', 'b': 'bool' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
alternate-unknown.json: In alternate 'Alt':
|
||||
alternate-unknown.json:2: branch 'unknown' uses unknown type 'MissingType'
|
||||
@@ -0,0 +1,3 @@
|
||||
# we reject an alternate with unknown type in branch
|
||||
{ 'alternate': 'Alt',
|
||||
'data': { 'unknown': 'MissingType', 'i': 'int' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-alternate.json: In command 'oops':
|
||||
args-alternate.json:3: command's 'data' cannot take alternate type 'Alt'
|
||||
@@ -0,0 +1,3 @@
|
||||
# we do not allow alternate arguments
|
||||
{ 'alternate': 'Alt', 'data': { 'case1': 'int', 'case2': 'bool' } }
|
||||
{ 'command': 'oops', 'data': 'Alt' }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-any.json: In command 'oops':
|
||||
args-any.json:2: command's 'data' cannot take built-in type 'any'
|
||||
@@ -0,0 +1,2 @@
|
||||
# we do not allow an 'any' argument
|
||||
{ 'command': 'oops', 'data': 'any' }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-array-empty.json: In command 'oops':
|
||||
args-array-empty.json:2: 'data' member 'empty': array type must contain single type name
|
||||
@@ -0,0 +1,2 @@
|
||||
# we reject an array for data if it does not contain a known type
|
||||
{ 'command': 'oops', 'data': { 'empty': [ ] } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-array-unknown.json: In command 'oops':
|
||||
args-array-unknown.json:2: command uses unknown type 'NoSuchType'
|
||||
@@ -0,0 +1,2 @@
|
||||
# we reject an array for data if it does not contain a known type
|
||||
{ 'command': 'oops', 'data': { 'array': [ 'NoSuchType' ] } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-bad-boxed.json: In command 'foo':
|
||||
args-bad-boxed.json:2: flag 'boxed' may only use true value
|
||||
@@ -0,0 +1,2 @@
|
||||
# 'boxed' should only appear with value true
|
||||
{ 'command': 'foo', 'boxed': false }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-boxed-anon.json: In command 'foo':
|
||||
args-boxed-anon.json:2: 'data' should be a type name
|
||||
@@ -0,0 +1,2 @@
|
||||
# 'boxed' can only be used with named types
|
||||
{ 'command': 'foo', 'boxed': true, 'data': { 'string': 'str' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-boxed-string.json: In command 'foo':
|
||||
args-boxed-string.json:2: command's 'data' cannot take built-in type 'str'
|
||||
@@ -0,0 +1,2 @@
|
||||
# 'boxed' requires a complex (not built-in) type
|
||||
{ 'command': 'foo', 'boxed': true, 'data': 'str' }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-if-implicit.json: In command 'test-if-cmd':
|
||||
args-if-implicit.json:1: conditional command arguments require 'boxed': true
|
||||
@@ -0,0 +1,4 @@
|
||||
{ 'command': 'test-if-cmd',
|
||||
'data': {
|
||||
'foo': 'int',
|
||||
'bar': { 'type': 'str', 'if': 'TEST_IF_CMD_ARG' } } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-if-unboxed.json: In command 'test-if-cmd':
|
||||
args-if-unboxed.json:5: conditional command arguments require 'boxed': true
|
||||
@@ -0,0 +1,6 @@
|
||||
{ 'struct': 'TestIfCmdArgs',
|
||||
'data': {
|
||||
'foo': 'int',
|
||||
'bar': { 'type': 'str', 'if': 'TEST_IF_CMD_ARG' } } }
|
||||
{ 'command': 'test-if-cmd',
|
||||
'data': 'TestIfCmdArgs' }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-int.json: In command 'oops':
|
||||
args-int.json:2: command's 'data' cannot take built-in type 'int'
|
||||
@@ -0,0 +1,2 @@
|
||||
# we reject commands where data is not an array or complex type
|
||||
{ 'command': 'oops', 'data': 'int' }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-invalid.json: In command 'foo':
|
||||
args-invalid.json:1: 'data' should be an object or type name
|
||||
@@ -0,0 +1,2 @@
|
||||
{ 'command': 'foo',
|
||||
'data': false }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-member-array-bad.json: In command 'oops':
|
||||
args-member-array-bad.json:2: 'data' member 'member': array type must contain single type name
|
||||
@@ -0,0 +1,2 @@
|
||||
# we reject data if it does not contain a valid array type
|
||||
{ 'command': 'oops', 'data': { 'member': [ { 'nested': 'str' } ] } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-member-case.json: In command 'no-way-this-will-get-whitelisted':
|
||||
args-member-case.json:2: name of 'data' member 'Arg' must not use uppercase or '_'
|
||||
@@ -0,0 +1,2 @@
|
||||
# Member names should be 'lower-case' unless the struct is whitelisted
|
||||
{ 'command': 'no-way-this-will-get-whitelisted', 'data': { 'Arg': 'int' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-member-unknown.json: In command 'oops':
|
||||
args-member-unknown.json:2: parameter 'member' uses unknown type 'NoSuchType'
|
||||
@@ -0,0 +1,2 @@
|
||||
# we reject data if it does not contain a known type
|
||||
{ 'command': 'oops', 'data': { 'member': 'NoSuchType' } }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-union.json: In command 'oops':
|
||||
args-union.json:9: command's 'data' can take union type 'Uni' only with 'boxed': true
|
||||
@@ -0,0 +1,9 @@
|
||||
# use of union arguments requires 'boxed':true
|
||||
{ 'enum': 'Enum', 'data': [ 'case1', 'case2' ] }
|
||||
{ 'struct': 'Case1', 'data': { 'data': 'int' } }
|
||||
{ 'struct': 'Case2', 'data': { 'data': 'str' } }
|
||||
{ 'union': 'Uni',
|
||||
'base': { 'type': 'Enum' },
|
||||
'discriminator': 'type',
|
||||
'data': { 'case1': 'Case1', 'case2': 'Case2' } }
|
||||
{ 'command': 'oops', 'data': 'Uni' }
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
args-unknown.json: In command 'oops':
|
||||
args-unknown.json:2: command's 'data' uses unknown type 'NoSuchType'
|
||||
Loaded 100 of 11315 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user