summaryrefslogtreecommitdiff
path: root/arch/frv
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-10-14 13:25:52 (GMT)
committerPaolo Bonzini <pbonzini@redhat.com>2015-10-14 14:39:52 (GMT)
commitb10d92a54dac25a6152f1aa1ffc95c12908035ce (patch)
treea3b91faba082c51fcd49319ef355e3783494b832 /arch/frv
parent25188b9986cf6b0cadcf1bc1d1693a2e9c50ed47 (diff)
downloadlinux-b10d92a54dac25a6152f1aa1ffc95c12908035ce.tar.xz
KVM: x86: fix RSM into 64-bit protected mode
In order to get into 64-bit protected mode, you need to enable paging while EFER.LMA=1. For this to work, CS.L must be 0. Currently, we load the segments before CR0 and CR4, which means that if RSM returns into 64-bit protected mode CS.L is already 1 and everything breaks. Luckily, CS.L=0 is always the case when executing RSM, because it is forbidden to execute RSM from 64-bit protected mode. Hence it is enough to load CR0 and CR4 first, and only then the segments. Fixes: 660a5d517aaab9187f93854425c4c63f4a09195c Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/frv')
0 files changed, 0 insertions, 0 deletions