)]}'
{
  "commit": "e8185fdc63e1db1efba695aae568fae8a075a815",
  "tree": "49723687607cc9fefea4ae9cbfaa3bb8b25b05a5",
  "parents": [
    "5e39814916c91485073da38f457a43bf317c1f08"
  ],
  "author": {
    "name": "Harsh Prateek Bora",
    "email": "harshpb@linux.ibm.com",
    "time": "Mon Nov 25 16:43:34 2024 +1000"
  },
  "committer": {
    "name": "Nicholas Piggin",
    "email": "npiggin@gmail.com",
    "time": "Wed Nov 27 02:49:36 2024 +1000"
  },
  "message": "ppc/spapr: fix drc index mismatch for partially enabled vcpus\n\nIn case when vcpus are explicitly enabled/disabled in a non-consecutive\norder within a libvirt xml, it results in a drc index mismatch during\nvcpu hotplug later because the existing logic uses vcpu id to derive the\ncorresponding drc index which is not correct. Use env-\u003ecore_index to\nderive a vcpu\u0027s drc index as appropriate to fix this issue.\n\nFor ex, for the given libvirt xml config:\n  \u003cvcpus\u003e\n    \u003cvcpu id\u003d\u00270\u0027 enabled\u003d\u0027yes\u0027 hotpluggable\u003d\u0027no\u0027/\u003e\n    \u003cvcpu id\u003d\u00271\u0027 enabled\u003d\u0027yes\u0027 hotpluggable\u003d\u0027yes\u0027/\u003e\n    \u003cvcpu id\u003d\u00272\u0027 enabled\u003d\u0027no\u0027 hotpluggable\u003d\u0027yes\u0027/\u003e\n    \u003cvcpu id\u003d\u00273\u0027 enabled\u003d\u0027yes\u0027 hotpluggable\u003d\u0027yes\u0027/\u003e\n    \u003cvcpu id\u003d\u00274\u0027 enabled\u003d\u0027no\u0027 hotpluggable\u003d\u0027yes\u0027/\u003e\n    \u003cvcpu id\u003d\u00275\u0027 enabled\u003d\u0027yes\u0027 hotpluggable\u003d\u0027yes\u0027/\u003e\n    \u003cvcpu id\u003d\u00276\u0027 enabled\u003d\u0027no\u0027 hotpluggable\u003d\u0027yes\u0027/\u003e\n    \u003cvcpu id\u003d\u00277\u0027 enabled\u003d\u0027no\u0027 hotpluggable\u003d\u0027yes\u0027/\u003e\n  \u003c/vcpus\u003e\n\nWe see below error on guest console with \"virsh setvcpus \u003cdomain\u003e 5\" :\n\npseries-hotplug-cpu: CPU with drc index 10000002 already exists\n\nThis patch fixes the issue by using correct drc index for explicitly\nenabled vcpus during init.\n\nReported-by: Anushree Mathur \u003canushree.mathur@linux.vnet.ibm.com\u003e\nTested-by: Anushree Mathur \u003canushree.mathur@linux.vnet.ibm.com\u003e\nSigned-off-by: Harsh Prateek Bora \u003charshpb@linux.ibm.com\u003e\nReviewed-by: Nicholas Piggin \u003cnpiggin@gmail.com\u003e\nSigned-off-by: Nicholas Piggin \u003cnpiggin@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5c02037c564475ff10a8f810e02414b95f6c8f01",
      "old_mode": 33188,
      "old_path": "hw/ppc/spapr.c",
      "new_id": "0d4efaa0c091bfa478793bbcab1d42203844a25c",
      "new_mode": 33188,
      "new_path": "hw/ppc/spapr.c"
    }
  ]
}
