]> err.no Git - linux-2.6/commit
KVM: disable writeback for 0x0f 0x01 instructions.
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 25 Jul 2007 08:19:54 +0000 (10:19 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 25 Jul 2007 11:31:27 +0000 (14:31 +0300)
commitd37c85571904a622cbabc7a2e04b8c919de75ac0
tree460694be89be0bfa0049a23c842e0cb3edcf6eca
parent4c981b43d7ec18818754bf85b829865abd0ce340
KVM: disable writeback for 0x0f 0x01 instructions.

0x0f 0x01 instructions (ie lgdt, lidt, smsw, lmsw and invlpg) does
not use writeback. This patch set no_wb=1 when emulating those
instructions.

This fixes a regression booting the FreeBSD kernel on AMD.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c