public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Simon Kagstrom <simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
Cc: KVM <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	Baruch Even <baruch-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>
Subject: Re: [PATCH] 2/2: Fall back to plain Qemu if KVM is not present, report errors from libkvm
Date: Tue, 14 Nov 2006 15:55:58 +0200	[thread overview]
Message-ID: <4559CAEE.30203@qumranet.com> (raw)
In-Reply-To: <87veli87vf.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>

Simon Kagstrom wrote:
>>>   
>>>       
>> Doesn't this bit will initialize kvm even if the user specified -no-kvm?
>>     
>
> Yes. Maybe I misunderstood you, but this is how I understood your
> comments.
>
>   

I intended something like


    start with kvm_allowed = 1
    if (-no-kvm) kvm_allowed = 0
    if (kvm_allowed && !kvm_init() < 0) kvm_allowed = 0


> Sorry for spamming the list with patches. I'll send yet another
> one. 

Keep on patching :)

> This will check and possibly disable KVM after the command-line
> options have been parsed. If -no-kvm has been given, nothing will
> happen.
>
>
>  
> +#if USE_KVM
> +    if (kvm_allowed) {
> +	if (kvm_qemu_init() < 0) {
> +	    fprintf(stderr, "Could not initialize KVM, will disable KVM support\n");
> +	    kvm_allowed = 0;
> +	}
> +    }
> +#endif
> +
>   

Yes, exactly what I meant.


I'll apply this.  Thanks!

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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

      parent reply	other threads:[~2006-11-14 13:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-14  7:26 qemu-kvm Baruch Even
     [not found] ` <20061114072601.GD28027-xGn4Jn0woyz+OtfAA3OxFg@public.gmane.org>
2006-11-14  8:28   ` qemu-kvm Simon Kagstrom
2006-11-14  8:50   ` qemu-kvm Avi Kivity
     [not found]     ` <4559834F.80905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14  9:28       ` qemu-kvm Simon Kagstrom
     [not found]         ` <8764di9y30.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-14  9:35           ` qemu-kvm Baruch Even
     [not found]             ` <20061114093537.GH28027-xGn4Jn0woyz+OtfAA3OxFg@public.gmane.org>
2006-11-14 10:30               ` [PATCH] 1/2: Fall back to plain Qemu if KVM is not present, report errors from libkvm Simon Kagstrom
2006-11-14  9:41           ` qemu-kvm Avi Kivity
     [not found]             ` <45598F42.5090400-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14 10:36               ` [PATCH] 2/2: Fall back to plain Qemu if KVM is not present, report errors from libkvm Simon Kagstrom
     [not found]                 ` <871wo69uxb.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-14 11:44                   ` Avi Kivity
     [not found]                     ` <4559AC1F.9080304-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14 12:08                       ` Simon Kagstrom
     [not found]                         ` <87y7qe8c43.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-14 12:24                           ` Avi Kivity
     [not found]                             ` <4559B574.5000000-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14 13:04                               ` Simon Kagstrom
     [not found]                                 ` <87wt5y89ik.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-14 13:24                                   ` Avi Kivity
     [not found]                                     ` <4559C393.70001-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14 13:39                                       ` Simon Kagstrom
     [not found]                                         ` <87veli87vf.wl%simon.kagstrom-6Uc+yI3S9P8@public.gmane.org>
2006-11-14 13:55                                           ` Avi Kivity [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4559CAEE.30203@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=baruch-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=simon.kagstrom-6Uc+yI3S9P8@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox