tools/libxc: Restore CPUID/MSR data found in the migration stream
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Dec 2019 19:38:26 +0000 (19:38 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 16:33:03 +0000 (17:33 +0100)
commit1a6be420e04441bbf5f03968ab43a7908167fcb5
treef92e6fd71b8a0ea8dd2bec155a64833f7e869c04
parent63350b3fda28a6ee9073127aa368144b0eaa3e45
tools/libxc: Restore CPUID/MSR data found in the migration stream

With all other pieces in place, it is now safe to restore the CPUID and MSR
data in the migration stream, rather than discarding them and using the higher
level toolstacks compatibility logic.

While this is a small patch, it has large implications for migrated/resumed
domains.  Most obviously, the CPU family/model/stepping data,
cache/tlb/etc. will no longer change behind the guests back.

Another change is the interpretation of the Xend cpuid strings.  The 'k'
option is not a sensible thing to have ever supported, and 's' is how how the
stream will end up behaving.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_cpuid_x86.c
tools/libxc/xc_sr_common_x86.c