projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edf5b22
)
x86/mem_sharing: Copy CPUID and MSR configuration during vm forking
author
Tamas K Lengyel
<tamas.lengyel@intel.com>
Tue, 5 Jan 2021 21:58:23 +0000
(13:58 -0800)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Tue, 5 Jan 2021 23:00:27 +0000
(23:00 +0000)
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
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/mem_sharing.c
b/xen/arch/x86/mm/mem_sharing.c
index c428fd16cef08e7b41fa207b6e83ce3761f911f0..fc7b2a410238455cf59a5d0b2f37e070c9fc2aec 100644
(file)
--- a/
xen/arch/x86/mm/mem_sharing.c
+++ b/
xen/arch/x86/mm/mem_sharing.c
@@
-1764,6
+1764,8
@@
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->parent = d;
}