1. 22 7月, 2011 1 次提交
  2. 01 6月, 2011 1 次提交
    • L
      HMP: Use QMP inject nmi implementation · e9b4b432
      Luiz Capitulino 提交于
      This **CHANGES** the human monitor "nmi" command behavior.
      
      Currently it accepts an CPU argument which, when provided, will send
      the NMI to the specified CPU. This feature is of discussable value
      though and HMP shouldn't have more features than QMP, so let's use
      QMP's instead (it's also simpler).
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      e9b4b432
  3. 11 3月, 2011 1 次提交
  4. 10 2月, 2011 1 次提交
  5. 31 1月, 2011 1 次提交
    • C
      block: add block_resize monitor command · 6d4a2b3a
      Christoph Hellwig 提交于
      Add a monitor command that allows resizing of block devices while
      qemu is running.  It uses the existing bdrv_truncate method already
      used by qemu-img to do it's work.  Compared to qemu-img the size
      parsing is very simplicistic, but I think having a properly numering
      object is more useful for non-humand monitor users than having
      the units and relative resize parsing.
      
      For SCSI devices the new size can be updated in Linux guests by
      doing the following shell command:
      
      	echo > /sys/class/scsi_device/0:0:0:0/device/rescan
      
      For ATA devices I don't know of a way to update the block device
      size in Linux system, and for virtio-blk the next two patches
      will provide an automatic update of the size when this command
      is issued on the host.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6d4a2b3a
  6. 24 1月, 2011 1 次提交
    • G
      spice/vnc: client migration. · e866e239
      Gerd Hoffmann 提交于
      Handle spice client migration, i.e. inform a spice client connected
      about the new host and connection parameters, so it can move over the
      connection automatically.
      
      The monitor command has a not-yet used protocol argument simliar to
      set_password and expire_password commands.  This allows to add a simliar
      feature to vnc in the future.  Daniel Berrange plans to work on this.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      e866e239
  7. 22 1月, 2011 1 次提交
    • J
      Add "broadcast" option for mce command · 31ce5e0c
      Jin Dongming 提交于
      When the following test case is injected with mce command, maybe user could not
      get the expected result.
          DATA
                     command cpu bank status             mcg_status  addr   misc
              (qemu) mce     1   1    0xbd00000000000000 0x05        0x1234 0x8c
      
          Expected Result
                 panic type: "Fatal Machine check"
      
      That is because each mce command can only inject the given cpu and could not
      inject mce interrupt to other cpus. So user will get the following result:
          panic type: "Fatal machine check on current CPU"
      
      "broadcast" option is used for injecting dummy data into other cpus. Injecting
      mce with this option the expected result could be gotten.
      
      Usage:
          Broadcast[on]
                 command broadcast cpu bank status             mcg_status  addr   misc
          (qemu) mce     -b        1   1    0xbd00000000000000 0x05        0x1234 0x8c
      
          Broadcast[off]
                 command cpu bank status             mcg_status  addr   misc
          (qemu) mce     1   1    0xbd00000000000000 0x05        0x1234 0x8c
      Signed-off-by: NJin Dongming <jin.dongming@np.css.fujitsu.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      31ce5e0c
  8. 24 12月, 2010 1 次提交
  9. 19 12月, 2010 1 次提交
  10. 17 12月, 2010 1 次提交
  11. 09 12月, 2010 1 次提交
  12. 25 11月, 2010 1 次提交
    • R
      Implement drive_del to decouple block removal from device removal · 9063f814
      Ryan Harper 提交于
      Currently device hotplug removal code is tied to device removal via
      ACPI.  All pci devices that are removable via device_del() require the
      guest to respond to the request.  In some cases the guest may not
      respond leaving the device still accessible to the guest.  The management
      layer doesn't currently have a reliable way to revoke access to host
      resource in the presence of an uncooperative guest.
      
      This patch implements a new monitor command, drive_del, which
      provides an explicit command to revoke access to a host block device.
      
      drive_del first quiesces the block device (qemu_aio_flush;
      bdrv_flush() and bdrv_close()).  This prevents further IO from being
      submitted against the host device.  Finally, drive_del cleans up
      pointers between the drive object (host resource) and the device
      object (guest resource).
      Signed-off-by: NRyan Harper <ryanh@us.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      9063f814
  13. 04 11月, 2010 1 次提交
  14. 01 10月, 2010 3 次提交
  15. 10 9月, 2010 2 次提交
    • S
      trace: Add trace-file command to open/close/flush trace file · c5ceb523
      Stefan Hajnoczi 提交于
      This patch adds the trace-file command:
      
        trace-file [on|off|flush]
      
        Open, close, or flush the trace file.  If no argument is given,
        the status of the trace file is displayed.
      
      The trace file is turned on by default but is only written out when the
      trace buffer becomes full.  The flush operation can be used to force
      write out at any time.
      
      Turning off the trace file does not change the state of trace events;
      tracing will continue to the trace buffer.  When the trace file is off,
      use "info trace" to display the contents of the trace buffer in memory.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      
      This commit also contains the trace-file sub-command from the following
      commit:
      
      commit 5ce8d1a957afae2c52ad748944ce72848ccf57bd
      Author: Prerna Saxena <prerna@linux.vnet.ibm.com>
      Date:   Wed Aug 4 16:23:54 2010 +0530
      
          trace: Add options to specify trace file name at startup and runtime
      
          This patch adds an optional command line switch '-trace' to specify the
          filename to write traces to, when qemu starts.
          Eg, If compiled with the 'simple' trace backend,
          [temp@system]$ qemu -trace FILENAME IMAGE
          Allows the binary traces to be written to FILENAME instead of the option
          set at config-time.
      
          Also, this adds monitor sub-command 'set' to trace-file commands to
          dynamically change trace log file at runtime.
          Eg,
          (qemu)trace-file set FILENAME
          This allows one to set trace outputs to FILENAME from the default
          specified at startup.
      Signed-off-by: NPrerna Saxena <prerna@linux.vnet.ibm.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      c5ceb523
    • P
      trace: Support for dynamically enabling/disabling trace events · 22890ab5
      Prerna Saxena 提交于
      This patch adds support for dynamically enabling/disabling of trace events.
      This is done by internally maintaining each trace event's state, and
      permitting logging of data from a trace event only if it is in an
      'active' state.
      
      Monitor commands added :
      1) info trace-events 		: to view all available trace events and
      				  their state.
      2) trace-event NAME on|off 	: to enable/disable data logging from a
      				  given trace event.
      				  Eg, trace-event paio_submit off
      				  	disables logging of data when
      					paio_submit is hit.
      
      By default, all trace-events are disabled. One can enable desired trace-events
      via the monitor.
      Signed-off-by: NPrerna Saxena <prerna@linux.vnet.ibm.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      
      trace: Monitor command 'info trace'
      
      Monitor command 'info trace' to display contents of trace buffer
      Signed-off-by: NPrerna Saxena <prerna@linux.vnet.ibm.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      
      trace: Remove monitor.h dependency from simpletrace
      
      User-mode targets don't have a monitor so the simple trace backend
      currently does not build on those targets.  This patch abstracts the
      monitor printing interface so there is no direct coupling between
      simpletrace and the monitor.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      22890ab5
  16. 23 8月, 2010 2 次提交
  17. 02 7月, 2010 1 次提交
  18. 13 6月, 2010 1 次提交
  19. 02 6月, 2010 2 次提交
    • J
      QMP: Introduce commands documentation · b40292e7
      Jan Kiszka 提交于
      One of the most important missing feature in QMP today is its
      supported commands documentation.
      
      The plan is to make it part of self-description support, however
      self-description is a big task we have been postponing for a
      long time now and still don't know when it's going to be done.
      
      In order not to compromise QMP adoption and make users' life easier,
      this commit adds a simple text documentation which fully describes
      all QMP supported commands.
      
      This is not ideal for a number of reasons (harder to maintain,
      text-only, etc) but does improve the current situation. To avoid at
      least divering from the user monitor help and texi snippets, QMP bits
      are also maintained inside qemu-monitor.hx, and hxtool is extended to
      generate a single text file from them.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b40292e7
    • J
      monitor: Reorder info documentation · 33572ece
      Jan Kiszka 提交于
      Push the doc fragments for the info command to the end of
      qemu-monitor.hx. This helps to establish a proper layout in the upcoming
      QMP documentation.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      33572ece
  20. 29 5月, 2010 2 次提交
  21. 19 5月, 2010 2 次提交
    • M
      Revert "monitor: Convert do_pci_device_hot_remove() to QObject" · b752daf0
      Markus Armbruster 提交于
      We don't want pci_del in QMP.  Use device_del instead.
      
      This reverts commit 6848d827.
      
      Conflicts:
      
      	hw/pci-hotplug.c
      	sysemu.h
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      b752daf0
    • M
      Revert "PCI: Convert pci_device_hot_add() to QObject" · 6c6a58ae
      Markus Armbruster 提交于
      Short story: We don't want pci_add in QMP.  Long story follows.
      
      pci_add can do two things:
      
      * Hot plug a PCI NIC.  device_add is more general.
      
      * Hot plug a PCI disk controller, and a drive connected to it.
      
        The controller is either virtio-blk-pci (if=virtio) or lsi53c895a
        (if=scsi).  With the latter, the drive is optional.  Use drive_add to
        hotplug additional SCSI drives.  Except drive_add is not available in
        QMP.
      
        device_add is more general for controllers and the guest part of
        drives.  I'm working on a more general alternative for the host part
        of drives.
      
      Why am I proposing to remove pci_add from QMP before its replacement is
      ready?  I want it out sooner rather than later, because it isn't fully
      functional (errors and drive_add are missing), and we do not plan to
      complete the job.  In other words, it's not really usable over QMP now,
      and it's not what we want for QMP anyway.  Since we don't want it to be
      used over QMP, we should take it out, not leave it around as a trap for
      the uninitiated.
      
      Dan Berrange confirmed that libvirt has no need for pci_add & friends
      over QMP.
      
      This reverts commit 7a344f7a.
      
      Conflicts:
      
      	hw/pci-hotplug.c
      	sysemu.h
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      6c6a58ae
  22. 11 5月, 2010 4 次提交
  23. 19 4月, 2010 6 次提交
  24. 17 3月, 2010 2 次提交