1. 23 5月, 2019 1 次提交
  2. 17 5月, 2019 1 次提交
  3. 07 2月, 2019 1 次提交
  4. 05 2月, 2019 1 次提交
    • L
      elf: Add optional function ptr to load_elf() to parse ELF notes · 4366e1db
      Liam Merwick 提交于
      This patch adds an optional function pointer, 'elf_note_fn', to
      load_elf() which causes load_elf() to additionally parse any
      ELF program headers of type PT_NOTE and check to see if the ELF
      Note is of the type specified by the 'translate_opaque' arg.
      If a matching ELF Note is found then the specfied function pointer
      is called to process the ELF note.
      
      Passing a NULL function pointer results in ELF Notes being skipped.
      
      The first consumer of this functionality is the PVHboot support
      which needs to read the XEN_ELFNOTE_PHYS32_ENTRY ELF Note while
      loading the uncompressed kernel binary in order to discover the
      boot entry address for the x86/HVM direct boot ABI.
      Signed-off-by: NLiam Merwick <liam.merwick@oracle.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      4366e1db
  5. 09 1月, 2019 1 次提交
  6. 14 12月, 2018 1 次提交
  7. 21 8月, 2018 1 次提交
  8. 02 7月, 2018 2 次提交
  9. 17 6月, 2018 1 次提交
    • T
      hw/sparc/sun4m: Fix problems with device introspection · a2a5a7b5
      Thomas Huth 提交于
      Several devices of the sun4m machines are using &error_fatal in
      their instance_init function and thus can cause QEMU to abort
      unexpectedly:
      
      $ echo "{'execute':'qmp_capabilities'}"\
             "{'execute':'device-list-properties',"\
             " 'arguments':{'typename':'openprom'}}" \
             | sparc-softmmu/qemu-system-sparc -M SS-10 -S -qmp stdio
      {"QMP": {"version": {"qemu": {"micro": 91, "minor": 11, "major": 2},
       "package": "build-all"}, "capabilities": []}}
      {"return": {}}
      RAMBlock "sun4m.prom" already registered, abort!
      Aborted (core dumped)
      
      $ echo "{'execute':'qmp_capabilities'}"\
             "{'execute':'device-list-properties',"\
             " 'arguments':{'typename':'macio_idreg'}}" \
             | sparc-softmmu/qemu-system-sparc -M SS-10 -S -qmp stdio
      {"QMP": {"version": {"qemu": {"micro": 91, "minor": 11, "major": 2},
       "package": "build-all"}, "capabilities": []}}
      {"return": {}}
      RAMBlock "sun4m.idreg" already registered, abort!
      Aborted (core dumped)
      
      $ echo "{'execute':'qmp_capabilities'}"\
             "{'execute':'device-list-properties',"\
             " 'arguments':{'typename':'tcx_afx'}}" \
             | sparc-softmmu/qemu-system-sparc -M SS-5 -S -qmp stdio
      {"QMP": {"version": {"qemu": {"micro": 91, "minor": 11, "major": 2},
       "package": "build-all"}, "capabilities": []}}
      {"return": {}}
      RAMBlock "sun4m.afx" already registered, abort!
      Aborted (core dumped)
      
      Fix the issues by converting the instance_init functions into realize()
      functions instead, which are allowed to fail (and not called during
      device introspection).
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      a2a5a7b5
  10. 26 4月, 2018 1 次提交
  11. 12 3月, 2018 2 次提交
  12. 08 3月, 2018 1 次提交
  13. 16 2月, 2018 1 次提交
  14. 07 2月, 2018 1 次提交
    • A
      hw/sparc*: Replace fprintf(stderr, "*\n" with error_report() · 29bd7231
      Alistair Francis 提交于
      Replace a large number of the fprintf(stderr, "*\n" calls with
      error_report(). The functions were renamed with these commands and then
      compiler issues where manually fixed.
      
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      
      Some lines where then manually tweaked to pass checkpatch.
      Signed-off-by: NAlistair Francis <alistair.francis@xilinx.com>
      Cc: Fabien Chouteau <chouteau@adacore.com>
      Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Cc: Artyom Tarasenko <atar4qemu@gmail.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Acked-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20180203084315.20497-12-armbru@redhat.com>
      29bd7231
  15. 10 1月, 2018 2 次提交
  16. 18 12月, 2017 1 次提交
  17. 01 11月, 2017 7 次提交
  18. 27 10月, 2017 1 次提交
  19. 19 9月, 2017 1 次提交
  20. 01 9月, 2017 1 次提交
  21. 15 7月, 2017 1 次提交
  22. 02 6月, 2017 1 次提交
  23. 21 4月, 2017 2 次提交
  24. 09 3月, 2017 1 次提交
  25. 21 2月, 2017 1 次提交
    • M
      hw: Drop superfluous special checks for orphaned -drive · 8f2d75e8
      Markus Armbruster 提交于
      We've traditionally rejected orphans here and there, but not
      systematically.  For instance, the sun4m machines have an onboard SCSI
      HBA (bus=0), and have always rejected bus>0.  Other machines with an
      onboard SCSI HBA don't.
      
      Commit a66c9dc7 made all orphans trigger a warning, and the previous
      commit turned this into an error.  The checks "here and there" are now
      redundant.  Drop them.
      
      Note that the one in mips_jazz.c was wrong: it rejected bus > MAX_FD,
      but MAX_FD is the number of floppy drives per bus.
      
      Error messages change from
      
          $ qemu-system-x86_64 -drive if=ide,bus=2
          qemu-system-x86_64: Too many IDE buses defined (3 > 2)
          $ qemu-system-mips64 -M magnum,accel=qtest -drive if=floppy,bus=2,id=fd1
          qemu: too many floppy drives
          $ qemu-system-sparc -M LX -drive if=scsi,bus=1
          qemu: too many SCSI bus
      
      to
      
          $ qemu-system-x86_64 -drive if=ide,bus=2
          qemu-system-x86_64: -drive if=ide,bus=2: machine type does not support if=ide,bus=2,unit=0
          $ qemu-system-mips64 -M magnum,accel=qtest -drive if=floppy,bus=2,id=fd1
          qemu-system-mips64: -drive if=floppy,bus=2,id=fd1: machine type does not support if=floppy,bus=2,unit=0
          $ qemu-system-sparc -M LX -drive if=scsi,bus=1
          qemu-system-sparc: -drive if=scsi,bus=1: machine type does not support if=scsi,bus=1,unit=0
      
      Cc: John Snow <jsnow@redhat.com>
      Cc: "Hervé Poussineau" <hpoussin@reactos.org>
      Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1487153147-11530-9-git-send-email-armbru@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      8f2d75e8
  26. 16 11月, 2016 1 次提交
  27. 28 10月, 2016 2 次提交
  28. 04 10月, 2016 1 次提交
  29. 21 5月, 2016 1 次提交
    • E
      vl: Replace DT_NOGRAPHIC with machine option · cfc58cf3
      Eduardo Habkost 提交于
      All DisplayType values are just UI options that don't affect any
      hardware emulation code, except for DT_NOGRAPHIC. Replace
      DT_NOGRAPHIC with DT_NONE plus a new "-machine graphics=on|off"
      option, so hardware emulation code don't need to use the
      display_type variable.
      
      Cc: Michael Walle <michael@walle.cc>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      cfc58cf3