summaryrefslogtreecommitdiff
path: root/fs/libfs.c
diff options
context:
space:
mode:
authorBabu Moger <babu.moger@amd.com>2021-03-02 12:51:31 -0600
committerPaolo Bonzini <pbonzini@redhat.com>2021-03-02 14:39:11 -0500
commit9e46f6c6c959d9bb45445c2e8f04a75324a0dfd0 (patch)
tree1f620e668cf3b0fbdc0d93e67777a8813ac94b44 /fs/libfs.c
parent30b5c851af7991ad08abe90c1e7c31615fa98a1a (diff)
KVM: SVM: Clear the CR4 register on reset
This problem was reported on a SVM guest while executing kexec. Kexec fails to load the new kernel when the PCID feature is enabled. When kexec starts loading the new kernel, it starts the process by resetting the vCPU's and then bringing each vCPU online one by one. The vCPU reset is supposed to reset all the register states before the vCPUs are brought online. However, the CR4 register is not reset during this process. If this register is already setup during the last boot, all the flags can remain intact. The X86_CR4_PCIDE bit can only be enabled in long mode. So, it must be enabled much later in SMP initialization. Having the X86_CR4_PCIDE bit set during SMP boot can cause a boot failures. Fix the issue by resetting the CR4 register in init_vmcb(). Signed-off-by: Babu Moger <babu.moger@amd.com> Message-Id: <161471109108.30811.6392805173629704166.stgit@bmoger-ubuntu> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'fs/libfs.c')
0 files changed, 0 insertions, 0 deletions