)]}'
{
  "commit": "a9403bfcd93025df7b1924d0cf34fbc408955b33",
  "tree": "df88014dfbbc632cea4f798e7cae0b86e687dd5c",
  "parents": [
    "82acc8c83f93814bb01669412a0a226c39fa8d77"
  ],
  "author": {
    "name": "Huaitong Han",
    "email": "hanht2@chinatelecom.cn",
    "time": "Thu May 22 18:05:48 2025 +0800"
  },
  "committer": {
    "name": "Michael S. Tsirkin",
    "email": "mst@redhat.com",
    "time": "Mon Jun 02 14:29:15 2025 -0400"
  },
  "message": "vhost: Don\u0027t set vring call if guest notifier is unused\n\nThe vring call fd is set even when the guest does not use MSI-X (e.g., in the\ncase of virtio PMD), leading to unnecessary CPU overhead for processing\ninterrupts.\n\nThe commit 96a3d98d2c(\"vhost: don\u0027t set vring call if no vector\") optimized the\ncase where MSI-X is enabled but the queue vector is unset. However, there\u0027s an\nadditional case where the guest uses INTx and the INTx_DISABLED bit in the PCI\nconfig is set, meaning that no interrupt notifier will actually be used.\n\nIn such cases, the vring call fd should also be cleared to avoid redundant\ninterrupt handling.\n\nFixes: 96a3d98d2c(\"vhost: don\u0027t set vring call if no vector\")\n\nReported-by: Zhiyuan Yuan \u003cyuanzhiyuan@chinatelecom.cn\u003e\nSigned-off-by: Jidong Xia \u003cxiajd@chinatelecom.cn\u003e\nSigned-off-by: Huaitong Han \u003chanht2@chinatelecom.cn\u003e\nMessage-Id: \u003c20250522100548.212740-1-hanht2@chinatelecom.cn\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": "c6b5768f3a5ddccb66529be0176c7e7d5d21b5a0",
      "old_mode": 33188,
      "old_path": "hw/pci/pci.c",
      "new_id": "9b4bf48439ed225e6b443f067928a84950f12a88",
      "new_mode": 33188,
      "new_path": "hw/pci/pci.c"
    },
    {
      "type": "modify",
      "old_id": "9b48aa8c3e7b590f9fadcbfde2a35d80f9712a83",
      "old_mode": 33188,
      "old_path": "hw/virtio/virtio-pci.c",
      "new_id": "7e309d1d49ef557d27a276b1cb7157c9fd5c917e",
      "new_mode": 33188,
      "new_path": "hw/virtio/virtio-pci.c"
    },
    {
      "type": "modify",
      "old_id": "a6854dad2b08c3e4157319da35f7157f7077e1b1",
      "old_mode": 33188,
      "old_path": "include/hw/pci/pci.h",
      "new_id": "35d59d7672e2b9ca43ae2f9708e94a07c04f9784",
      "new_mode": 33188,
      "new_path": "include/hw/pci/pci.h"
    }
  ]
}
