public inbox for kvm-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: kvm-ia64@vger.kernel.org
Subject: Re: switching from KVM guest to the host .... TLBs not present?
Date: Sat, 11 Apr 2009 16:04:29 +0000	[thread overview]
Message-ID: <49E0BF8D.4030401@redhat.com> (raw)
In-Reply-To: <49DE0856.8010700@sgi.com>

Zhang, Xiantao wrote:
> Jes Sorensen wrote:
>   
>> Zhang, Xiantao wrote:
>>     
>>> Yeah, that is very strange! I will check it tomorrow, and have to
>>> sleep now :-) Xiantao
>>>       
>> Hi Xiantao,
>>
>> I think I got it!
>>
>> We were calling local_irqs_disable() before calling down_read(), but
>> down_read() can sleep and so may return with local interrupts
>> re-enabled.....
>>
>> I have reordered things so now we should be safe.
>>
>> How does this patch look to you?
>>     
>
> Good catch! That should be root-cause. The patch seems good! Thanks!
> Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
>
> Avi, 
>    Please queue it as the fix of 2.6.30. Thanks!
>   

Applied, but I note that entering the guest with any lock held is 
problematic, as the guest may spend an arbitrary amount of time in guest 
mode.  Really, entering the guest is almost exactly like exiting to 
userspace.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


  parent reply	other threads:[~2009-04-11 16:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 14:38 switching from KVM guest to the host .... TLBs not present? Jes Sorensen
2009-04-10 12:47 ` Zhang, Xiantao
2009-04-11 16:04 ` Avi Kivity [this message]
2009-04-14 11:43 ` Jes Sorensen
2009-04-16  8:43 ` Jes Sorensen
2009-04-16  8:59 ` Avi Kivity
2009-04-16  9:41 ` Zhang, Xiantao
2009-04-16  9:55 ` Avi Kivity
2009-04-16  9:57 ` Zhang, Xiantao

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=49E0BF8D.4030401@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm-ia64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox