qemu-e2k/target-i386
Jan Kiszka 6fb6d24554 kvm: x86: Fix initial kvm_has_msr_star
KVM_GET_MSR_INDEX_LIST returns -E2BIG when the provided space is too
small for all MSRs. But this is precisely the error we trigger with the
initial request in order to obtain that size. Do not fail in that case.

This caused a subtle corruption of the guest state as MSR_STAR was not
properly saved/restored. The corruption became visible with latest kvm
optimizing the MSR updates.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-12-07 08:45:47 -06:00
..
cpu.h kvm: x86: Add support for VCPU event states 2009-12-03 15:25:57 -06:00
exec.h
helper_template.h
helper.c user: move CPU reset call to main.c for x86/PPC/Sparc 2009-11-07 10:37:06 +00:00
helper.h target-i386: implement lzcnt emulation 2009-10-23 17:10:36 +02:00
kvm.c kvm: x86: Fix initial kvm_has_msr_star 2009-12-07 08:45:47 -06:00
machine.c kvm: x86: Add support for VCPU event states 2009-12-03 15:25:57 -06:00
op_helper.c target-i386: implement lzcnt emulation 2009-10-23 17:10:36 +02:00
ops_sse_header.h target-i386: add SSE4a instruction support 2009-10-04 14:09:41 +02:00
ops_sse.h target-i386: add SSE4a instruction support 2009-10-04 14:09:41 +02:00
svm.h
TODO
translate.c target-i386: implement lzcnt emulation 2009-10-23 17:10:36 +02:00