qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 6287d8: monitor: allow device_del to accept Q


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 6287d8: monitor: allow device_del to accept QOM paths
Date: Tue, 22 Sep 2015 11:30:08 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 6287d827d494b5850049584c3f7fb1a589dbb1de
      
https://github.com/qemu/qemu/commit/6287d827d494b5850049584c3f7fb1a589dbb1de
  Author: Daniel P. Berrange <address@hidden>
  Date:   2015-09-22 (Tue, 22 Sep 2015)

  Changed paths:
    M hmp-commands.hx
    M qapi-schema.json
    M qdev-monitor.c
    M qmp-commands.hx

  Log Message:
  -----------
  monitor: allow device_del to accept QOM paths

Currently device_del requires that the client provide the
device short ID. device_add allows devices to be created
without giving an ID, at which point there is no way to
delete them with device_del. The QOM object path, however,
provides an alternative way to identify the devices.

Allowing device_del to accept an object path ensures all
devices are deletable regardless of whether they have an
ID.

 (qemu) device_add usb-mouse
 (qemu) qom-list /machine/peripheral-anon
 device[0] (child<usb-mouse>)
 type (string)
 (qemu) device_del /machine/peripheral-anon/device[0]

Devices are required to be marked as hotpluggable
otherwise an error is raised

 (qemu) device_del /machine/unattached/device[4]
 Device 'PIIX3' does not support hotplugging

Signed-off-by: Daniel P. Berrange <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
[Commit message touched up, accidental white-space change dropped]
Signed-off-by: Markus Armbruster <address@hidden>


  Commit: abadcbc838a3b256819fd8932c34a4af41ec187f
      
https://github.com/qemu/qemu/commit/abadcbc838a3b256819fd8932c34a4af41ec187f
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-09-22 (Tue, 22 Sep 2015)

  Changed paths:
    M hmp-commands-info.hx

  Log Message:
  -----------
  hmp: Restore "info pci"

Dropped by commit da76ee76f78b9705e2a91e3c964aef28fecededb's
transition to hmp-commands-info.hx.

Reported-by: Markus Armbruster <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Markus Armbruster <address@hidden>


  Commit: 482d7c0854423608e20e56b5824b7340bd3af7df
      
https://github.com/qemu/qemu/commit/482d7c0854423608e20e56b5824b7340bd3af7df
  Author: Peter Maydell <address@hidden>
  Date:   2015-09-22 (Tue, 22 Sep 2015)

  Changed paths:
    M hmp-commands-info.hx
    M hmp-commands.hx
    M qapi-schema.json
    M qdev-monitor.c
    M qmp-commands.hx

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/armbru/tags/pull-monitor-2015-09-22' 
into staging

Monitor patches

# gpg: Signature made Tue 22 Sep 2015 10:33:34 BST using RSA key ID EB918653
# gpg: Good signature from "Markus Armbruster <address@hidden>"
# gpg:                 aka "Markus Armbruster <address@hidden>"

* remotes/armbru/tags/pull-monitor-2015-09-22:
  hmp: Restore "info pci"
  monitor: allow device_del to accept QOM paths

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/6138fbdebd72...482d7c085442

reply via email to

[Prev in Thread] Current Thread [Next in Thread]