Skip to content
Snippets Groups Projects
  1. May 16, 2022
  2. Mar 31, 2022
  3. Jan 21, 2021
    • Paolo Bonzini's avatar
      runstate: cleanup reboot and panic actions · c27025e0
      Paolo Bonzini authored
      
      The possible choices for panic, reset and watchdog actions are inconsistent.
      
      "-action panic=poweroff" should be renamed to "-action panic=shutdown"
      on the command line.  This is because "-action panic=poweroff" and
      "-action watchdog=poweroff" have slightly different semantics, the first
      does an unorderly exit while the second goes through qemu_cleanup().  With
      this change, -no-shutdown would not have to change "-action panic=pause"
      "pause", just like it does not have to change the reset action.
      
      "-action reboot=none" should be renamed to "-action reboot=reset".
      This should be self explanatory, since for example "-action panic=none"
      lets the guest proceed without taking any action.
      
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      c27025e0
  4. Dec 15, 2020
  5. Dec 10, 2020
  6. Oct 04, 2020
    • Zhenwei Pi's avatar
      qapi/run-state.json: introduce memory failure event · 77b285f7
      Zhenwei Pi authored
      
      Introduce memory failure events for hypervisor and guest. This lets
      mft: Need exactly one file argument.  Try `mft --help' for more
      information.
      
      Suggested by Peter Maydell, rename events name&description to make
      them architecture-neutral; and suggested by Paolo, add more info to
      distinguish a mce is AR/AO, and if a previous MCE was still being
      processed in the guest.
      
      Signed-off-by: default avatarzhenwei pi <pizhenwei@bytedance.com>
      Message-Id: <20200930100440.1060708-3-pizhenwei@bytedance.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      77b285f7
  7. Aug 03, 2020
    • Andrea Bolognani's avatar
      schemas: Add vim modeline · f7160f32
      Andrea Bolognani authored
      
      The various schemas included in QEMU use a JSON-based format which
      is, however, strictly speaking not valid JSON.
      
      As a consequence, when vim tries to apply syntax highlight rules
      for JSON (as guessed from the file name), the result is an unreadable
      mess which mostly consist of red markers pointing out supposed errors
      in, well, pretty much everything.
      
      Using Python syntax highlighting produces much better results, and
      in fact these files already start with specially-formatted comments
      that instruct Emacs to process them as if they were Python files.
      
      This commit adds the equivalent special comments for vim.
      
      Signed-off-by: default avatarAndrea Bolognani <abologna@redhat.com>
      Message-Id: <20200729185024.121766-1-abologna@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      f7160f32
  8. Feb 15, 2020
    • Peter Maydell's avatar
      qapi: Fix indent level on doc comments in json files · 26ec4e53
      Peter Maydell authored
      
      The current doc generation doesn't care much about indentation levels,
      but we would like to switch to an rST format, and rST does care about
      indentation.
      
      Make the doc comments more strongly consistent about indentation
      for multiline constructs like:
      
      @arg: description line 1
            description line 2
      
      Returns: line one
               line 2
      
      so that there is always exactly one space after the colon, and
      subsequent lines align with the first.
      
      This commit is a purely whitespace change, and it does not alter the
      generated .texi files (because the texi generation code strips away
      all the extra whitespace).  This does mean that we end up with some
      over-length lines.
      
      Note that when the documentation for an argument fits on a single
      line like this:
      
      @arg: one line only
      
      then stray extra spaces after the ':' don't affect the rST output, so
      I have not attempted to methodically fix them, though the preference
      is a single space here too.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200213175647.17628-10-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Commit message tweaked]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      26ec4e53
  9. Jan 24, 2020
  10. Dec 18, 2018
  11. May 30, 2018
    • Igor Mammedov's avatar
      qapi: introduce new cmd option "allow-preconfig" · d6fe3d02
      Igor Mammedov authored
      
      New option will be used to allow commands, which are prepared/need
      to run, during preconfig state. Other commands that should be able
      to run in preconfig state, should be amended to not expect machine
      in initialized state or deal with it.
      
      For compatibility reasons, commands that don't use new flag
      'allow-preconfig' explicitly are not permitted to run in
      preconfig state but allowed in all other states like they used
      to be.
      
      Within this patch allow following commands in preconfig state:
         qmp_capabilities
         query-qmp-schema
         query-commands
         query-command-line-options
         query-status
         exit-preconfig
      to allow qmp connection, basic introspection and moving to the next
      state.
      
      PS:
      set-numa-node and query-hotpluggable-cpus will be enabled later in
      a separate patches.
      
      Signed-off-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Message-Id: <1526057503-39287-1-git-send-email-imammedo@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      [ehabkost: Changed "since 2.13" to "since 3.0"]
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      d6fe3d02
    • Igor Mammedov's avatar
      qapi: introduce preconfig runstate · 8a36283e
      Igor Mammedov authored
      
      New preconfig runstate will be used in follow up patches
      related to introducing --preconfig CLI option and is
      intended to replace prelaunch runstate from QEMU start
      up to machine_init callback.
      
      Signed-off-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Message-Id: <1525423069-61903-4-git-send-email-imammedo@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      [ehabkost: Changed "since 2.13" to "since 3.0"]
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      8a36283e
  12. Mar 02, 2018
  13. Feb 26, 2018
    • Christian Borntraeger's avatar
      s390x/cpu: expose the guest crash information · 4ada99ad
      Christian Borntraeger authored
      
      This patch is the s390 implementation of guest crash information,
      similar to commit d187e08d ("i386/cpu: add crash-information QOM
      property") and the related commits. We will detect several crash
      reasons, with the "disabled wait" being the most important one, since
      this is used by all s390 guests as a "panic like" notification.
      
      Demonstrate these ways with examples as follows.
      
        1. crash-information QOM property;
      
        Run qemu with -qmp unix:qmp-sock,server, then use utility "qmp-shell"
        to execute "qom-get" command, and might get the result like,
      
        (QEMU) (QEMU) qom-get path=/machine/unattached/device[0] \
            property=crash-information
        {"return": {"core": 0, "reason": "disabled-wait", "psw-mask": 562956395872256, \
            "type": "s390", "psw-addr": 1102832}}
      
        2. GUEST_PANICKED event reporting;
      
        Run qemu with a socket option, and telnet or nc to that,
        -chardev socket,id=qmp,port=4444,host=localhost,server \
        -mon chardev=qmp,mode=control,pretty=on \
        Negotiating the mode by { "execute": "qmp_capabilities" }, and the crash
        information will be reported on a guest crash event like,
      
        {
          "timestamp": {
              "seconds": 1518004739,
              "microseconds": 552563
          },
          "event": "GUEST_PANICKED",
          "data": {
              "action": "pause",
              "info": {
                  "core": 0,
                  "psw-addr": 1102832,
                  "reason": "disabled-wait",
                  "psw-mask": 562956395872256,
                  "type": "s390"
              }
          }
        }
      
        3. log;
      
        Run qemu with the parameters: -D <logfile> -d guest_errors, to
        specify the logfile and log item. The results might be,
      
        Guest crashed on cpu 0: disabled-wait
        PSW: 0x0002000180000000 0x000000000010d3f0
      
      Co-authored-by: default avatarJing Liu <liujbjl@linux.vnet.ibm.com>
      Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
      Message-Id: <20180209122543.25755-1-borntraeger@de.ibm.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      [CH: tweaked qapi comment]
      Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
      4ada99ad
  14. Oct 02, 2017
  15. Sep 04, 2017
Loading