Skip to content
Commit 0d42522b authored by Jinliang Zheng's avatar Jinliang Zheng Committed by Sean Christopherson
Browse files

KVM: x86: Fix poll command



According to the hardware manual, when the Poll command is issued, the
byte returned by the I/O read is 1 in Bit 7 when there is an interrupt,
and the highest priority binary code in Bits 2:0. The current pic
simulation code is not implemented strictly according to the above
expression.

Fix the implementation of pic_poll_read(), set Bit 7 when there is an
interrupt.

Signed-off-by: default avatarJinliang Zheng <alexjlzheng@tencent.com>
Link: https://lore.kernel.org/r/20230419021924.1342184-1-alexjlzheng@tencent.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent dee32197
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment