)]}'
{
  "commit": "73e1d8eb9b738cef3dee2da26bb669b1092a4c12",
  "tree": "355d04f74ec39702542242a261546d1e0c357fbb",
  "parents": [
    "067927d62e097a8a3624a926e792756ce7a353ed"
  ],
  "author": {
    "name": "Daniel Henrique Barboza",
    "email": "danielhb413@gmail.com",
    "time": "Thu Jun 21 07:21:53 2018 -0300"
  },
  "committer": {
    "name": "Michael Roth",
    "email": "mdroth@linux.vnet.ibm.com",
    "time": "Tue Jul 03 15:20:51 2018 -0500"
  },
  "message": "qga: removing bios_supports_mode\n\nbios_support_mode verifies if the guest has support for a certain\nsuspend mode but it doesn\u0027t inform back which suspend tool\nprovides it. The caller, guest_suspend, executes all suspend\nstrategies in order again.\n\nAfter adding systemd suspend support, bios_support_mode now will\nverify for support for systemd, then pmutils, then Linux sys state\nfile. In a worst case scenario where both systemd and pmutils isn\u0027t\nsupported but Linux sys state is:\n\n- bios_supports_mode will check for systemd, then pmutils, then\nLinux sys state. It will tell guest_suspend that there is support,\nbut it will not tell who provides it;\n\n- guest_suspend will try to execute (and fail) systemd suspend,\nthen pmutils suspend, to only then use the Linux sys suspend.\nThe time spent executing systemd and pmutils suspend was wasted\nand could be avoided, but only bios_support_mode knew it but\ndidn\u0027t inform it back.\n\nA quicker approach is to nuke bios_supports_mode and control\nwhether we found support at all with a bool flag inside\nguest_suspend. guest_suspend will search for suspend support\nand execute it as soon as possible. If the a given suspend\nmechanism fails, continue to the next. If no suspend\nsupport is found, the \"not supported\" message is still being\nsent back to the user.\n\nSigned-off-by: Daniel Henrique Barboza \u003cdanielhb413@gmail.com\u003e\nSigned-off-by: Michael Roth \u003cmdroth@linux.vnet.ibm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cdb825993f7b8dc11af566f74eb27fc305fe4e15",
      "old_mode": 33188,
      "old_path": "qga/commands-posix.c",
      "new_id": "233f78a40623089cc4bdecb8e8b7dc08a11f03aa",
      "new_mode": 33188,
      "new_path": "qga/commands-posix.c"
    }
  ]
}
