)]}'
{
  "commit": "08a95a511af91a2a6c42f2a8f13b99402a39e84b",
  "tree": "2cdc7a586a9c5435c05a14d63e6e707b490e539e",
  "parents": [
    "c1e9db472bbc60120fd41ea2f81fcff12bc7ff3c"
  ],
  "author": {
    "name": "Alex Williamson",
    "email": "alex.williamson@redhat.com",
    "time": "Tue Dec 20 21:59:09 2011 -0700"
  },
  "committer": {
    "name": "Marcelo Tosatti",
    "email": "mtosatti@redhat.com",
    "time": "Fri Dec 23 09:02:51 2011 -0200"
  },
  "message": "kvm: Device assignment permission checks\n\nOnly allow KVM device assignment to attach to devices which:\n\n - Are not bridges\n - Have BAR resources (assume others are special devices)\n - The user has permissions to use\n\nAssigning a bridge is a configuration error, it\u0027s not supported, and\ntypically doesn\u0027t result in the behavior the user is expecting anyway.\nDevices without BAR resources are typically chipset components that\nalso don\u0027t have host drivers.  We don\u0027t want users to hold such devices\ncaptive or cause system problems by fencing them off into an iommu\ndomain.  We determine \"permission to use\" by testing whether the user\nhas access to the PCI sysfs resource files.  By default a normal user\nwill not have access to these files, so it provides a good indication\nthat an administration agent has granted the user access to the device.\n\nSigned-off-by: Alex Williamson \u003calex.williamson@redhat.com\u003e\nSigned-off-by: Marcelo Tosatti \u003cmtosatti@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "251b70702702c6202f10192ef2b39c4224e5bc34",
      "old_mode": 33188,
      "old_path": "Documentation/virtual/kvm/api.txt",
      "new_id": "5b03eee0da686df451191b72c33f020d02b151f8",
      "new_mode": 33188,
      "new_path": "Documentation/virtual/kvm/api.txt"
    },
    {
      "type": "modify",
      "old_id": "a251a28f79c7368951fd3d694f8b92d9523fa7ce",
      "old_mode": 33188,
      "old_path": "virt/kvm/assigned-dev.c",
      "new_id": "da9690e6cb3aa06a9982c16fcc24034aeb446993",
      "new_mode": 33188,
      "new_path": "virt/kvm/assigned-dev.c"
    }
  ]
}
