qemu with hax to log dma reads & writes
jcs.org/2018/11/12/vfio
1# we require the base to be an existing struct
2{ 'enum': 'TestEnum',
3 'data': [ 'value1', 'value2' ] }
4{ 'struct': 'TestTypeA',
5 'data': { 'string': 'str' } }
6{ 'struct': 'TestTypeB',
7 'data': { 'integer': 'int' } }
8{ 'union': 'TestUnion',
9 'base': 'any',
10 'discriminator': 'enum1',
11 'data': { 'value1': 'TestTypeA',
12 'value2': 'TestTypeB' } }