ia64/xen-unstable

changeset 10918:01734f40860f

[HVM][SVM] Fix PIO breakage (fixed for VMX in previous changeset).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Aug 02 15:47:04 2006 +0100 (2006-08-02)
parents 7e7552112954
children aa1ab056bfbf
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Wed Aug 02 15:42:44 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Wed Aug 02 15:47:04 2006 +0100
     1.3 @@ -1484,7 +1484,7 @@ static void svm_io_instruction(struct vc
     1.4                      count = (addr & ~PAGE_MASK) / size;
     1.5              }
     1.6              else    
     1.7 -                vmcb->rip = vmcb->exitinfo2;
     1.8 +                regs->eip = vmcb->exitinfo2;
     1.9  
    1.10              send_pio_req(regs, port, count, size, addr, dir, 1);
    1.11          }
    1.12 @@ -1495,7 +1495,7 @@ static void svm_io_instruction(struct vc
    1.13           * On SVM, the RIP of the intruction following the IN/OUT is saved in
    1.14           * ExitInfo2
    1.15           */
    1.16 -        vmcb->rip = vmcb->exitinfo2;
    1.17 +        regs->eip = vmcb->exitinfo2;
    1.18  
    1.19          if (port == 0xe9 && dir == IOREQ_WRITE && size == 1) 
    1.20              hvm_print_line(v, regs->eax); /* guest debug output */