diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-03-29 20:04:40 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-04-07 13:51:47 +0200 |
commit | b8c6d0958943c96ca9401961a1200568c7ec0268 (patch) | |
tree | 60eb25ebf1789590df142ed18090ffe82a85e5d2 /block.c | |
parent | d22b2f41c470067758b3636a01b452dfeda7069f (diff) |
trace: Trace bdrv_set_locked()
It can be handy to know when the guest locks/unlocks the CD-ROM tray.
This trace event makes that possible.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2817,6 +2817,8 @@ void bdrv_set_locked(BlockDriverState *bs, int locked) { BlockDriver *drv = bs->drv; + trace_bdrv_set_locked(bs, locked); + bs->locked = locked; if (drv && drv->bdrv_set_locked) { drv->bdrv_set_locked(bs, locked); |