summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Gingell <gingell@google.com>2015-11-16 23:26:07 (GMT)
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-18 11:25:39 (GMT)
commit62a193edaf90df38356e292f47a17f28e0cee3f1 (patch)
treea71f96ba5e57d5b93eef9eddca84e9207aed4315 /include
parent934bf65354227981df15bbc755d33f4ba3443ff2 (diff)
downloadlinux-62a193edaf90df38356e292f47a17f28e0cee3f1.tar.xz
KVM: x86: request interrupt window when IRQ chip is split
Before this patch, we incorrectly enter the guest without requesting an interrupt window if the IRQ chip is split between user space and the kernel. Because lapic_in_kernel no longer implies the PIC is in the kernel, this patch tests pic_in_kernel to determining whether an interrupt window should be requested when entering the guest. If the APIC is in the kernel and we request an interrupt window the guest will return immediately. If the APIC is masked the guest will not not make forward progress and unmask it, leading to a loop when KVM reenters and requests again. This patch adds a check to ensure the APIC is ready to accept an interrupt before requesting a window. Reviewed-by: Steve Rutherford <srutherford@google.com> Signed-off-by: Matt Gingell <gingell@google.com> [Use the other newly introduced functions. - Paolo] Fixes: 1c1a9ce973a7863dd46767226bce2a5f12d48bc6 Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions