]> xenbits.xensource.com Git - xen.git/commitdiff
x86/PV: correct post-preemption progress recording in iommu_memory_setup()
authorJan Beulich <jbeulich@suse.com>
Wed, 27 Jul 2022 11:00:08 +0000 (13:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 Jul 2022 11:00:08 +0000 (13:00 +0200)
Coverity validly points out that the mfn_add() as used was dead code.

Coverity ID: 1507475
Fixes: c1e1564c8995 ("IOMMU/x86: perform PV Dom0 mappings in batches")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/dom0_build.c

index 323c49b0bd6157a42ec31017dbf52191b61d298b..a62f0fa2ef29e5443074305bca55def89b0525d1 100644 (file)
@@ -130,7 +130,7 @@ static void __init iommu_memory_setup(struct domain *d, const char *what,
                             IOMMUF_readable | IOMMUF_writable | IOMMUF_preempt,
                             flush_flags)) > 0 )
     {
-        mfn_add(mfn, rc);
+        mfn = mfn_add(mfn, rc);
         nr -= rc;
         /* See comment below. */
         for ( ; rc--; ++page )