diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-06 11:34:38 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-06 11:34:38 +0100 |
commit | 78669ef30b734cd2c37d3093c78590879be30797 (patch) | |
tree | d24d4600c97eb0dd5821f62bb5c33cb9f43c197d /xen/arch/x86/hvm/irq.c | |
parent | a65041a5327954ee75109bd112f062f8ba273bc1 (diff) | |
download | xen-78669ef30b734cd2c37d3093c78590879be30797.tar.gz xen-78669ef30b734cd2c37d3093c78590879be30797.tar.bz2 xen-78669ef30b734cd2c37d3093c78590879be30797.zip |
hvm: Ignore NMI deliveries for now, until hardware taskswitch is emulated.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/irq.c')
-rw-r--r-- | xen/arch/x86/hvm/irq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/irq.c b/xen/arch/x86/hvm/irq.c index b41295a273..a83f6cae67 100644 --- a/xen/arch/x86/hvm/irq.c +++ b/xen/arch/x86/hvm/irq.c @@ -306,7 +306,14 @@ int hvm_vcpu_ack_pending_irq(struct vcpu *v, enum hvm_intack type, int *vector) switch ( type ) { case hvm_intack_nmi: +#if 0 return test_and_clear_bool(v->nmi_pending); +#else + if ( test_and_clear_bool(v->nmi_pending) ) + gdprintk(XENLOG_WARNING, "Dropping NMI delivery to %d:%d\n", + v->domain->domain_id, v->vcpu_id); + break; +#endif case hvm_intack_lapic: return ((*vector = cpu_get_apic_interrupt(v)) != -1); case hvm_intack_pic: |