All of lore.kernel.org
 help / color / mirror / Atom feed
* [Query] Deadlock condition due to virtqueue_add buffer allocation
@ 2017-07-28 20:34 Nitesh Narayan Lal
  2017-08-01  3:12 ` Yang Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Nitesh Narayan Lal @ 2017-07-28 20:34 UTC (permalink / raw)
  To: kvm; +Cc: Rik van Riel

Hi,

I am working on the guest page hinting support with Rik.
As per my implementation when pages are freed, they are added to a
cpu-local list. Once that list fills up, the pages need to be passed to
the hypervisor. I am currently using a seqlock to ensure page allocation
does not allocate pages while they are being freed by the hypervisor.
This list is passed to the hypervisor using virtio_balloon
infrastructure. As per the current flow virtqueue_add() requires a
memory allocation, which leads to a deadlock condition.

What should be the right way to get around this?

Looking forward for the suggestions.

-- 

Regards
Nitesh

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

end of thread, other threads:[~2017-08-01 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-28 20:34 [Query] Deadlock condition due to virtqueue_add buffer allocation Nitesh Narayan Lal
2017-08-01  3:12 ` Yang Zhang
2017-08-01 13:15   ` Nitesh Narayan Lal

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.