Alexander Graf wrote:

On 30.10.2008, at 19:10, Avi Kivity wrote:
GIF somehow needs exposure to userspace too, right? Otherwise, when using -no-kernel-apic, userspace may try to inject an interrupt when the guest cannot handle it, right?

Hmm, right, it needs to close the interrupt window.

Yes, it's broken with -no-kernel-apic, since the userspace doesn't know the window is closed. Any good suggestions here? Joerg and me decided to just ignore the non-kernel-apic case, but if it's important we might want to sync the hflags with userspace, so we can export the GIF.

Maybe abusing kvm_run->if_flag? Current, userspace treats if_flag as a boolean. If you stored GIF and eflags.IF in there, I believe old userspaces would just work.

Regards,

Anthony Liguori

Alex


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to