]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: selftests: svm_int_ctl_test: fix intercept calculation
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Thu, 2 Dec 2021 23:10:13 +0000 (00:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Dec 2021 17:44:39 +0000 (12:44 -0500)
commitee3a4f666207b5a9d3d4bc7f45c9d59f2aeb3a0d
tree8e2e0bf3156f7265865df1434db32626ade98904
parent250552b925ce400c17d166422fde9bb215958481
KVM: x86: selftests: svm_int_ctl_test: fix intercept calculation

INTERCEPT_x are bit positions, but the code was using the raw value of
INTERCEPT_VINTR (4) instead of BIT(INTERCEPT_VINTR).
This resulted in masking of bit 2 - that is, SMI instead of VINTR.

Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <49b9571d25588870db5380b0be1a41df4bbaaf93.1638486479.git.maciej.szmigiero@oracle.com>
tools/testing/selftests/kvm/x86_64/svm_int_ctl_test.c