)]}'
{
  "commit": "a44ea3fa7f2aa1d809fdca1b84a52695b53d8ad0",
  "tree": "9eca427b26cfbeb9e45045c70dbfb3192c99dcc3",
  "parents": [
    "ec56891984e682c0e6a7bbf5a51372648a60a353"
  ],
  "author": {
    "name": "Bernhard Beschow",
    "email": "shentey@gmail.com",
    "time": "Wed May 08 19:55:07 2024 +0200"
  },
  "committer": {
    "name": "Paolo Bonzini",
    "email": "pbonzini@redhat.com",
    "time": "Wed May 22 15:53:30 2024 +0200"
  },
  "message": "hw/i386/pc_sysfw: Alias rather than copy isa-bios region\n\nIn the -bios case the \"isa-bios\" memory region is an alias to the BIOS mapped\nto the top of the 4G memory boundary. Do the same in the -pflash case, but only\nfor new machine versions for migration compatibility. This establishes common\nbehavior and makes pflash commands work in the \"isa-bios\" region which some\nreal-world legacy bioses rely on.\n\nNote that in the sev_enabled() case, the \"isa-bios\" memory region in the -pflash\ncase will now also point to encrypted memory, just like it already does in the\n-bios case.\n\nWhen running `info mtree` before and after this commit with\n`qemu-system-x86_64 -S -drive \\\nif\u003dpflash,format\u003draw,readonly\u003don,file\u003d/usr/share/qemu/bios-256k.bin` and running\n`diff -u before.mtree after.mtree` results in the following changes in the\nmemory tree:\n\n   --- before.mtree\n   +++ after.mtree\n   @@ -71,7 +71,7 @@\n        0000000000000000-ffffffffffffffff (prio -1, i/o): pci\n        00000000000a0000-00000000000bffff (prio 1, i/o): vga-lowmem\n        00000000000c0000-00000000000dffff (prio 1, rom): pc.rom\n   -      00000000000e0000-00000000000fffff (prio 1, rom): isa-bios\n   +      00000000000e0000-00000000000fffff (prio 1, romd): alias isa-bios @system.flash0 0000000000020000-000000000003ffff\n        00000000000a0000-00000000000bffff (prio 1, i/o): alias smram-region @pci 00000000000a0000-00000000000bffff\n        00000000000c0000-00000000000c3fff (prio 1, i/o): alias pam-pci @pci 00000000000c0000-00000000000c3fff\n        00000000000c4000-00000000000c7fff (prio 1, i/o): alias pam-pci @pci 00000000000c4000-00000000000c7fff\n   @@ -108,7 +108,7 @@\n        0000000000000000-ffffffffffffffff (prio -1, i/o): pci\n        00000000000a0000-00000000000bffff (prio 1, i/o): vga-lowmem\n        00000000000c0000-00000000000dffff (prio 1, rom): pc.rom\n   -      00000000000e0000-00000000000fffff (prio 1, rom): isa-bios\n   +      00000000000e0000-00000000000fffff (prio 1, romd): alias isa-bios @system.flash0 0000000000020000-000000000003ffff\n        00000000000a0000-00000000000bffff (prio 1, i/o): alias smram-region @pci 00000000000a0000-00000000000bffff\n        00000000000c0000-00000000000c3fff (prio 1, i/o): alias pam-pci @pci 00000000000c0000-00000000000c3fff\n        00000000000c4000-00000000000c7fff (prio 1, i/o): alias pam-pci @pci 00000000000c4000-00000000000c7fff\n   @@ -131,11 +131,14 @@\n   memory-region: pc.ram\n   0000000000000000-0000000007ffffff (prio 0, ram): pc.ram\n\n   +memory-region: system.flash0\n   +  00000000fffc0000-00000000ffffffff (prio 0, romd): system.flash0\n   +\n   memory-region: pci\n   0000000000000000-ffffffffffffffff (prio -1, i/o): pci\n        00000000000a0000-00000000000bffff (prio 1, i/o): vga-lowmem\n        00000000000c0000-00000000000dffff (prio 1, rom): pc.rom\n   -    00000000000e0000-00000000000fffff (prio 1, rom): isa-bios\n   +    00000000000e0000-00000000000fffff (prio 1, romd): alias isa-bios @system.flash0 0000000000020000-000000000003ffff\n\n   memory-region: smram\n        00000000000a0000-00000000000bffff (prio 0, ram): alias smram-low @pc.ram 00000000000a0000-00000000000bffff\n\nNote that in both cases the \"system\" memory region contains the entry\n\n  00000000fffc0000-00000000ffffffff (prio 0, romd): system.flash0\n\nbut the \"system.flash0\" memory region only appears standalone when \"isa-bios\" is\nan alias.\n\nSigned-off-by: Bernhard Beschow \u003cshentey@gmail.com\u003e\nMessage-ID: \u003c20240508175507.22270-7-shentey@gmail.com\u003e\nSigned-off-by: Paolo Bonzini \u003cpbonzini@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bfb46e9b548afabb0908aad025599f1c866c0fdc",
      "old_mode": 33188,
      "old_path": "hw/i386/pc.c",
      "new_id": "4a2d6f5a97f3fcc108eae848028009e1bef618bb",
      "new_mode": 33188,
      "new_path": "hw/i386/pc.c"
    },
    {
      "type": "modify",
      "old_id": "99efb3c45cba0882a2d52925ee95011f0e7e32ab",
      "old_mode": 33188,
      "old_path": "hw/i386/pc_piix.c",
      "new_id": "ebb51de38098cff258b39c7256715eb7a85e98af",
      "new_mode": 33188,
      "new_path": "hw/i386/pc_piix.c"
    },
    {
      "type": "modify",
      "old_id": "bb53a51ac18d7de54c112281f74c70c2a699e150",
      "old_mode": 33188,
      "old_path": "hw/i386/pc_q35.c",
      "new_id": "bd7db4abacfe54993a5ad1a7958b6758edb87d52",
      "new_mode": 33188,
      "new_path": "hw/i386/pc_q35.c"
    },
    {
      "type": "modify",
      "old_id": "82d37cb376b402cb43e4847e6355556491f55a27",
      "old_mode": 33188,
      "old_path": "hw/i386/pc_sysfw.c",
      "new_id": "ac88ad4eb916a5ed5591d422e2196f3a010eabd1",
      "new_mode": 33188,
      "new_path": "hw/i386/pc_sysfw.c"
    },
    {
      "type": "modify",
      "old_id": "e52290916cbf32832134f39f7ebaf484f9d80b07",
      "old_mode": 33188,
      "old_path": "include/hw/i386/pc.h",
      "new_id": "ad9c3d9ba84519a584d0b6cd9a896dff0b541c75",
      "new_mode": 33188,
      "new_path": "include/hw/i386/pc.h"
    }
  ]
}
