KVM: SVM: Fix wrong intercept masks on 32 bit
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 5 May 2010 14:04:43 +0000 (16:04 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 13 May 2010 04:24:08 +0000 (01:24 -0300)
commit061e2fd16863009c8005b4b5fdfb75c7215c0b99
tree54173bdbc5e490bbba23b30286b2c88d00131407
parent46a47b1ed118cda1a08b7f6077b837a00fbc112b
KVM: SVM: Fix wrong intercept masks on 32 bit

This patch makes KVM on 32 bit SVM working again by
correcting the masks used for iret interception. With the
wrong masks the upper 32 bits of the intercepts are masked
out which leaves vmrun unintercepted. This is not legal on
svm and the vmrun fails.
Bug was introduced by commits 95ba827313 and 3cfc3092.

Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Gleb Natapov <gleb@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c