Re: qemu-kvm

Avi Kivity
2006-11-14T09:41:22Z

Simon Kagstrom wrote:
> At Tue, 14 Nov 2006 10:50:23 +0200,
> Avi Kivity wrote:
>
>> Baruch Even wrote:
>>
>>> Can the Qemu built with KVM support run without KVM? Froma quick perusal
>>> of the kvm.patch it seems that there are places where USE_KVM implies a
>>> qemu-panic without any runtime conditionals.
>>>
>> qemu-kvm.patch is an older release. With the new release, it should be
>> possible to run without kvm. Let me know (or better, send patches) if
>> there are any such places in kvm-2.
>>
>
> One thing I've thought about (and quickly hacked on) is to "detect"
> the presense of KVM and use it if it is there and use "plain" qemu if
> it is not. The question is if this is behavior that the rest of you
> would like, I'll send a patch if so.
>

I think it is indeed desirable. Please send the patch.

Of course, -no-kvm should not use kvm even if it there.

> One thing which I've changed is to return errors from libkvm instead
> of directly exiting. Personally I think this behavior is preferred
> since it does not force decisions upon the program using the library.
>

The exit()s are a hack, of course.

--
error compiling committee.c: too many arguments to function