OSDN Git Service

iothread: add iothread_by_id() API
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 6 Dec 2017 14:45:48 +0000 (14:45 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 19 Dec 2017 10:25:09 +0000 (10:25 +0000)
commitfbcc6923b00c2b468a7470fec7863f0403a65736
tree665c5283371b8fc24fd9ad5d4d9b413b901f77e8
parent5016f21b705152d138395f90219b665ddce89c1b
iothread: add iothread_by_id() API

Encapsulate IOThread QOM object lookup so that callers don't need to
know how and where IOThread objects live.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20171206144550.22295-8-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/sysemu/iothread.h
iothread.c