]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/PV: fix unintended dependency of m2p-strict mode on migration-v2
authorJan Beulich <jbeulich@suse.com>
Wed, 3 Feb 2016 13:12:00 +0000 (14:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Feb 2016 13:12:00 +0000 (14:12 +0100)
commitbe05b5385fb261c1fa1cbb6b4bdc12a6e8676c4b
tree6a62366d07b4bc2c5fede6dd799101754fc9b00b
parent55d8424e4e65c549eb7be4bff6d3c4c77f54afef
x86/PV: fix unintended dependency of m2p-strict mode on migration-v2

This went unnoticed until a backport of this to an older Xen got used,
causing migration of guests enabling this VM assist to fail, because
page table pinning there precedes vCPU context loading, and hence L4
tables get initialized for the wrong mode. Fix this by post-processing
L4 tables when setting the intended VM assist flags for the guest.

Note that this leaves in place a dependency on vCPU 0 getting its guest
context restored first, but afaict the logic here is not the only thing
depending on that.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/mm.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/mm.h