android_kernel_samsung_msm8976/drivers/kvm
Avi Kivity c7e75a3db4 KVM: x86 emulator: don't depend on cr2 for mov abs emulation
The 'mov abs' instruction family (opcodes 0xa0 - 0xa3) still depends on cr2
provided by the page fault handler.  This is wrong for several reasons:

- if an instruction accessed misaligned data that crosses a page boundary,
  and if the fault happened on the second page, cr2 will point at the
  second page, not the data itself.

- if we're emulating in real mode, or due to a FlexPriority exit, there
  is no cr2 generated.

So, this change adds decoding for this instruction form and drops reliance
on cr2.

Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-01-30 17:52:57 +02:00
..
i8259.c KVM: Export PIC reset for kernel device reset 2008-01-30 17:52:55 +02:00
ioapic.c KVM: Split IOAPIC reset function and export for kernel RESET 2008-01-30 17:52:55 +02:00
irq.c KVM: Portability: Split kvm_vcpu into arch dependent and independent parts (part 1) 2008-01-30 17:52:54 +02:00
irq.h KVM: Split IOAPIC reset function and export for kernel RESET 2008-01-30 17:52:55 +02:00
Kconfig Consolidate host virtualization support under Virtualization menu 2007-10-23 15:49:47 +10:00
kvm.h KVM: Add ioctl to tss address from userspace, 2008-01-30 17:52:56 +02:00
kvm_main.c KVM: Add ioctl to tss address from userspace, 2008-01-30 17:52:56 +02:00
kvm_svm.h KVM: Dynamically allocate vcpus 2007-10-13 10:18:20 +02:00
lapic.c KVM: Portability: Split kvm_vcpu into arch dependent and independent parts (part 1) 2008-01-30 17:52:54 +02:00
Makefile KVM: Move x86 msr handling to new files x86.[ch] 2008-01-30 17:52:51 +02:00
mmu.c KVM: Portability: Split kvm_vcpu into arch dependent and independent parts (part 1) 2008-01-30 17:52:54 +02:00
paging_tmpl.h KVM: MMU: Partial swapping of guest memory 2008-01-30 17:52:54 +02:00
segment_descriptor.h [PATCH] kvm: userspace interface 2006-12-10 09:57:22 -08:00
svm.c KVM: SVM: Let gcc to choose which registers to save (i386) 2008-01-30 17:52:57 +02:00
svm.h KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
vmx.c KVM: VMX: Let gcc to choose which registers to save (i386) 2008-01-30 17:52:56 +02:00
vmx.h KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
x86.c KVM: Portability: split kvm_vcpu_ioctl 2008-01-30 17:52:52 +02:00
x86.h KVM: Portability: Split kvm_vcpu into arch dependent and independent parts (part 1) 2008-01-30 17:52:54 +02:00
x86_emulate.c KVM: x86 emulator: don't depend on cr2 for mov abs emulation 2008-01-30 17:52:57 +02:00
x86_emulate.h KVM: x86 emulator: Remove no_wb, use dst.type = OP_NONE instead 2008-01-30 17:52:49 +02:00