]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
x86/mem_sharing: fix wrong field name used in 2c5119d
authorTamas K Lengyel <tamas.lengyel@intel.com>
Wed, 13 Jan 2021 02:28:45 +0000 (18:28 -0800)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 13 Jan 2021 19:30:50 +0000 (19:30 +0000)
The arch_domain struct has "msr", not "msrs".

Spotted by a TravisCI Randconfig build.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Tamas K Lengyel <tamas.lengyel@intel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/mem_sharing.c

index a98a1709c2d1f4ee18605c9a3836a0a81b013cb5..c8a6d11b90c4429fb6f8a4836bc7cd96d19e0684 100644 (file)
@@ -1781,7 +1781,7 @@ static int fork(struct domain *cd, struct domain *d)
         domain_pause(d);
         cd->max_pages = d->max_pages;
         *cd->arch.cpuid = *d->arch.cpuid;
-        *cd->arch.msrs = *d->arch.msrs;
+        *cd->arch.msr = *d->arch.msr;
         cd->parent = d;
     }