Re: Exception handling between QEMU and KVM

2009-07-01 Thread Alexander Graf
On 01.07.2009, at 05:28, Christoffer Dall wrote: Hi all. We are still working on our ARM port of KVM and we are managing to let the guest decompress the kernel image and run from relocated address and we can support enabling MMU before this. Howver, to debug relocated micro-hypervisor for

Re: Exception handling between QEMU and KVM

2009-07-01 Thread Avi Kivity
On 07/01/2009 06:28 AM, Christoffer Dall wrote: Hi all. We are still working on our ARM port of KVM and we are managing to let the guest decompress the kernel image and run from relocated address and we can support enabling MMU before this. Howver, to debug relocated micro-hypervisor for

Re: Exception handling between QEMU and KVM

2009-07-01 Thread Christoffer Dall
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? I have tried setting EXIT_REASON to both KVM_EXIT_EXCEPTION and KVM_EXIT_SHUTDOWN, but QEMU stays

Re: Exception handling between QEMU and KVM

2009-07-01 Thread Avi Kivity
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

Re: Exception handling between QEMU and KVM

2009-07-01 Thread Alexander Graf
On 01.07.2009, at 05:28, Christoffer Dall wrote: Hi all. We are still working on our ARM port of KVM and we are managing to let the guest decompress the kernel image and run from relocated address and we can support enabling MMU before this. Howver, to debug relocated micro-hypervisor for

Re: Exception handling between QEMU and KVM

2009-07-01 Thread Christoffer Dall
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? I have tried setting EXIT_REASON to both KVM_EXIT_EXCEPTION and KVM_EXIT_SHUTDOWN, but QEMU stays

Exception handling between QEMU and KVM

2009-06-30 Thread Christoffer Dall
Hi all. We are still working on our ARM port of KVM and we are managing to let the guest decompress the kernel image and run from relocated address and we can support enabling MMU before this. Howver, to debug relocated micro-hypervisor for exception handling, we are trying to implement some