KVM: Align cr8 threshold when userspace changes cr8
authorMikhail Ershov <arcezed@gmail.com>
Mon, 3 Aug 2009 11:58:25 +0000 (14:58 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:17 +0000 (08:33 +0300)
commit5f0269f5d72f622514daec9af158c32e933800b6
tree347c953fbb6dddee3c5d0e5bc8cc16992b0fa7b0
parent7f582ab6d8116ce8db5792c219a278519deae6ad
KVM: Align cr8 threshold when userspace changes cr8

Commit f0a3602c20 ("KVM: Move interrupt injection logic to x86.c") does not
update the cr8 intercept if the lapic is disabled, so when userspace updates
cr8, the cr8 threshold control is not updated and we are left with illegal
control fields.

Fix by explicitly resetting the cr8 threshold.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c