]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: vmx: check apicv is active before using VT-d posted interrupt
authorYang Zhang <yang.zhang.wz@gmail.com>
Mon, 13 Jun 2016 01:56:56 +0000 (09:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 07:38:24 +0000 (09:38 +0200)
commita0052191624e9bf8a8f9dc41b92ab5f252566c3c
tree04ae5479a427b120592c6d9381d7f0f2c3b8e70f
parentcaf1ff26e1aa178133df68ac3d40815fed2187d9
kvm: vmx: check apicv is active before using VT-d posted interrupt

VT-d posted interrupt is relying on the CPU side's posted interrupt.
Need to check whether VCPU's APICv is active before enabing VT-d
posted interrupt.

Fixes: d62caabb41f33d96333f9ef15e09cd26e1c12760
Cc: stable@vger.kernel.org
Signed-off-by: Yang Zhang <yang.zhang.wz@gmail.com>
Signed-off-by: Shengge Ding <shengge.dsg@alibaba-inc.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c