From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: G 3 <programmingkidx@gmail.com>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] Bug report - Windows XP guest failure
Date: Mon, 11 May 2015 18:05:50 -0700 [thread overview]
Message-ID: <CAEgOgz65kPBBmZwA2cgNae68JsufRoUg_F-3ybuoXRHzY94VBQ@mail.gmail.com> (raw)
In-Reply-To: <554B3188.30308@msgid.tls.msk.ru>
On Thu, May 7, 2015 at 2:34 AM, Michael Tokarev <mjt@tls.msk.ru> wrote:
> 07.05.2015 09:47, Michael Tokarev wrote:
>> 07.05.2015 09:12, Michael Tokarev wrote:
>>> 07.05.2015 04:11, G 3 wrote:
>>>> Did you boot Windows XP to the desktop? I have tested Windows 95, Windows 2000, and Windows XP. All of them fail to boot to the desktop.
>>>
>>> Yes, booted to desktop and did some minimal work in there,
>>> installnig one update or two.
>>>
>>>> Command used:
>>>> ./i386-softmmu/qemu-system-i386 -boot c -hda "Windows XP Hard Drive.img"
>>>
>>> Aha. You run without kvm, in tcg mode. I don't usually do that,
>>> lemme try...
>>
>> Ok, I can reproduce this, winXP BSODs on boot in tcg mode.
>> Git bisect points to this:
>>
>> commit 23820dbfc79d1c9dce090b4c555994f2bb6a69b3
>> Author: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>> Date: Mon Mar 16 22:35:54 2015 -0700
>>
>> exec: Respect as_translate_internal length clamp
>>
>> address_space_translate_internal will clamp the *plen length argument
>> based on the size of the memory region being queried. The iommu walker
>> logic in addresss_space_translate was ignoring this by discarding the
>> post fn call value of *plen. Fix by just always using *plen as the
>> length argument throughout the fn, removing the len local variable.
>>
>> This fixes a bootloader bug when a single elf section spans multiple
>> QEMU memory regions.
>>
>> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>> Message-Id: <1426570554-15940-1-git-send-email-peter.crosthwaite@xilinx.com>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
> This winXP BSOD happens on x86_64 target too. Reverting the
> above commit from git master fixes the BSOD.
>
Any useful info about IO addresses on that BSOD? The last issue with
this patch was IOPort code relying on the bug that this patch fixed.
This could be similar and if we can track the failure to a particular
address we can fix properly rather than another revert of that patch.
Regards,
Peter
> Thanks,
>
> /mjt
>
>
next prev parent reply other threads:[~2015-05-12 1:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 5:41 [Qemu-devel] Bug report - Windows XP guest failure Programmingkid
2015-05-06 7:35 ` Michael Tokarev
[not found] ` <FE644B41-6D14-4C4F-ABAD-5D33A3DDFC48@gmail.com>
2015-05-07 1:11 ` G 3
2015-05-07 6:12 ` Michael Tokarev
2015-05-07 6:47 ` Michael Tokarev
2015-05-07 9:34 ` Michael Tokarev
2015-05-11 21:57 ` Programmingkid
2015-05-12 1:05 ` Peter Crosthwaite [this message]
2015-05-12 7:11 ` Paolo Bonzini
2015-05-12 7:22 ` Michael Tokarev
2015-05-12 16:18 ` John Snow
2015-05-13 9:01 ` Paolo Bonzini
2015-06-14 9:55 ` Mark Cave-Ayland
2015-06-14 14:56 ` Programmingkid
2015-06-17 12:23 ` Paolo Bonzini
2015-05-07 15:07 ` Programmingkid
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=CAEgOgz65kPBBmZwA2cgNae68JsufRoUg_F-3ybuoXRHzY94VBQ@mail.gmail.com \
--to=peter.crosthwaite@xilinx.com \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@redhat.com \
--cc=programmingkidx@gmail.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).