ia64/xen-unstable

changeset 11916:899836e04387

[HVM][SVM] Avoid double-execution of NMI handler.

Remove the do_nmi() call from the vmexit logic, as the NMI is held
pending and will be handled in the context of the host when the STGI
instruction is executed.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
author kfraser@localhost.localdomain
date Fri Oct 20 10:11:45 2006 +0100 (2006-10-20)
parents c436ab500c99
children e256d8ccd6ac
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Fri Oct 20 10:10:36 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Fri Oct 20 10:11:45 2006 +0100
     1.3 @@ -54,7 +54,6 @@
     1.4  
     1.5  /* External functions. We should move these to some suitable header file(s) */
     1.6  
     1.7 -extern void do_nmi(struct cpu_user_regs *, unsigned long);
     1.8  extern int inst_copy_from_guest(unsigned char *buf, unsigned long guest_eip,
     1.9                                  int inst_len);
    1.10  extern uint32_t vlapic_update_ppr(struct vlapic *vlapic);
    1.11 @@ -2739,7 +2738,6 @@ asmlinkage void svm_vmexit_handler(struc
    1.12      break;
    1.13  
    1.14      case VMEXIT_NMI:
    1.15 -        do_nmi(regs, 0);
    1.16          break;
    1.17  
    1.18      case VMEXIT_SMI: