[Qemu-devel] [PATCH] kvm: x86: Fix initial kvm_has_msr_star

2009-12-06 Thread Jan Kiszka
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

Re: [Qemu-devel] [PATCH] kvm: x86: Fix initial kvm_has_msr_star

2009-12-06 Thread Avi Kivity
On 12/06/2009 04:51 PM, Jan Kiszka wrote: 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