KVM: SVM: Fix wrong intercept masks on 32 bit
commit004ff730b84c2f35a69871fe3bcde07232ed8610
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 28 Oct 2010 18:48:09 +0000 (28 16:48 -0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 18:47:33 +0000 (22 10:47 -0800)
tree79a003433491806cb3e3dd6e012fea56aa37615b
parentb0051893fd01e362c8065bc5d8b51961fdd15a5b
KVM: SVM: Fix wrong intercept masks on 32 bit

commit 061e2fd16863009c8005b4b5fdfb75c7215c0b99 upstream.

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>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/svm.c