)]}'
{
  "commit": "7313fffb40ea9775b38ff2ce73c4d6b0f43edc2f",
  "tree": "185e1d4c8a8e5b1186b21803fa8ecd9265d4f690",
  "parents": [
    "92becce5e172357d9be047306d92b986242f0f0d"
  ],
  "author": {
    "name": "Daniel Henrique Barboza",
    "email": "dbarboza@ventanamicro.com",
    "time": "Thu Jul 06 07:17:31 2023 -0300"
  },
  "committer": {
    "name": "Alistair Francis",
    "email": "alistair.francis@wdc.com",
    "time": "Mon Jul 10 22:29:20 2023 +1000"
  },
  "message": "target/riscv/kvm.c: update KVM MISA bits\n\nOur design philosophy with KVM properties can be resumed in two main\ndecisions based on KVM interface availability and what the user wants to\ndo:\n\n- if the user disables an extension that the host KVM module doesn\u0027t\nknow about (i.e. it doesn\u0027t implement the kvm_get_one_reg() interface),\nkeep booting the CPU. This will avoid users having to deal with issues\nwith older KVM versions while disabling features they don\u0027t care;\n\n- for any other case we\u0027re going to error out immediately. If the user\nwants to enable a feature that KVM doesn\u0027t know about this a problem that\nis worth aborting - the user must know that the feature wasn\u0027t enabled\nin the hart. Likewise, if KVM knows about the extension, the user wants\nto enable/disable it, and we fail to do it so, that\u0027s also a problem we\ncan\u0027t shrug it off.\n\nIn the case of MISA bits we won\u0027t even try enabling bits that aren\u0027t\nalready available in the host. The ioctl() is so likely to fail that\nit\u0027s not worth trying. This check is already done in the previous patch,\nin kvm_cpu_set_misa_ext_cfg(), thus we don\u0027t need to worry about it now.\n\nIn kvm_riscv_update_cpu_misa_ext() we\u0027ll go through every potential user\noption and do as follows:\n\n- if the user didn\u0027t set the property or set to the same value of the\nhost, do nothing;\n\n- Disable the given extension in KVM. Error out if anything goes wrong.\n\nSigned-off-by: Daniel Henrique Barboza \u003cdbarboza@ventanamicro.com\u003e\nReviewed-by: Andrew Jones \u003cajones@ventanamicro.com\u003e\nAcked-by: Alistair Francis \u003calistair.francis@wdc.com\u003e\nMessage-Id: \u003c20230706101738.460804-14-dbarboza@ventanamicro.com\u003e\nSigned-off-by: Alistair Francis \u003calistair.francis@wdc.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8cd08f439662950621c3a4247f73d3ed3b33be8a",
      "old_mode": 33188,
      "old_path": "target/riscv/kvm.c",
      "new_id": "f64019e87c941fd006657423664791157d904052",
      "new_mode": 33188,
      "new_path": "target/riscv/kvm.c"
    }
  ]
}
