cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

valderama
Journeyman III

monitor/mwait in user-mode

Hi,

According to the AMD specs, it seems that monitor/mwait can be used in CPL bigger than 0. Nevertheless, all my trials on two different machines, one running windows, and the other LINUX ended with illegal instruction failure.

The spec do state that the MSR C001_0015h[MonMwaitUserEn] must be set to 1.

I have no idea what either LINUX or Windows do with this MSR. Anyone has better experience with playing with monitor/mwait in user-mode in any OS (Windows?LINUX?FreeBSD?)

Those instructions can be highly beneficial in special cases when you can spare the hardware thread for waiting, but want it to wake up very fast when the occassion arrives.

 

Cheers!!

Tags (3)
0 Likes
2 Replies
avk
Adept III

monitor/mwait in user-mode

It seems that this is a BIOS function to enable the MONITOR/MWAIT instructions at CPL > 0. Look at this.

0 Likes
sigmainfotech
Journeyman III

monitor/mwait in user-mode

Hi,

0 Likes