Skip to contentSkip to conversation

STGI #UD exception

DISCUSSION mythbuster 2 participants 2 messages Jun 20, 2007 – Jun 21, 2007

lore
Share & tools
lore

mythbuster

author
#0 lore raw

Hello all,

AMD manual states about STGI instruction:

"This instruction generates a #UD exception is SVM is not enabled."

However, if I execute in ring-0 the STGI instruction in my system with EFER.SVME == 0, I receive a #GP exception instead of a #UD exception. In other test, I just set the SVME bit to 1 and now I receive a #UD exception!

Is the manual wrong?

P.S.: My CPU obviously has the SVM extensions (AMD X2 4600+ AM2)

Signature · 2 lines
View this message in context: http://www.nabble.com/STGI--UD-exception-tf3949976.html#a11206287
Sent from the Xen - Dev mailing list archive at Nabble.com.
#1 lore raw
Quoted 10 lines · mythbuster

Hello all,

AMD manual states about STGI instruction:

"This instruction generates a #UD exception is SVM is not enabled."

However, if I execute in ring-0 the STGI instruction in my system with EFER.SVME == 0, I receive a #GP exception instead of a #UD exception. In other test, I just set the SVME bit to 1 and now I receive a #UD exception!

So SVM doesn't work at all? Have you checked to see if it's disabled in your BIOS?

Regards,

Anthony Liguori

Quoted 3 lines

Is the manual wrong?

P.S.: My CPU obviously has the SVM extensions (AMD X2 4600+ AM2)