On 07/01/2009 04:59 PM, Christoffer Dall wrote:
OK, my question is this: If I want to tell QEMU to quit from within the KVM_RUN ioctl in a way that causes QEMU to exit gracefully (e.g. free any allocated memory etc.) what is the way to do that?
Have KVM_RUN return -ESOMETHING, qemu should abort when it sees that.
I have tried setting EXIT_REASON to both KVM_EXIT_EXCEPTION and KVM_EXIT_SHUTDOWN, but QEMU stays in the execution loop and re-executes the machine over and over. Is this some logic that has to be done architecture specifically in kvm_arch_post_run(...) or ?
I don't remember exactly. It also depends on what version of the source you're looking at.
And yes, any exceptions should be handled in KVM, but in the case of an unrecoverable error I'm left with reporting this to the user and end the QEMU process, right?
Yes. Current sources pause the vm so you can inspect guest state via the monitor.
-- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html