qemu with hax to log dma reads & writes
jcs.org/2018/11/12/vfio
1# we require branches to be a struct name
2# TODO: should we allow anonymous inline branch types?
3{ 'enum': 'TestEnum',
4 'data': [ 'value1', 'value2' ] }
5{ 'struct': 'Base',
6 'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
7{ 'union': 'TestUnion',
8 'base': 'Base',
9 'discriminator': 'enum1',
10 'data': { 'value1': { 'string': 'str' },
11 'value2': { 'integer': 'int' } } }