VMX: no open-coding in vmx_get_cpl()

Neither X86_SEG_AR_DPL nor MASK_EXTR() should really be avoided here,
using literal number instead.

No difference in generated code (with gcc13 at least).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2024-04-25 16:38:01 +02:00
1 parent 7ea3a3e44f
commit 23cd1207e7
1 file changed
+1 -1
+1 -1
View File
@@ -1192,7 +1192,7 @@ unsigned int vmx_get_cpl(void)
__vmread(GUEST_SS_AR_BYTES, &attr);
return (attr >> 5) & 3;
return MASK_EXTR(attr, X86_SEG_AR_DPL);
}
static unsigned int cf_check _vmx_get_cpl(struct vcpu *v)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.