All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] mirror questions
@ 2019-02-26  8:48 Vladimir Sementsov-Ogievskiy
  2019-02-26  9:28 ` Kevin Wolf
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2019-02-26  8:48 UTC (permalink / raw)
  To: qemu-devel, qemu block; +Cc: Paolo Bonzini, Kevin Wolf, Max Reitz, John Snow

Hi!

A question about s->cow_bitmap, introduced in far b812f6719c
     "mirror: perform COW if the cluster size is bigger than the granularity"

cow_bitmap is just a bitmap which tracks, what clusters of target are allocated, to
prevent COW in target, if target backing is not ready yet. And it is done by just
aligning request to be larget and cover unaligned border clusters.

so, questions:

1. Is it correct that we align only on COPY operation in mirror_co_read? Misaligned
write_zero can also lead to COW, I think? Discard seems safe in this way, is it?

2. I don't see, how is it handled, if we align operation so that offset is decreases,
then it may intersect with previous mirror operation request, which may be not yet finished?

-- 
Best regards,
Vladimir

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

end of thread, other threads:[~2019-02-26 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-26  8:48 [Qemu-devel] mirror questions Vladimir Sementsov-Ogievskiy
2019-02-26  9:28 ` Kevin Wolf
2019-02-26 12:07   ` Vladimir Sementsov-Ogievskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.