From: Trammell Hudson <hudson@osresearch.net>
To: xen-devel@lists.xensource.com
Subject: Re: Switching to user mode from domU kernel
Date: Mon, 22 Oct 2007 18:00:22 -0400 [thread overview]
Message-ID: <20071022220022.GD7806@osresearch.net> (raw)
In-Reply-To: <C342C2A5.F475%Keir.Fraser@cl.cam.ac.uk>
On Mon, Oct 22, 2007 at 09:12:05PM +0100, Keir Fraser wrote:
> On 22/10/07 20:52, "Trammell Hudson" <hudson@osresearch.net> wrote:
> > I've masked all events and the pending field in the shared_info
> > structure is zero. There are no waiting characters in the incoming
> > xen_console->in_prod array.
>
> Perhaps the page you think is shared_info isn't really? If Xen is calling
> you back repeatedly then it thinks events are pending.
That was it! I had misunderstood the comment in the start_info
structure in xen.h:
unsigned long shared_info; /* MACHINE address of shared info struct. */
xen_pfn_t store_mfn; /* MACHINE page number of shared page. */
I thought that the store_mfn was the machine page number for the
shared info structure and had used that as my xen_shared_info
pointer. Mapping the address pointed to by shared_info instead
makes it work perfectly.
Now my kernel transfers into the user code and faults as expected.
Thank you!
-- Trammell
prev parent reply other threads:[~2007-10-22 22:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-30 20:11 Switching to user mode from domU kernel Trammell Hudson
2007-10-01 5:24 ` Keir Fraser
2007-10-01 18:43 ` Trammell Hudson
2007-10-02 5:33 ` Keir Fraser
2007-10-22 19:52 ` Trammell Hudson
2007-10-22 20:12 ` Keir Fraser
2007-10-22 22:00 ` Trammell Hudson [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=20071022220022.GD7806@osresearch.net \
--to=hudson@osresearch.net \
--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.