Skip to contentSkip to conversation

KVM: SVM: fix comment

PATCH Liran Alon 1 participant 1 message Jan 9, 2018 KVM

lore
Share & tools
lore

Liran Alon

author Reviewed-by
#0 lore raw
Quoted 24 lines · ----- [email protected] wrote:

If always==true, then read/write bits are cleared from the MSR permission bitmap, thus passing-through the MSR. Fix the comment to match reality.

---
 arch/x86/kvm/svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/svm.c +1 -1
index 55dde3896898..31ace8d7774a 100644
@@ -236,7 +236,7 @@ struct amd_svm_iommu_ir {
 
 static const struct svm_direct_access_msrs {
 	u32 index;   /* Index of the MSR */
-	bool always; /* True if intercept is always on */
+	bool always; /* True if intercept is always off */
 } direct_access_msrs[] = {
 	{ .index = MSR_STAR,				.always = true  },
 	{ .index = MSR_IA32_SYSENTER_CS,		.always = true  },
Signature · 1 line
1.8.3.1