ia64/xen-unstable

changeset 18343:a864ba2f0aa5

x86 hvm: Another clarifying comment in the HVM address translation emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Aug 19 19:45:27 2008 +0100 (2008-08-19)
parents 504e5334f1a2
children 0cf244daf3c4
files xen/arch/x86/hvm/emulate.c
line diff
     1.1 --- a/xen/arch/x86/hvm/emulate.c	Tue Aug 19 18:52:04 2008 +0100
     1.2 +++ b/xen/arch/x86/hvm/emulate.c	Tue Aug 19 19:45:27 2008 +0100
     1.3 @@ -311,6 +311,10 @@ static int hvmemul_virtual_to_linear(
     1.4  
     1.5      if ( (hvmemul_ctxt->ctxt.regs->eflags & X86_EFLAGS_DF) && (*reps > 1) )
     1.6      {
     1.7 +        /*
     1.8 +         * x86_emulate() clips the repetition count to ensure we don't wrap
     1.9 +         * the effective-address index register. Hence this assertion holds.
    1.10 +         */
    1.11          ASSERT(offset >= ((*reps - 1) * bytes_per_rep));
    1.12          okay = hvm_virtual_to_linear_addr(
    1.13              seg, reg, offset - (*reps - 1) * bytes_per_rep,