summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/vmenter.S
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-02 09:42:19 -0600
committerLouis Burda <quent.burda@gmail.com>2023-02-02 09:42:19 -0600
commita1bad019795eb357099482d9ebeb7ee4eaef8655 (patch)
tree004e885743d4da07356dfbf61ccf69465d62fa31 /arch/x86/kvm/svm/vmenter.S
parenta1ef9b051d565d743f383c1a167d59ee675f5da6 (diff)
downloadcachepc-linux-a1bad019795eb357099482d9ebeb7ee4eaef8655.tar.gz
cachepc-linux-a1bad019795eb357099482d9ebeb7ee4eaef8655.zip
Handle instruction loads on page boundaries more cleanly
Diffstat (limited to 'arch/x86/kvm/svm/vmenter.S')
-rw-r--r--arch/x86/kvm/svm/vmenter.S6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kvm/svm/vmenter.S b/arch/x86/kvm/svm/vmenter.S
index df79ac1b9804..63d258348389 100644
--- a/arch/x86/kvm/svm/vmenter.S
+++ b/arch/x86/kvm/svm/vmenter.S
@@ -78,11 +78,7 @@
cmp $0, %al
je skip_apic_\name
- mov $0, %rdx
- mov cpc_apic_timer, %eax
- mov $CPC_APIC_TIMER_SOFTDIV, %rbx
- divq %rbx
- mov %rax, %rdi
+ mov cpc_apic_timer, %edi
call cpc_apic_oneshot_run
skip_apic_\name: