From: Ian Campbell <Ian.Campbell@XenSource.com>
To: "Bryan D. Payne" <bryan@thepaynes.cc>
Cc: Xen Developers <xen-devel@lists.xensource.com>
Subject: Re: hypercall execution path?
Date: Thu, 22 Feb 2007 20:46:54 +0000 [thread overview]
Message-ID: <1172177214.19233.32.camel@localhost.localdomain> (raw)
In-Reply-To: <45DDFCEE.6020201@thepaynes.cc>
On Thu, 2007-02-22 at 15:28 -0500, Bryan D. Payne wrote:
> uint32_t eip = sd->vcpu[0]->arch.guest_context.user_regs.eip;
> gdprintk(XENLOG_WARNING, "eip=0x%x", eip);
sd is current->domain here so the guest context is saved on the stack
rather than in the domain structure. Therefore you need to use
guest_cpu_user_regs()->eip instead. I should have thought of that
before, sorry.
The context in the vcpu's arch.guest_context will be a stale left over
from the last time the domain was rescheduled, which is why it is doing
a sched_op since it was presumably just waking up from idle.
Ian.
next prev parent reply other threads:[~2007-02-22 20:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 17:17 hypercall execution path? Bryan D. Payne
[not found] ` <1172168208.12407.26.camel@lapbode42.lrr.in.tum.de>
2007-02-22 18:18 ` Daniel Stodden
2007-02-22 18:30 ` Bryan D. Payne
2007-02-22 18:37 ` Ian Campbell
2007-02-22 19:11 ` Bryan D. Payne
2007-02-22 20:05 ` Ian Campbell
2007-02-22 20:28 ` Bryan D. Payne
2007-02-22 20:46 ` Ian Campbell [this message]
2007-02-22 21:18 ` Bryan D. Payne
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=1172177214.19233.32.camel@localhost.localdomain \
--to=ian.campbell@xensource.com \
--cc=bryan@thepaynes.cc \
--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.