xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Razvan Cojocaru <rzvncj@gmail.com>
To: Tim Deegan <tim@xen.org>
Cc: Andres Lagar-Cavilla <andreslc@gridcentric.ca>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH V2] mem_event: Allow emulating an instruction that caused a page fault
Date: Tue, 22 Jan 2013 15:47:34 +0200	[thread overview]
Message-ID: <50FE9876.8030907@gmail.com> (raw)
In-Reply-To: <20130122132059.GA87324@ocelot.phlegethon.org>

> Ok, talking only about writes, we have the destination operand, plus all
> the pagetables (for setting Accessed bits) plus any stacks and TSSes
> needed in delivering faults; something like 32 pages for the full
> double-fault scenario.

I see, but then, even setting aside Andres' argument that having all 
possible events sent to userspace is far from trivial, doing so would 
completely cripple the monitored domain speed-wise. Imagine having 
userspace having to decide if it allows a write 32 times per one 
instruction.

Even with its limitations, this patch at least gives us a shot at 
looking at what the domain does with memory - the existing model 
(releasing the page completely to allow the write) is not fit for 
anything like this at all.

So far, between the requirements of reasonable demands on the domU, and 
satisfactory levels of control provided by the received mem_events, at 
least as far as writes go, the patch's done it's job quite nicely.

Thanks,
Razvan Cojocaru

  reply	other threads:[~2013-01-22 13:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.21624.1358431706.1399.xen-devel@lists.xen.org>
2013-01-17 15:38 ` [PATCH V2] mem_event: Allow emulating an instruction that caused a page fault Andres Lagar-Cavilla
2013-01-17 15:50   ` Razvan Cojocaru
2013-01-21 23:13   ` Razvan Cojocaru
2013-01-22 12:31     ` Tim Deegan
2013-01-22 12:53       ` Razvan Cojocaru
2013-01-22 13:20         ` Tim Deegan
2013-01-22 13:47           ` Razvan Cojocaru [this message]
2013-01-22 14:02             ` Andres Lagar-Cavilla
2013-01-22 14:22               ` Razvan Cojocaru
2013-01-22 14:26             ` Tim Deegan
2013-01-22 14:45               ` Razvan Cojocaru
2013-01-24 11:05                 ` Tim Deegan
2013-01-24 11:34                   ` Razvan Cojocaru
2013-01-17 14:02 Razvan Cojocaru

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=50FE9876.8030907@gmail.com \
    --to=rzvncj@gmail.com \
    --cc=andreslc@gridcentric.ca \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /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 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).