* exception interception
@ 2012-02-12 20:45 X
2012-02-13 10:34 ` Tim Deegan
0 siblings, 1 reply; 2+ messages in thread
From: X @ 2012-02-12 20:45 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 770 bytes --]
Hello,
Could someone kindly point me to the code in Xen for handling the
exceptions intercepted from PV guest kernels?
Thanks.
===More detail===
I was looking at some futex code in a guest kernel. The kernel code below
must have caused an exception and thus trapped into Xen. But I have not
figured out where exactly Xen processes the intercepted exception.
from guest kernel's arch/x86/include/asm/futex.h, in function
futex_atomic_cmpxchg_inatomic
asm volatile("1:\t" LOCK_PREFIX "cmpxchgl %4, %2\n"
"2:\t.section .fixup, \"ax\"\n"
"3:\tmov %3, %0\n"
"\tjmp 2b\n"
"\t.previous\n"
_ASM_EXTABLE(1b, 3b)
: "+r" (ret), "=a" (oldval), "+m" (*uaddr)
: "i" (-EFAULT), "r" (newval), "1" (oldval)
: "memory"
);
==========
X
[-- Attachment #1.2: Type: text/html, Size: 1799 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: exception interception
2012-02-12 20:45 exception interception X
@ 2012-02-13 10:34 ` Tim Deegan
0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2012-02-13 10:34 UTC (permalink / raw)
To: X; +Cc: xen-devel
At 15:45 -0500 on 12 Feb (1329061516), X wrote:
> Hello,
>
> Could someone kindly point me to the code in Xen for handling the
> exceptions intercepted from PV guest kernels?
Have a look at xen/arch/x86/traps.c
Cheers,
Tim.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-13 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-12 20:45 exception interception X
2012-02-13 10:34 ` Tim Deegan
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).