All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: Jerone Young <jerone@gmail.com>
Cc: "Petersson, Mats" <mats.petersson@amd.com>,
	Andrew Theurer <habanero@us.ibm.com>,
	xen-devel@lists.xensource.com
Subject: Re: domU can't start, Non-priv warnings
Date: Wed, 17 Aug 2005 12:13:44 -0500	[thread overview]
Message-ID: <1124298825.2586.11.camel@thinkpad> (raw)
In-Reply-To: <9f50a7a005081704595506ec50@mail.gmail.com>

On Wed, 2005-08-17 at 06:59 -0500, Jerone Young wrote:
> On 8/17/05, Petersson, Mats <mats.petersson@amd.com> wrote:
> > 
> > 
> > > -----Original Message-----
> > > From: xen-devel-bounces@lists.xensource.com
> > > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of
> > > Jerone Young
> > > Sent: 16 August 2005 20:33
> > > To: Andrew Theurer
> > > Cc: xen-devel@lists.xensource.com
> > > Subject: Re: [Xen-devel] domU can't start, Non-priv warnings
> > >
> > > On Tue, 2005-08-16 at 14:19 -0500, Andrew Theurer wrote:
> > > > Can't seem to fully boot a domU on either EM64T or Opteron
> > > with x86_64
> > > > xen-unstable.  Both systems' report this from xen:
> > > >
> > > > (XEN) (file=traps.c, line=872) Non-priv domain attempted
> > > > WRMSR(00000000c0000100.
> > > > (XEN) (file=traps.c, line=872) Non-priv domain attempted
> > > > WRMSR(00000000c0000102.
> > > > (XEN) (file=traps.c, line=880) Non-priv domain attempted
> > > > RDMSR(00000000c0000080.
> > > >
> > > > They boot partially, ending with:
> > > >
> > > > xen_mem: Initialising balloon driver.
> > > > Grant table initialized
> > > > IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $
> > > > audit: initializing netlink socket (disabled)
> > > > audit(1124251914.348:0): initialized
> > > > VFS: Disk quotas dquot_6.5.1
> > > > Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> > > >
> > > >
> > > > This is with the default kernel configs xen-unstable
> > > provides.  NX is
> > > > enabled on the EM64T.  I could not find a similar BIOS option for
> > > > Opteron.  Even through they are "stuck", cpu time for these domains
> > > > increments steadily.  Any ideas?
> > >
> > > Checking it out...looks like Xen is pretty screwed on Opteron
> > > machines at the moment (at least on my dual Opteron
> > > workstation). There seems to be some timer issue...takes
> > > forever fro the machine to boot up.
> > >
> > > Oh..AMD does not have an option for the NX bit...the cpu
> > > always can understand it.
> > 
> > That is incorrect. AMD's 64-bit processors use NXE, bit 11, in EFER (MSR
> > 0xC0000080) to determine if NX is "in use" or not.
> 
> You apparently miss understand this. Intel CPUs have an option in the
> bios where if bit 11 is set it has no idea what to do with it. Where
> as on AMD 64-bit CPUs if bit 11 is set then it always does. My big
> complaint is why Intel made this possible in the first place.
Wow I just read this ...don't write emails really early in the
morning :-)

Ok the problem is that in Xen x86-64 the NX bit is set on memory pages
and your Intel EM64T CPU cannot understand this....xen go boom! So there
is an option in the bios for Intel EM64T CPUs that is called "disable
execute bit" (at least on IBM machines). This name is a bit
misleading...it enables the NX feature on the CPU (does not activate
it). So what this option does is allow the activation of NX bit
enforcement on the CPU as well as allow the CPU to understand the NX bit
set on memory pages. Where as on AMD K8 CPUs always have the ability to
have the NX bit feature there used and understands the bit set on memory
pages.

Much better..

> 
> > However, I'm not aware of any way to disable the ability to set this bit
> > in the MSR, if that's what you mean by "AMD does not have an option for
> > the NX bit".
> > 
> > --
> > Mats
> > > >
> > > > -Andrew
> > > >
> > > > _______________________________________________
> > > > Xen-devel mailing list
> > > > Xen-devel@lists.xensource.com
> > > > http://lists.xensource.com/xen-devel
> > > >
> > > --
> > > Jerone Young
> > > IBM Linux Technology Center
> > > jyoung5@us.ibm.com
> > > 512-838-1157 (T/L: 678-1157)
> > >
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel
> > >
> > 
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> >
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
-- 
Jerone Young
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)

  reply	other threads:[~2005-08-17 17:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-17  7:41 domU can't start, Non-priv warnings Petersson, Mats
2005-08-17 11:59 ` Jerone Young
2005-08-17 17:13   ` Jerone Young [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-17 19:39 Ian Pratt
2005-08-17 19:53 ` Andrew Theurer
2005-08-17 19:58   ` Chris Wright
2005-08-16 21:32 Ian Pratt
2005-08-17 19:35 ` Andrew Theurer
2005-08-16 20:23 Nakajima, Jun
2005-08-16 19:19 Andrew Theurer
2005-08-16 19:32 ` Jerone Young
2005-08-16 19:45 ` Keir Fraser
2005-08-16 19:56   ` Andrew Theurer
2005-08-16 20:02   ` Jerone Young
2005-08-16 20:01 ` David F Barrera
2005-08-16 21:24   ` Andrew Theurer
2005-08-16 21:53     ` David F Barrera
2005-08-16 21:52       ` Keir Fraser
2005-08-16 21:59     ` David F Barrera
2005-08-16 22:14       ` Keir Fraser
2005-08-17 16:54         ` David F Barrera

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=1124298825.2586.11.camel@thinkpad \
    --to=jyoung5@us.ibm.com \
    --cc=habanero@us.ibm.com \
    --cc=jerone@gmail.com \
    --cc=mats.petersson@amd.com \
    --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.