projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1a5e6
)
KVM: x86: fix warning on 32-bit compilation
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 10 Nov 2014 12:53:25 +0000
(13:53 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 10 Nov 2014 12:53:25 +0000
(13:53 +0100)
PCIDs are only supported in 64-bit mode. No need to clear bit 63
of CR3 unless the host is 64-bit.
Reported by Fengguang Wu's autobuilder.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index f85da5cb6aa6465f942468d61fc136d1d0626459..aae5969370d1ee2ed7b7da2ce0053d67df019cda 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-750,7
+750,9
@@
EXPORT_SYMBOL_GPL(kvm_set_cr4);
int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)
{
+#ifdef CONFIG_X86_64
cr3 &= ~CR3_PCID_INVD;
+#endif
if (cr3 == kvm_read_cr3(vcpu) && !pdptrs_changed(vcpu)) {
kvm_mmu_sync_roots(vcpu);