Skip to contentSkip to conversation

x86/svm: Revert 1->true conversion in svm_asid_handle_vmrun()

PATCH In review Andrew Cooper 2 participants 2 messages Jun 23, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/svm: Revert 1->true conversion in svm_asid_handle_vmrun()

This is literally ASID 1, not a boolean configuration.

Fixes 2f09f797ba43 ("x86/svm: Drop the suffix _guest from vmcb bit")

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 xen/arch/x86/hvm/svm/asid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/hvm/svm/asid.c +1 -1
index 7977a8e86b53..d5f70f8848be 100644
@@ -37,7 +37,7 @@ void svm_asid_handle_vmrun(void)
     /* ASID 0 indicates that ASIDs are disabled. */
     if ( p_asid->asid == 0 )
     {
-        vmcb_set_asid(vmcb, true);
+        vmcb_set_asid(vmcb, 1);
         vmcb->tlb_control =
             cpu_has_svm_flushbyasid ? TLB_CTRL_FLUSH_ASID : TLB_CTRL_FLUSH_ALL;
         return;

base-commit: cc7394164633e75fb61d52565f75271e0b7f1236

Signature · 1 line
2.39.5