1. 25 9月, 2018 3 次提交
  2. 23 8月, 2018 1 次提交
    • T
      hw/timer/mc146818rtc: Fix introspection problem · 29551fdc
      Thomas Huth 提交于
      There is currently a funny problem with the "mc146818rtc" device:
      1) Start QEMU like this:
         qemu-system-ppc64 -M pseries -S
      2) At the HMP monitor, enter "info qom-tree". Note that there is an
         entry for "/rtc (spapr-rtc)".
      3) Introspect the mc146818rtc device like this:
         device_add mc146818rtc,help
      4) Run "info qom-tree" again. The "/rtc" entry is gone now!
      
      The rtc_finalize() function of the mc146818rtc device has two bugs: First,
      it tries to remove a "rtc" property, while the rtc_realizefn() added a
      "rtc-time" property instead. And second, it should have been done in an
      unrealize function, not in a finalize function, to avoid that this causes
      problems during introspection.
      
      But since adding aliases to the global machine state should not be done
      from a device's realize function anyway, let's rather fix this issue
      by moving the creation of the alias to the code that creates the device
      (and thus is run from the machine init functions instead), i.e. the
      mc146818_rtc_init() function for most machines. The prep machines are
      special, since the mc146818rtc device is created here in the realize
      function of the i82378 device. Since we certainly don't want to add the
      alias there, we add it to some code that is called from the ibm_40p_init()
      machine init function instead.
      Since the alias is now only created during the machine init, we can remove
      the object_property_del() completely.
      
      Fixes: 654a36d8Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1534419358-10932-5-git-send-email-thuth@redhat.com>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      29551fdc
  3. 21 8月, 2018 3 次提交
  4. 07 7月, 2018 1 次提交
  5. 02 7月, 2018 2 次提交
  6. 12 6月, 2018 2 次提交
  7. 18 3月, 2018 1 次提交
  8. 12 3月, 2018 4 次提交
  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. 18 12月, 2017 1 次提交
  11. 17 10月, 2017 1 次提交
  12. 19 9月, 2017 1 次提交
  13. 01 9月, 2017 1 次提交
  14. 30 6月, 2017 1 次提交
  15. 19 5月, 2017 3 次提交
  16. 21 2月, 2017 1 次提交
    • M
      hw: Default -drive to if=ide explicitly where it works · 2059839b
      Markus Armbruster 提交于
      Block backends defined with -drive if=ide are meant to be picked up by
      machine initialization code: a suitable frontend gets created and
      wired up automatically.
      
      if=ide drives not picked up that way can still be used with -device as
      if they had if=none, but that's unclean and best avoided.  Unused ones
      produce an "Orphaned drive without device" warning.
      
      -drive parameter "if" is optional, and the default depends on the
      machine type.  If a machine type doesn't specify a default, the
      default is "ide".
      
      Many machine types default to if=ide, even though they don't actually
      have an IDE controller.  A future patch will change these defaults to
      something more sensible.  To prepare for it, this patch makes default
      "ide" explicit for the machines that actually pick up if=ide drives:
      
      * alpha: clipper
      * arm/aarch64: spitz borzoi terrier tosa
      * i386/x86_64: generic-pc-machine (with concrete subtypes pc-q35-*
        pc-i440fx-* pc-* isapc xenfv)
      * mips64el: fulong2e
      * mips/mipsel/mips64el: malta mips
      * ppc/ppc64: mac99 g3beige prep
      * sh4/sh4eb: r2d
      * sparc64: sun4u sun4v
      
      Note that ppc64 machine powernv already sets an "ide" default
      explicitly.  Its IDE controller isn't implemented, yet.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1487153147-11530-2-git-send-email-armbru@redhat.com>
      2059839b
  17. 31 1月, 2017 2 次提交
  18. 13 6月, 2016 1 次提交
  19. 19 5月, 2016 1 次提交
  20. 23 3月, 2016 1 次提交
  21. 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
  22. 13 1月, 2016 1 次提交
  23. 23 10月, 2015 1 次提交
  24. 25 9月, 2015 1 次提交
  25. 19 9月, 2015 1 次提交
  26. 09 9月, 2015 1 次提交
  27. 07 7月, 2015 1 次提交
  28. 03 6月, 2015 1 次提交