All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: Mathieu Desnoyers <compudj@krystal.dyndns.org>
Cc: xen-devel@lists.xensource.com
Subject: Re: LTTng-Xen Buffer shared between the hypervisor and a dom0 process
Date: Sat, 10 Mar 2007 17:18:25 +0000	[thread overview]
Message-ID: <C21898E1.B33B%keir@xensource.com> (raw)
In-Reply-To: <20070310030230.GC9323@Krystal>

On 10/3/07 03:02, "Mathieu Desnoyers" <compudj@krystal.dyndns.org> wrote:

> I see your idea : the other way around would be to have lttctl-xen
> return an error if the buffers are actually mapped. It would however
> require some changes to the buffer scheme, as I support multiple
> start/stop tracing while keeping the same buffers and the same lttd-xen
> daemon. I would have to create a new ltt sub-hypercall to finalize the
> buffers, which would make lttd-xen write them to disk and exit.
> 
> Controlling tracing from within a guest kernel or within the hypervisor
> would start to be a tricky business, as you would have to explicitely
> keep track of lttd-xen presence before freeing the buffers.

Are the buffer pages only ever shared with domain0? In that case we don't
need to worry about Xen holding a reference on the pages that would stop the
domain from ever being destroyed (since dom0 is never destroyed).

In which case I think you can just take an extra count_info reference in
Xen, which you drop on 'lttctl-xen -r'. You'll need an extra page flag so
that the IS_XEN_HEAP_FRAME case in free_domheap_pages() actually frees the
page rather than leaving that job for later.

 -- Keir

      reply	other threads:[~2007-03-10 17:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-07 19:24 LTTng-Xen Buffer shared between the hypervisor and a dom0 process Mathieu Desnoyers
2007-03-08  7:51 ` Keir Fraser
2007-03-08  9:26   ` Mathieu Desnoyers
2007-03-08 10:02     ` Keir Fraser
2007-03-08 19:30       ` Mathieu Desnoyers
2007-03-09  9:11         ` Keir Fraser
2007-03-10  3:02           ` Mathieu Desnoyers
2007-03-10 17:18             ` Keir Fraser [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C21898E1.B33B%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=compudj@krystal.dyndns.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.