]>
x86/svm: Revert 1->true conversion in svm_asid_handle_vmrun()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 23 Jun 2025 10:41:39 +0000 (11:41 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 25 Jun 2025 16:54:41 +0000 (17:54 +0100)
This is literally ASID 1 (of 2^16), not a boolean.

Fixes: 2f09f797ba43 ("x86/svm: Drop the suffix _guest from vmcb bit")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/svm/asid.c

index 7977a8e86b537b0756083f1bb74f4fc15219a424..d5f70f8848be332781f787dcf734fa531395b8b2 100644 (file)
@@ -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;