From: Avi Kivity <avi@qumranet.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Avi Kivity <public-avi-atKUWr5tajBWk0Htik3J/w@ciao.gmane.org>,
public-linux-kernel-u79uwXL29TY76Z2rM5mHXA@ciao.gmane.org,
public-linux-mm-Bw31MaZKKs3YtjvyW6yDsg@ciao.gmane.org,
public-kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@ciao.gmane.org,
public-general-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@ciao.gmane.org
Subject: Re: [PATCH][RFC] pte notifiers -- support for external page tables
Date: Thu, 06 Sep 2007 16:18:23 +0300 [thread overview]
Message-ID: <46DFFE1F.7060900@qumranet.com> (raw)
In-Reply-To: <p73myw09g5w.fsf@bingen.suse.de>
[ugh, what happened to the cc-list?]
Andi Kleen wrote:
> Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> writes:
>
>> pte notifiers are different from paravirt_ops: they extend the normal
>> page tables rather than replace them; and they provide high-level information
>> such as the vma and the virtual address for the driver to use.
>>
>
> Sounds like a locking horror to me. To do anything with page tables
> you need locks. Both for the kernel page tables and for your new tables.
>
> What happens when people add all
> things of complicated operations in these notifiers? That will likely
> happen and then everytime you change something in VM code they
> will break. This has the potential to increase the cost of maintaining
> VM code considerably, which would be a bad thing.
>
> This is quite different from paravirt ops because low level pvops
> can typically run lockless by just doing some kind of hypercall directly.
> But that won't work for maintaining your custom page tables.
>
This is a real problem. I don't have a solution yet.
Obviously that needs to be addressed before something like this can go
in; but as it's been done for the quadrics driver, presumably it is doable.
--
Any sufficiently difficult bug is indistinguishable from a feature.
next prev parent reply other threads:[~2007-09-06 13:22 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-05 19:32 [PATCH][RFC] pte notifiers -- support for external page tables Avi Kivity
2007-09-05 19:32 ` Avi Kivity
2007-09-05 19:32 ` Avi Kivity
2007-09-05 19:56 ` [kvm-devel] " Rusty Russell
2007-09-05 19:56 ` Rusty Russell
2007-09-05 19:56 ` [ofa-general] " Rusty Russell
2007-09-05 20:17 ` Avi Kivity
2007-09-05 20:17 ` Avi Kivity
2007-09-05 20:17 ` Avi Kivity
2007-09-06 4:28 ` Shaohua Li
2007-09-06 4:28 ` Shaohua Li
2007-09-06 4:28 ` Shaohua Li
2007-09-06 8:38 ` Avi Kivity
2007-09-06 8:38 ` Avi Kivity
2007-09-06 8:38 ` [ofa-general] " Avi Kivity
2007-09-06 11:39 ` Andi Kleen
2007-09-06 13:18 ` Avi Kivity [this message]
2007-09-06 15:17 ` Avi Kivity
2007-09-06 15:17 ` Avi Kivity
2007-09-06 15:17 ` [ofa-general] " Avi Kivity
2007-09-06 13:28 ` Andi Kleen
2007-09-06 13:28 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2007-09-05 16:38 [PATCH][RFC]: " Avi Kivity
2007-09-05 19:05 ` Rik van Riel
2007-09-05 19:14 ` Avi Kivity
2007-09-05 19:23 ` Rik van Riel
2007-09-05 19:32 ` Avi Kivity
2007-09-05 19:32 ` Avi Kivity
2007-09-06 11:28 ` Jeremy Fitzhardinge
2007-09-06 11:28 ` Jeremy Fitzhardinge
2007-09-06 11:28 ` Jeremy Fitzhardinge
2007-09-05 20:40 ` Jack Steiner
2007-09-05 20:40 ` Avi Kivity
2007-09-05 20:42 ` Avi Kivity
2007-09-05 20:42 ` Avi Kivity
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=46DFFE1F.7060900@qumranet.com \
--to=avi@qumranet.com \
--cc=andi@firstfloor.org \
--cc=public-avi-atKUWr5tajBWk0Htik3J/w@ciao.gmane.org \
--cc=public-general-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@ciao.gmane.org \
--cc=public-kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@ciao.gmane.org \
--cc=public-linux-kernel-u79uwXL29TY76Z2rM5mHXA@ciao.gmane.org \
--cc=public-linux-mm-Bw31MaZKKs3YtjvyW6yDsg@ciao.gmane.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 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.