aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/crypto/twofish-x86_64-asm_64.S
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2009-10-24 02:49:59 -0200
committerAvi Kivity <avi@redhat.com>2009-12-03 09:32:21 +0200
commit18fa000ae453767b59ab97477925895a3f0c46ea (patch)
tree47758dbcc1ac7294277cfd20457d7a39515eb1ba /arch/x86/crypto/twofish-x86_64-asm_64.S
parentfa40052ca04bdbbeb20b839cc8ffe9fa7beefbe9 (diff)
KVM: SVM: Reset cr0 properly on vcpu reset
svm_vcpu_reset() was not properly resetting the contents of the guest-visible cr0 register, causing the following issue: https://bugzilla.redhat.com/show_bug.cgi?id=525699 Without resetting cr0 properly, the vcpu was running the SIPI bootstrap routine with paging enabled, making the vcpu get a pagefault exception while trying to run it. Instead of setting vmcb->save.cr0 directly, the new code just resets kvm->arch.cr0 and calls kvm_set_cr0(). The bits that were set/cleared on vmcb->save.cr0 (PG, WP, !CD, !NW) will be set properly by svm_set_cr0(). kvm_set_cr0() is used instead of calling svm_set_cr0() directly to make sure kvm_mmu_reset_context() is called to reset the mmu to nonpaging mode. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/crypto/twofish-x86_64-asm_64.S')
0 files changed, 0 insertions, 0 deletions