|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] x86_emulate(): Upon LOCK prefix for MOV,	should inject #UD r
 
Hi all,
        The Intel SDM(2A) says that if the LOCK prefix is used with some
instructions such as "mov" and the souce  operand is a memory operand, a
#UD may be generated, but in the x86_emulate.c there are places such as
:
             942     /* Lock prefix is allowed only on RMW instructions.
*/
             943     generate_exception_if((d & Mov) && lock_prefix,
EXC_GP);
here we inject EXC_GP but not EXC_UD, is it a bug?
--Eric (Liu, Feng)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] x86_emulate(): Upon LOCK prefix for MOV,	should inject #UD rather than #GP?,
Liu, Eric E <=
 
 
 |  
  
 | 
    | 
  
  
    |   | 
    |