)]}'
{
  "commit": "9f56ee36fbf6a6d336dc6a9eaeb4f8a67cb42a31",
  "tree": "c622d11ca7ea83cf5c8247ae52ab215d0c8b63f1",
  "parents": [
    "ce9508f60667cfb193c136427ba6cc44c1343336"
  ],
  "author": {
    "name": "Michael S. Tsirkin",
    "email": "mst@redhat.com",
    "time": "Sun May 03 04:44:06 2026 -0400"
  },
  "committer": {
    "name": "Michael S. Tsirkin",
    "email": "mst@redhat.com",
    "time": "Tue May 05 16:31:46 2026 -0400"
  },
  "message": "virtio_balloon: implement VIRTIO_BALLOON_F_DEVICE_INIT_REPORTED\n\nAdd VIRTIO_BALLOON_F_DEVICE_INIT_REPORTED (bit 6): when negotiated,\nthe device guarantees it initializes reported pages (zeros, or\npoison_val if PAGE_POISON). The device signals success via the\nused length of each reporting_vq element.\n\nGate host_zeroes_pages on both the feature bit and the actual\npage content: when PAGE_POISON is negotiated with poison_val !\u003d 0,\nthe device fills with poison bytes, not zeros.\n\nClear the feature in validate() if REPORTING is not present or if running in a\nconfidential computing environment (untrusted host).\n\nRenumber DEVICE_INIT_ON_INFLATE from bit 6 to bit 7 to make room.\n\nSee the virtio spec change:\nhttps://github.com/oasis-tcs/virtio-spec/issues/244\n\nSigned-off-by: Michael S. Tsirkin \u003cmst@redhat.com\u003e\nAssisted-by: Claude:claude-opus-4-6\nAssisted-by: cursor-agent:GPT-5.4-xhigh\n\nvirtio_balloon: skip zeroing for host-zeroed reported pages\n\nCheck per-page used length returned by the device to determine\nwhich reported pages were zeroed. If used_len matches the page\nsize, the device successfully initialized the page (e.g. via\nMADV_DONTNEED), and we set the corresponding zeroed_bitmap bit.\n\nThis requires no feature negotiation: existing devices return\nused_len\u003d0 (the conservative \"not zeroed\" case), while updated\ndevices return the page size on successful discard.\n\nhost_zeroes_pages is set unconditionally so the page_reporting\ndrain path checks the bitmap and marks matching pages as PG_zeroed\nin the buddy allocator.\n\nSigned-off-by: Michael S. Tsirkin \u003cmst@redhat.com\u003e\nAssisted-by: Claude:claude-opus-4-6\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1eb9a6376038f5795d381ec582947e0c079c8d61",
      "old_mode": 33188,
      "old_path": "drivers/virtio/virtio_balloon.c",
      "new_id": "f1ad842eb3d6147d535313453dfffeb1ff5b4f0d",
      "new_mode": 33188,
      "new_path": "drivers/virtio/virtio_balloon.c"
    },
    {
      "type": "modify",
      "old_id": "d129736cc3a85c45102dc7f0d7cdd9fb78ad7e35",
      "old_mode": 33188,
      "old_path": "include/uapi/linux/virtio_balloon.h",
      "new_id": "cbaf18e0b17cfa1d0542fb9f4d00999a6e5b9016",
      "new_mode": 33188,
      "new_path": "include/uapi/linux/virtio_balloon.h"
    }
  ]
}
