[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] LTTng-Xen Buffer shared between the hypervisor and a dom0 process

  • To: Mathieu Desnoyers <compudj@xxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
  • Date: Thu, 08 Mar 2007 07:51:39 +0000
  • Delivery-date: Wed, 07 Mar 2007 23:50:12 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcdhVpp42MJ4os1JEduPKQAWy6hiGQ==
  • Thread-topic: [Xen-devel] LTTng-Xen Buffer shared between the hypervisor and a dom0 process

On 7/3/07 19:24, "Mathieu Desnoyers" <compudj@xxxxxxxxxxxxxxxxxx> wrote:

> Then, I would like to release some kind of reference count of this
> mapping from the hypervisor. I do the following which results in page
> faults (probably because it tries to free memory still accessed by
> lttd-xen) :

What's the shutdown order you're looking for? It sounds like you want Xen to
tell lttd-xen when it should quit, which seems to me the wrong way round.

 -- Keir

>             free_xenheap_pages(
>                 rawbuf,
>                 get_order_from_bytes(chan->alloc_size * num_possible_cpus()));
> And then, when we are sure that no more data can be written in the
> buffer, lttd-xen is ready to exit. It unmaps the buffer just before exit :
>             err_ret = munmap(pair->mmap, pair->subbuf_size * pair->n_subbufs);
> Do you know any proper way to achieve what I am looking for ?

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.