All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] wrong ioctl error handling on dirty pages sync?
@ 2017-08-25 11:42 Ján Poctavek
  2017-08-29 10:08 ` Stefan Hajnoczi
  0 siblings, 1 reply; 6+ messages in thread
From: Ján Poctavek @ 2017-08-25 11:42 UTC (permalink / raw)
  To: qemu-devel

Hi guys,

Maybe it is just my lack of understanding, this seems like a bug to me:

To get list of dirty pages, qemu calls kvm_vm_ioctl() with 
KVM_GET_DIRTY_LOG:
https://github.com/qemu/qemu/blob/v2.10.0-rc4/accel/kvm/kvm-all.c#L494

and considers the ioctl call failed when -1 is returned.

But the kvm_vm_ioctl() itself returns -errno, not the -1 on error:
https://github.com/qemu/qemu/blob/v2.10.0-rc4/accel/kvm/kvm-all.c#L2142

Thanks in advance for sheding some light into this for me.

Jan

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

end of thread, other threads:[~2017-09-05 12:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 11:42 [Qemu-devel] wrong ioctl error handling on dirty pages sync? Ján Poctavek
2017-08-29 10:08 ` Stefan Hajnoczi
2017-09-04 12:52   ` Ján Poctavek
2017-09-05 10:33     ` Stefan Hajnoczi
2017-09-05 11:57       ` Michael Tokarev
2017-09-05 11:59         ` Michael Tokarev

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.