1. 08 3月, 2019 1 次提交
  2. 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
  3. 21 12月, 2018 1 次提交
  4. 28 8月, 2018 1 次提交
  5. 02 7月, 2018 1 次提交
  6. 01 6月, 2018 1 次提交
  7. 26 4月, 2018 1 次提交
  8. 09 2月, 2018 1 次提交
  9. 07 2月, 2018 1 次提交
    • A
      hw/ppc: Replace fprintf(stderr, "*\n" with error_report() · 6f76b817
      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 were then manually tweaked to pass checkpatch and some curly
      braces were added to match QEMU style.
      Signed-off-by: NAlistair Francis <alistair.francis@xilinx.com>
      Cc: qemu-ppc@nongnu.org
      
      Conversions that aren't followed by exit() dropped, because they might
      be inappropriate.
      
      Also trim trailing punctuation from error messages.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20180203084315.20497-10-armbru@redhat.com>
      6f76b817
  10. 27 1月, 2018 1 次提交
    • T
      ppc: Deprecate qemu-system-ppcemb · 64b47457
      thuth@redhat.com 提交于
      qemu-system-ppcemb has been once split of qemu-system-ppc to support
      CPU page sizes < 4096 for some of the embedded 4xx PowerPC CPUs.
      However, there was hardly any OS available in the wild that really
      used such small page sizes (Linux uses 4096 on PPC), so there is
      no known recent use case for this separate build anymore. It's
      rather cumbersome to maintain a separate set of config switches for
      this, and it's wasting compile and test time of all the developers
      who have to build all QEMU targets to verify that their changes did
      not break anything.
      
      Except for the small CPU page sizes, qemu-system-ppc can be used as
      a full replacement for qemu-system-ppcemb since it contains all the
      embedded 4xx PPC boards and CPUs, too. Thus let's start the deprecation
      process for qemu-system-ppcemb to see whether somebody still needs
      the small page sizes or whether we could finally remove this unloved
      separate build.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      64b47457
  11. 17 10月, 2017 1 次提交
  12. 19 9月, 2017 1 次提交
  13. 01 9月, 2017 1 次提交
  14. 02 2月, 2017 1 次提交
  15. 19 5月, 2016 1 次提交
  16. 04 3月, 2016 1 次提交
    • P
      loader: Add data swap option to load-elf · 7ef295ea
      Peter Crosthwaite 提交于
      Some CPUs are of an opposite data-endianness to other components in the
      system. Sometimes elfs have the data sections layed out with this CPU
      data-endianness accounting for when loaded via the CPU, so byte swaps
      (relative to other system components) will occur.
      
      The leading example, is ARM's BE32 mode, which is is basically LE with
      address manipulation on half-word and byte accesses to access the
      hw/byte reversed address. This means that word data is invariant
      across LE and BE32. This also means that instructions are still LE.
      The expectation is that the elf will be loaded via the CPU in this
      endianness scheme, which means the data in the elf is reversed at
      compile time.
      
      As QEMU loads via the system memory directly, rather than the CPU, we
      need a mechanism to reverse elf data endianness to implement this
      possibility.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Crosthwaite <crosthwaite.peter@gmail.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7ef295ea
  17. 29 1月, 2016 1 次提交
    • P
      ppc: Clean up includes · 0d75590d
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1453832250-766-6-git-send-email-peter.maydell@linaro.org
      0d75590d
  18. 25 9月, 2015 1 次提交
  19. 19 9月, 2015 1 次提交
  20. 07 7月, 2015 1 次提交
  21. 23 6月, 2015 2 次提交
  22. 20 10月, 2014 2 次提交
  23. 15 7月, 2014 1 次提交
  24. 28 5月, 2014 1 次提交
  25. 27 3月, 2014 1 次提交
  26. 05 3月, 2014 1 次提交
  27. 26 2月, 2014 4 次提交
  28. 20 12月, 2013 1 次提交
  29. 02 9月, 2013 1 次提交
  30. 28 8月, 2013 1 次提交
    • M
      hw: Clean up bogus default boot order · c1654732
      Markus Armbruster 提交于
      We set default boot order "cad" in every single machine definition
      except "pseries" and "moxiesim", even though very few boards actually
      care for boot order, and "cad" makes sense for even fewer.
      
      Machines that care:
      
      * pc and its variants
      
        Accept up to three letters 'a', 'b' (undocumented alias for 'a'),
        'c', 'd' and 'n'.  Reject all others (fatal with -boot).
      
      * nseries (n800, n810)
      
        Check whether order starts with 'n'.  Silently ignored otherwise.
      
      * prep, g3beige, mac99
      
        Extract the first character the machine understands (subset of
        'a'..'f').  Silently ignored otherwise.
      
      * spapr
      
        Accept an arbitrary string (vl.c restricts it to contain only
        'a'..'p', no duplicates).
      
      * sun4[mdc]
      
        Use the first character.  Silently ignored otherwise.
      
      Strip characters these machines ignore from their default boot order.
      
      For all other machines, remove the unused default boot order
      alltogether.
      
      Note that my rename of QEMUMachine member boot_order to
      default_boot_order and QEMUMachineInitArgs member boot_device to
      boot_order has a welcome side effect: it makes every use of boot
      orders visible in this patch, for easy review.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      c1654732
  31. 04 7月, 2013 1 次提交
  32. 14 6月, 2013 1 次提交
  33. 19 4月, 2013 1 次提交
  34. 15 4月, 2013 1 次提交
  35. 09 4月, 2013 1 次提交