qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 0/3] move global bdrv_states out of block.c
@ 2013-08-27  7:49 Wenchao Xia
  2013-08-27  7:49 ` [Qemu-devel] [RFC PATCH 1/3] block: add typedef for BlockDriverState queue Wenchao Xia
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Wenchao Xia @ 2013-08-27  7:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, pbonzini, Wenchao Xia, stefanha

In order to support multiple caller from different thread, global
inside block layer should be carefully treated. bdrv_states represent
a group of bds* which is now used by qemu, so it is a user concept which
should be managed by user. This series tries to move it out, so later
different thread can feed the API with its own bds* group.

This is a RFC series which does not completely convert the API, the missing
part is adding parameter *l in all API which uses bdrv_states, then move
bdrv_states to caller. About 10 functions need to be converted, so hope to
get comments before that, to see if this is the right direction.

Wenchao Xia (3):
  1 block: add typedef for BlockDriverState queue
  2 block: add function qemu_get_bds_queue
  3 block: add parameter bds queue in bdrv_invalidate_cache_all()

 block.c               |   11 ++++++++---
 include/block/block.h |    7 ++++++-
 migration.c           |    2 +-
 3 files changed, 15 insertions(+), 5 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-20  6:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-27  7:49 [Qemu-devel] [RFC PATCH 0/3] move global bdrv_states out of block.c Wenchao Xia
2013-08-27  7:49 ` [Qemu-devel] [RFC PATCH 1/3] block: add typedef for BlockDriverState queue Wenchao Xia
2013-08-27  7:49 ` [Qemu-devel] [RFC PATCH 2/3] block: add function qemu_get_bds_queue Wenchao Xia
2013-08-27  7:49 ` [Qemu-devel] [RFC PATCH 3/3] block: add parameter bds queue in bdrv_invalidate_cache_all() Wenchao Xia
2013-09-18 14:03 ` [Qemu-devel] [RFC PATCH 0/3] move global bdrv_states out of block.c Stefan Hajnoczi
2013-09-20  6:24   ` Wenchao Xia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).