qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] bogus bdrv_check_request in bdrv_co_discard
@ 2016-03-09 12:11 Olaf Hering
  2016-03-09 12:29 ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: Olaf Hering @ 2016-03-09 12:11 UTC (permalink / raw)
  To: Kevin Wolf, Stefan Hajnoczi; +Cc: qemu-devel, qemu-block

What is the purpose of the bdrv_check_request() call in bdrv_co_discard?

It seems a frontend cant possibly know what the limit is in the
qemu-of-the-day, I found no interface to propagate
BDRV_REQUEST_MAX_SECTORS into the guest.

I think to handle nb_sectors > BDRV_REQUEST_MAX_SECTORS bdrv_co_discard
has to split the request into smaller chunks, just as it does a few
lines down in the function.


Olaf

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

end of thread, other threads:[~2016-03-16 10:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 12:11 [Qemu-devel] bogus bdrv_check_request in bdrv_co_discard Olaf Hering
2016-03-09 12:29 ` Paolo Bonzini
     [not found]   ` <20160309144514.GA29027@aepfle.de>
2016-03-09 14:58     ` Kevin Wolf
2016-03-09 16:50       ` Olaf Hering
2016-03-09 17:03         ` Olaf Hering
2016-03-16 10:18         ` Olaf Hering

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).