Re: u <-> k cross migration and IDT_Vectoring save/restore

Avi Kivity
2007-08-05T15:00:39Z

Dong, Eddie wrote:
> Avi Kivity wrote:
>
>> Dong, Eddie wrote:
>>
>>> Avi:
>>> After one more thinking, I found something others.
>>> kvm_vcpu_ioctl_get_sregs/kvm_vcpu_ioctl_set_sregs doesn't save
>>> current injecting exception while Xen does. Which includes
>>> VM_ENTRY_INTR_INFO & VM_ENTRY_EXCEPTION_ERROR_CODE. Any special
>>> reason?
>>>
>>>
>> No special reason, never saw the need for it.
>>
>> Do you see exits with this set? It's probably better to loop again
>> instead of saving it, because this is an implementation detail rather
>> than real state (e.g. state that qemu has as well).
>>
>>
> In SMP case, we don't know what status a VCPU is in. They are actually
> same with IDT_Vectoring.
> Current master only push back external irqs, actually an exception may
> also cause injection failure.
> It is difficult to wait for all VCPUs to get those info handed fully. UP
> may be OK.
>
>

I think that no sane OS gets exceptions on interrupts?