ia64/xen-unstable

changeset 17458:6691ae150d10

x86, hvm: If an MMIO handler returns X86EMUL_RETRY we must still
complete the dummy I/O request-response cycle.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 15:45:42 2008 +0100 (2008-04-15)
parents 5338c4f424ed
children e15be54059e4
files xen/arch/x86/hvm/emulate.c
line diff
     1.1 --- a/xen/arch/x86/hvm/emulate.c	Tue Apr 15 15:44:40 2008 +0100
     1.2 +++ b/xen/arch/x86/hvm/emulate.c	Tue Apr 15 15:45:42 2008 +0100
     1.3 @@ -76,6 +76,7 @@ static int hvmemul_do_io(
     1.4      switch ( rc )
     1.5      {
     1.6      case X86EMUL_OKAY:
     1.7 +    case X86EMUL_RETRY:
     1.8          *reps = p->count;
     1.9          p->state = STATE_IORESP_READY;
    1.10          hvm_io_assist();
    1.11 @@ -87,8 +88,6 @@ static int hvmemul_do_io(
    1.12          hvm_send_assist_req(curr);
    1.13          rc = (val != NULL) ? X86EMUL_RETRY : X86EMUL_OKAY;
    1.14          break;
    1.15 -    case X86EMUL_RETRY:
    1.16 -        break;
    1.17      default:
    1.18          BUG();
    1.19      }