From: Jan Kiszka Date: Fri, 26 Sep 2008 07:30:49 +0000 (+0200) Subject: KVM: VMX: refactor/fix IRQ and NMI injectability determination X-Git-Tag: v2.6.29-rc1~539^2~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33f089ca5a61f7aead26e8e1866dfc961dd88a9e;p=pandora-kernel.git KVM: VMX: refactor/fix IRQ and NMI injectability determination There are currently two ways in VMX to check if an IRQ or NMI can be injected: - vmx_{nmi|irq}_enabled and - vcpu.arch.{nmi|interrupt}_window_open. Even worse, one test (at the end of vmx_vcpu_run) uses an inconsistent, likely incorrect logic. This patch consolidates and unifies the tests over {nmi|interrupt}_window_open as cache + vmx_update_window_states for updating the cache content. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- Reading git-diff-tree failed