search for: ring_3

Displaying 3 results from an estimated 3 matches for "ring_3".

Did you mean: ring3
2006 Jul 05
4
xenoprof passive profiling and "mode" setting
...wing bit of code in p4_check_ctrs():        if (guest_kernel_mode(current, regs))                 mode = 1;         else if (ring_0(regs))                 mode = 2; If I look at the definition for guest_kernel_mode() it is: include/asm-x86/x86_64/regs.h: #define guest_kernel_mode(v, r)   \     (ring_3(r) && ((v)->arch.flags & TF_kernel_mode)) (Note well:  I am running a 64 bit guest and a 64 bit host.) So, how is that possibly true for the kernel in an HVM guest? (Wouldn''t guest_kernel_mode(regs) be false in that case since it is not running ring_3()?) Also, wouldn...
2006 Jul 06
0
Fwd: RE: xenoprof passive profiling and "mode" setting
...gt; Cc: xen-devel@lists.xensource.com >guest_kernel_mode() does not work for HVM guests. It may need to be >fixed -- it had previously only been used in paravirtual-only contexts. > >It might make sense to invert[*] the predicate and rename to >user_mode(). Then definition is simply ring_3(regs) for x86/32 and >(ring_3(regs) && !((v)->arch.flags & TF_kernel_mode)) for x86/64. > >So maybe: > int mode = 2; > if (guest_mode(regs)) > mode = user_mode(current, regs) ? 0 : 1; Yes, this is a better solution for sure, to take both para-domain and h...
2013 Sep 23
57
[PATCH RFC v13 00/20] Introduce PVH domU support
This patch series is a reworking of a series developed by Mukesh Rathor at Oracle. The entirety of the design and development was done by him; I have only reworked, reorganized, and simplified things in a way that I think makes more sense. The vast majority of the credit for this effort therefore goes to him. This version is labelled v13 because it is based on his most recent series, v11.