mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
7ea3a3e44f
commit
23cd1207e7
1 file changed
+1
-1
@@ -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)
|
||||
|
||||