From: Avi Kivity <avi@qumranet.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: Anthony Liguori <anthony@codemonkey.ws>,
kvm@vger.kernel.org, Rik van Riel <riel@surriel.com>,
Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Subject: Re: Questions on the VMentry failure patch
Date: Mon, 14 Jul 2008 19:12:38 +0300 [thread overview]
Message-ID: <487B7AF6.2060607@qumranet.com> (raw)
In-Reply-To: <52d4a3890807140910v2157fc14p397dd78cc949dc5b@mail.gmail.com>
Mohammed Gamal wrote:
> On Thu, Jul 10, 2008 at 4:48 PM, Mohammed Gamal <m.gamal005@gmail.com> wrote:
>
>>>> It's true indeed, the patch did increase the likelihood of the
>>>> problem with me (although it occurs every few runs). I modified
>>>> invalid_guest_state() to call kvm_report_emulation_failure() in all
>>>> cases and I noticed that whenever the crash happens it happens here:
>>>>
>>>> rip 6e10 66 b8 20 00
>>>>
>>>> It's too late at night here, so I'll not lookup the opcode map now :)
>>>> . I'll further look into it later.
>>>>
>>>>
>>> Another thing, I tried -no-kvm-pit switch and it tremendously increase
>>> the likelihood of the crash to almost a 100%.
>>>
>>>
>> I updated to the latest kvm-userspace git tree, and now the failure is
>> happening at completely random instructions whether or not we are
>> using -no-kvm-pit.
>>
>>
>
> I didn't have the gfxboot source code in hand, but now that I've got
> it. It clears out that the failure always occurs in the
> switch_to_pm_20 routine. However, the failure doesn't happen at one
> particular instruction, but either doesn't happen at all or happens at
> any instruction between addresses 6e10 and 6e27.
>
> I'm suspecting it might be some kind of a race condition, although I
> don't see where in the code - kernel side to specific - that this race
> exactly might occur. Maybe the locking changes in the userspace side
> helped some underlying issue to come up to the surface just like what
> happened with FreeDOS. I'll look further into it, any
> pointers/help/suggestions are appreciated.
>
I suspected an interrupt, which fits the scenario you describe.
Although Anthony tested this and found out interrupts were not involved,
IIRC.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2008-07-14 16:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-07 14:07 Questions on the VMentry failure patch Mohammed Gamal
2008-07-07 14:24 ` Avi Kivity
2008-07-07 14:44 ` Mohammed Gamal
2008-07-07 14:52 ` Avi Kivity
2008-07-07 15:26 ` Anthony Liguori
2008-07-07 15:29 ` Anthony Liguori
2008-07-08 0:52 ` Mohammed Gamal
2008-07-09 17:56 ` Mohammed Gamal
2008-07-10 13:48 ` Mohammed Gamal
2008-07-14 16:10 ` Mohammed Gamal
2008-07-14 16:12 ` Avi Kivity [this message]
2008-07-14 16:15 ` Anthony Liguori
2008-07-14 16:24 ` Avi Kivity
2008-07-14 17:09 ` Mohammed Gamal
2008-07-18 16:04 ` Mohammed Gamal
2008-07-19 7:41 ` Avi Kivity
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=487B7AF6.2060607@qumranet.com \
--to=avi@qumranet.com \
--cc=anthony@codemonkey.ws \
--cc=guillaume.thouvenin@ext.bull.net \
--cc=kvm@vger.kernel.org \
--cc=m.gamal005@gmail.com \
--cc=riel@surriel.com \
/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