All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Glauber Costa <glommer@redhat.com>
Cc: Jan Kiszka <jan.kiszka@web.de>, kvm@vger.kernel.org, avi@redhat.com
Subject: Re: [PATCH 3/9] change order of kvm_init call.
Date: Mon, 27 Jul 2009 12:49:06 -0500	[thread overview]
Message-ID: <4A6DE892.7050801@us.ibm.com> (raw)
In-Reply-To: <20090727173851.GC4776@poweredge.glommer>

Glauber Costa wrote:
> On Sun, Jul 26, 2009 at 08:59:44PM +0200, Jan Kiszka wrote:
>   
>> Glauber Costa wrote:
>>     
>>> The goal is to get rid of the call to kvm_init. But those things
>>> are subtle, and often break. So do it in a separate patch, to help
>>> finding potential issues in future bisections.
>>>       
>> Found such an issued: This patch triggers a segfault if no kvm modules
>> are loaded and you start qemu without -no-kvm. Please have a look.
>>
>> Jan
>>     
>
> ok, the culprit seems to be a 
>
>     if (kvm_enabled())
>         return;
>
> in the beginning of code_gen_alloc.
>
> It is 7f3d0cbe, by Avi, and according to changelog, suggested by anthony.
> I however, fail to realise the purpose of this optimization. For one thing,
> it totally dictates that kvm has absolutely to be enabled or disabled prior
> to this point. No mind changing later. Also, the real deal is to be able
> to compile out tcg entirely. The strategy of just disabling the code gen
> alloc is a minor nitpick that just papers over this.
>   

I agree with you in principle but I think reverting this papers over an 
issue.

Why are we touching code_gen_ptr when using KVM?  Can someone post the 
full back trace?

-- 
Regards,

Anthony Liguori


  reply	other threads:[~2009-07-27 17:49 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20 23:10 [PATCH 0/9] More integration with qemu.git Glauber Costa
2009-07-20 23:10 ` [PATCH 1/9] require --enable-kvm Glauber Costa
2009-07-20 23:10   ` [PATCH 2/9] embed kvm_create_context into kvm_init Glauber Costa
2009-07-20 23:10     ` [PATCH 3/9] change order of kvm_init call Glauber Costa
2009-07-20 23:10       ` [PATCH 4/9] use qemu version of kvm initialization Glauber Costa
2009-07-20 23:10         ` [PATCH 5/9] fold second pass " Glauber Costa
2009-07-20 23:10           ` [PATCH 6/9] remove kvm_in* functions Glauber Costa
2009-07-20 23:10             ` [PATCH 7/9] reuse env stop and stopped states Glauber Costa
2009-07-20 23:10               ` [PATCH 8/9] kvm_send_ipi Glauber Costa
2009-07-20 23:10                 ` [PATCH 9/9] remove kvm_abi variable Glauber Costa
2009-07-21  6:11             ` [PATCH 6/9] remove kvm_in* functions Gleb Natapov
2009-07-21 12:23               ` Glauber Costa
2009-07-21 12:18                 ` Gleb Natapov
2009-07-26 18:59       ` [PATCH 3/9] change order of kvm_init call Jan Kiszka
2009-07-27 17:38         ` Glauber Costa
2009-07-27 17:49           ` Anthony Liguori [this message]
2009-07-27 18:00             ` Glauber Costa
2009-07-27 18:10               ` Jan Kiszka
2009-07-27 18:20                 ` Glauber Costa
2009-07-27 18:28                   ` Daniel P. Berrange
2009-07-27 18:38                     ` Glauber Costa
2009-07-27 18:44                       ` Daniel P. Berrange
2009-07-27 19:55                         ` Glauber Costa
2009-07-27 18:34               ` Anthony Liguori

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=4A6DE892.7050801@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=glommer@redhat.com \
    --cc=jan.kiszka@web.de \
    --cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.