summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/kvm.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2017-08-25 19:52:12 +1000
committerPaul Mackerras <paulus@ozlabs.org>2017-08-31 12:36:44 +1000
commita4faf2e77a565432278430deaaba2f3295b6a2df (patch)
treef96031bb8a27ddab4a71daf97d25975437812c22 /include/uapi/linux/kvm.h
parent0bfa33c7f71e7e9de289582d9652110daa1ec8a1 (diff)
downloadop-kernel-dev-a4faf2e77a565432278430deaaba2f3295b6a2df.zip
op-kernel-dev-a4faf2e77a565432278430deaaba2f3295b6a2df.tar.gz
KVM: PPC: Book3S HV: Fix case where HDEC is treated as 32-bit on POWER9
Commit 2f2724630f7a ("KVM: PPC: Book3S HV: Cope with host using large decrementer mode", 2017-05-22) added code to treat the hypervisor decrementer (HDEC) as a 64-bit value on POWER9 rather than 32-bit. Unfortunately, that commit missed one place where HDEC is treated as a 32-bit value. This fixes it. This bug should not have any user-visible consequences that I can think of, beyond an occasional unnecessary exit to the host kernel. If the hypervisor decrementer has gone negative, then the bottom 32 bits will be negative for about 4 seconds after that, so as long as we get out of the guest within those 4 seconds we won't conclude that the HDEC interrupt is spurious. Reported-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Fixes: 2f2724630f7a ("KVM: PPC: Book3S HV: Cope with host using large decrementer mode") Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'include/uapi/linux/kvm.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud