def METHOD_NAME(vm):
    res = vm.qmp("query-block")
    return { "bitmaps": { device['device']: device.get('inserted', {})
                          .get('dirty-bitmaps', []) for
                          device in res['return'] } }