From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Date: Sat, 11 Apr 2009 16:04:29 +0000 Subject: Re: switching from KVM guest to the host .... TLBs not present? Message-Id: <49E0BF8D.4030401@redhat.com> List-Id: References: <49DE0856.8010700@sgi.com> In-Reply-To: <49DE0856.8010700@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ia64@vger.kernel.org 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 > > 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.