From: Rusty Russell <rusty@rustcorp.com.au>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: virtualization@lists.osdl.org
Subject: Re: lguest over qemu
Date: Fri, 13 Jul 2007 14:46:56 +1000 [thread overview]
Message-ID: <1184302016.6005.822.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.58.0707122033140.10575@gandalf.stny.rr.com>
On Thu, 2007-07-12 at 20:41 -0400, Steven Rostedt wrote:
> >
> > (Note that lguest doesn't support NMIs, but Steven has code for NMI
> > support for lguest-x86-64 which could be ported across).
>
> Rusty,
>
> About that. Is there a way to get a NMI only stack in i386? In x86_64
> it's part of the TSS. So I can always know I have a good stack for the
> NMI. I'm not sure i368 has the same thing. Or do we always have a good
> stack whenever we are in ring0?
Yeah, we always have a good stack. It might have some stuff pushed on
it if we were in the middle of a switch, but that's OK.
> Oh, and btw, I've just rewrote all of the Lguest64 page table handling.
> I'm just going over one design change that is really bothering me. In
> x86_64 we can have 2M or 4k pages (like the PSE in i386). But since 4K
> pages are used by the shadow page tables, I have to map them like that.
> But this means that I can have the same guest address as both a PMD and a
> PTE. Which is breaking some of my code. I'm working on a fix as I write
> this.
This would be a good place to share with KVM, I think. (Or at least
look at what they did here).
> But to get you up-to-date to where I'm at. I've implemented a way to have
> the HV mapped uniquely for all VCPUs. So there's a HV text section (the
> same for all VCPUs), a HV VCPU Data section (readonly in all rings with
> guest cr3), and a HV VCPU Scratch Pad section (read/write in rings
> 0,1,and2). So now the guest kernel runs in ring 1. With this change, I
> already implemented a syscall trampoline that no longer needs to switch to
> the host, as well as iretq by the guest kernel goes directly to the guest
> user space (or kernel). The next version of lguest64 will be much cleaner
> and faster!!!!
Awesome! Good to see the puppies run free...
Cheers,
Rusty.
next prev parent reply other threads:[~2007-07-13 4:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-11 9:51 lguest over qemu Matias Zabaljauregui
2007-07-12 3:19 ` Rusty Russell
2007-07-12 15:02 ` Matias Zabaljauregui
2007-07-12 23:44 ` Rusty Russell
2007-07-13 0:41 ` Steven Rostedt
2007-07-13 4:46 ` Rusty Russell [this message]
2007-08-25 15:48 ` Eric Van Hensbergen
2007-08-25 21:19 ` Rusty Russell
2007-08-25 23:33 ` Eric Van Hensbergen
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=1184302016.6005.822.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=rostedt@goodmis.org \
--cc=virtualization@lists.osdl.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).