kernel-fxtec-pro1x/drivers/kvm
Rusty Russell c820c2aa27 KVM: load_pdptrs() cleanups
load_pdptrs can be handed an invalid cr3, and it should not oops.
This can happen because we injected #gp in set_cr3() after we set
vcpu->cr3 to the invalid value, or from kvm_vcpu_ioctl_set_sregs(), or
memory configuration changes after the guest did set_cr3().

We should also copy the pdpte array once, before checking and
assigning, otherwise an SMP guest can potentially alter the values
between the check and the set.

Finally one nitpick: ret = 1 should be done as late as possible: this
allows GCC to check for unset "ret" should the function change in
future.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2007-10-13 10:18:20 +02:00
..
Kconfig KVM: Fix virtualization menu help text 2007-09-22 12:55:18 -07:00
kvm.h KVM: Move gfn_to_page out of kmap/unmap pairs 2007-10-13 10:18:19 +02:00
kvm_main.c KVM: load_pdptrs() cleanups 2007-10-13 10:18:20 +02:00
kvm_svm.h KVM: SVM: Only save/restore MSRs when needed 2007-05-03 10:52:32 +03:00
Makefile [PATCH] kvm: userspace interface 2006-12-10 09:57:22 -08:00
mmu.c KVM: Move gfn_to_page out of kmap/unmap pairs 2007-10-13 10:18:19 +02:00
paging_tmpl.h KVM: Move gfn_to_page out of kmap/unmap pairs 2007-10-13 10:18:19 +02:00
segment_descriptor.h [PATCH] kvm: userspace interface 2006-12-10 09:57:22 -08:00
svm.c KVM: Set exit_reason to KVM_EXIT_MMIO where run->mmio is initialized. 2007-10-13 10:18:19 +02:00
svm.h KVM: SVM: Reliably detect if SVM was disabled by BIOS 2007-07-16 12:05:49 +03:00
vmx.c KVM: VMX: Import some constants of vmcs from IA32 SDM 2007-10-13 10:18:19 +02:00
vmx.h KVM: VMX: Import some constants of vmcs from IA32 SDM 2007-10-13 10:18:19 +02:00
x86_emulate.c KVM: Remove dead code in the cmpxchg instruction emulation 2007-10-13 10:18:19 +02:00
x86_emulate.h KVM: Trivial: Make decode_register() static 2007-10-13 10:18:18 +02:00