)]}'
{
  "commit": "e4e98c7eebfab0f844784cdf5c108bb3d60ac9a2",
  "tree": "2600d023db0fd774f9c6619e214f8c4bdedd545f",
  "parents": [
    "1a909e3dd85d5c57a0e6a7e3285a29e57574f80d"
  ],
  "author": {
    "name": "Ani Sinha",
    "email": "anisinha@redhat.com",
    "time": "Wed Feb 28 20:03:51 2024 +0530"
  },
  "committer": {
    "name": "Michael S. Tsirkin",
    "email": "mst@redhat.com",
    "time": "Tue Mar 12 17:56:55 2024 -0400"
  },
  "message": "pc: q35: Bump max_cpus to 4096 vcpus\n\nSince commit f10a570b093e6 (\"KVM: x86: Add CONFIG_KVM_MAX_NR_VCPUS to allow up to 4096 vCPUs\")\nLinux kernel can support upto a maximum number of 4096 vcpus when MAXSMP is\nenabled in the kernel. At present, QEMU has been tested to correctly boot a\nlinux guest with 4096 vcpus using the current edk2 upstream master branch that\nhas the fixes corresponding to the following two PRs:\n\nhttps://github.com/tianocore/edk2/pull/5410\nhttps://github.com/tianocore/edk2/pull/5418\n\nThe changes merged into edk2 with the above PRs will be in the upcoming 2024-05\nrelease. With current seabios firmware, it boots fine with 4096 vcpus already.\nSo bump up the value max_cpus to 4096 for q35 machines versions 9 and newer.\nQ35 machines versions 8.2 and older continue to support 1024 maximum vcpus\nas before for compatibility reasons.\n\nIf KVM is not able to support the specified number of vcpus, QEMU would\nreturn the following error messages:\n\n$ ./qemu-system-x86_64 -cpu host -accel kvm -machine q35 -smp 1728\nqemu-system-x86_64: -accel kvm: warning: Number of SMP cpus requested (1728) exceeds the recommended cpus supported by KVM (12)\nqemu-system-x86_64: -accel kvm: warning: Number of hotpluggable cpus requested (1728) exceeds the recommended cpus supported by KVM (12)\nNumber of SMP cpus requested (1728) exceeds the maximum cpus supported by KVM (1024)\n\nCc: Daniel P. Berrangé \u003cberrange@redhat.com\u003e\nCc: Igor Mammedov \u003cimammedo@redhat.com\u003e\nCc: Michael S. Tsirkin \u003cmst@redhat.com\u003e\nCc: Julia Suvorova \u003cjusual@redhat.com\u003e\nCc: kraxel@redhat.com\nReviewed-by: Daniel P. Berrangé \u003cberrange@redhat.com\u003e\nReviewed-by: Igor Mammedov \u003cimammedo@redhat.com\u003e\nReviewed-by: Gerd Hoffmann \u003ckraxel@redhat.com\u003e\nSigned-off-by: Ani Sinha \u003canisinha@redhat.com\u003e\nMessage-Id: \u003c20240228143351.3967-1-anisinha@redhat.com\u003e\nReviewed-by: Zhao Liu \u003czhao1.liu@intel.com\u003e\nReviewed-by: Michael S. Tsirkin \u003cmst@redhat.com\u003e\nSigned-off-by: Michael S. Tsirkin \u003cmst@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "45a4102e75f5a17848d07cead53f22904ad3e014",
      "old_mode": 33188,
      "old_path": "hw/i386/pc_q35.c",
      "new_id": "df63a92b78e4313438a2c519aa66d4eb14eec426",
      "new_mode": 33188,
      "new_path": "hw/i386/pc_q35.c"
    }
  ]
}
