]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/PV: don't half-open-code SIF_PM_MASK
authorJan Beulich <jbeulich@suse.com>
Tue, 25 Feb 2025 07:45:46 +0000 (08:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Feb 2025 07:45:46 +0000 (08:45 +0100)
Avoid using the same literal number (8) in two distinct places, by using
MASK_INTR() to avoid opencoding the literal 8.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/dom0_build.c

index f54d1da5c6f4e482c0bbd7e8f46c352b68ef028b..96e28c7b6a77f9e0f37c528bb0de31c242809e1a 100644 (file)
@@ -886,7 +886,7 @@ static int __init dom0_construct(struct boot_info *bi, struct domain *d)
         si->flags    = SIF_PRIVILEGED | SIF_INITDOMAIN;
     if ( !vinitrd_start && initrd_len )
         si->flags   |= SIF_MOD_START_PFN;
-    si->flags       |= (xen_processor_pmbits << 8) & SIF_PM_MASK;
+    si->flags       |= MASK_INSR(xen_processor_pmbits, SIF_PM_MASK);
     si->pt_base      = vpt_start;
     si->nr_pt_frames = nr_pt_pages;
     si->mfn_list     = vphysmap_start;