diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2008-11-24 16:28:14 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-11-26 18:25:56 +0200 |
commit | e5f9dcd1417f4069b8d9891a76c758e4838a6e21 (patch) | |
tree | 302a1d785ec09f5acc1b642bf798de74257e2f23 /libkvm/libkvm.h | |
parent | b51b875e26a25a8381257a1b7055a0490a3b2031 (diff) |
kvm: qemu: Cleanup user space NMI injection
Cleanup redundant check for an open NMI window before injecting. This
will no longer be supported by the kernel, and it was broken by design
anyway.
This change still allows to run the user space against older kernel
modules.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'libkvm/libkvm.h')
-rw-r--r-- | libkvm/libkvm.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h index aae9f038..aaad4fb1 100644 --- a/libkvm/libkvm.h +++ b/libkvm/libkvm.h @@ -66,7 +66,7 @@ struct kvm_callbacks { int (*shutdown)(void *opaque, void *env); int (*io_window)(void *opaque); int (*try_push_interrupts)(void *opaque); - int (*try_push_nmi)(void *opaque); + void (*push_nmi)(void *opaque); void (*post_kvm_run)(void *opaque, void *env); int (*pre_kvm_run)(void *opaque, void *env); int (*tpr_access)(void *opaque, int vcpu, uint64_t rip, int is_write); @@ -217,17 +217,6 @@ uint64_t kvm_get_apic_base(kvm_context_t kvm, int vcpu); int kvm_is_ready_for_interrupt_injection(kvm_context_t kvm, int vcpu); /*! - * \brief Check if a vcpu is ready for NMI injection - * - * This checks if vcpu is not already running in NMI context. - * - * \param kvm Pointer to the current kvm_context - * \param vcpu Which virtual CPU should get dumped - * \return boolean indicating NMI injection readiness - */ -int kvm_is_ready_for_nmi_injection(kvm_context_t kvm, int vcpu); - -/*! * \brief Read VCPU registers * * This gets the GP registers from the VCPU and outputs them |