Skip to contentSkip to conversation

Regression booting winxp under Xen.

DISCUSSION Ian Campbell 2 participants 5 messages Nov 3, 2014 – Nov 5, 2014 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Xen's automated test system is reporting[1] that something between bfb7b58b3068 and 136d4ec190af (for reference the previous pass is[2]) has broken booting winxp under Xen with Seabios.

Logs for one of the failures can be found at[3] (reached by following the email's link to [4] and clicking the header of a failing column). The VNC screenshot of the guest shows "Setup is inspecting your hardware configuration..." (at least for those which have such a screenshot, not sure why some don't).

I've not investigated more thoroughly yes, just posting in case something obvious leaps out at someone. The automated test is currently bisecting the issue, once it is done I'll let you know the result.

[1] http://lists.xen.org/archives/html/xen-devel/2014-10/msg03543.html
[2] http://lists.xen.org/archives/html/xen-devel/2014-10/msg01993.html
[3] http://www.chiark.greenend.org.uk/~xensrcts/logs/31223/test-amd64-i386-xl-qemuu-winxpsp3-vcpus1/info.html
[4] http://www.chiark.greenend.org.uk/~xensrcts/logs/31223/

#1 lore raw
Quoted 3 lines · Ian Campbell

I've not investigated more thoroughly yes, just posting in case something obvious leaps out at someone. The automated test is currently bisecting the issue, once it is done I'll let you know the result.

If I'd read a bit further through my Monday morning INBOX I'd have found:

        http://lists.xen.org/archives/html/xen-devel/2014-11/msg00001.html

which indicates that the bisector has fingered:

commit 99cb8f3e9af516954b2f2fba97ce1856e3d7b93f
Author: Kevin O'Connor <kevin@xxxxxxxxxxxx>
Date: Tue Oct 21 14:34:06 2014 -0400

Do full BREGS backup/restore for pmm, pnp, and irqentry_extrastack

Although these entry points only require backup and restore of the registers that the C code clobbers, there is no harm in backing up some additional registers. This allows the BREGS macros to be used which makes the code a little more readable.

Ian.

Quoted 11 lines

[1] http://lists.xen.org/archives/html/xen-devel/2014-10/msg03543.html
[2] http://lists.xen.org/archives/html/xen-devel/2014-10/msg01993.html
[3] http://www.chiark.greenend.org.uk/~xensrcts/logs/31223/test-amd64-i386-xl-qemuu-winxpsp3-vcpus1/info.html
[4] http://www.chiark.greenend.org.uk/~xensrcts/logs/31223/

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 6 lines · Ian Campbell
Quoted 3 lines · Ian Campbell

I've not investigated more thoroughly yes, just posting in case something obvious leaps out at someone. The automated test is currently bisecting the issue, once it is done I'll let you know the result.

Quoted 7 lines

If I'd read a bit further through my Monday morning INBOX I'd have found:

        http://lists.xen.org/archives/html/xen-devel/2014-11/msg00001.html

which indicates that the bisector has fingered:

commit 99cb8f3e9af516954b2f2fba97ce1856e3d7b93f

Sorry about that - I missed one of the stack offset conversions in the PNP part of that change. The fix is below and I just pushed it to the main repo.

Thanks for catching it.
-Kevin

src/romlayout.S +1 -1
@@ -286,7 +286,7 @@ entry_pnp_real:
         movw %cx, %ds
         leal BREGS_size-6+12(%esp), %eax  // %eax points to start of u16 args
         calll handle_pnp
-        movw %ax, 12(%esp)      // Modify %eax to return %ax
+        movw %ax, BREGS_eax(%esp)   // Modify %eax to return %ax
         POPBREGS
         popfl
         popl %esp
#4 lore raw
In reply to a message not in the archive
Quoted 13 lines · Kevin O'Connor
Quoted 12 lines · Ian Campbell
Quoted 3 lines · Ian Campbell

I've not investigated more thoroughly yes, just posting in case something obvious leaps out at someone. The automated test is currently bisecting the issue, once it is done I'll let you know the result.

If I'd read a bit further through my Monday morning INBOX I'd have found:

        http://lists.xen.org/archives/html/xen-devel/2014-11/msg00001.html

which indicates that the bisector has fingered:

Quoted 7 lines
Quoted 1 line

commit 99cb8f3e9af516954b2f2fba97ce1856e3d7b93f

Sorry about that - I missed one of the stack offset conversions in the PNP part of that change. The fix is below and I just pushed it to the main repo.

Thanks for catching it.

Thanks for the quick fix!

Quoted 14 lines
(quoted diff) +0 -1
-Kevin
src/romlayout.S +1 -1
@@ -286,7 +286,7 @@ entry_pnp_real:
         movw %cx, %ds
         leal BREGS_size-6+12(%esp), %eax  // %eax points to start of u16 args
         calll handle_pnp
-        movw %ax, 12(%esp)      // Modify %eax to return %ax
+        movw %ax, BREGS_eax(%esp)   // Modify %eax to return %ax
         POPBREGS
         popfl
         popl %esp
#6 lore raw
In reply to a message not in the archive
Quoted 16 lines · Ian Campbell
Quoted 15 lines · Kevin O'Connor
Quoted 13 lines · Ian Campbell
Quoted 3 lines · Ian Campbell

I've not investigated more thoroughly yes, just posting in case something obvious leaps out at someone. The automated test is currently bisecting the issue, once it is done I'll let you know the result.

If I'd read a bit further through my Monday morning INBOX I'd have found:

        http://lists.xen.org/archives/html/xen-devel/2014-11/msg00001.html

which indicates that the bisector has fingered:

commit 99cb8f3e9af516954b2f2fba97ce1856e3d7b93f

Quoted 7 lines
Quoted 5 lines

Sorry about that - I missed one of the stack offset conversions in the PNP part of that change. The fix is below and I just pushed it to the main repo.

Thanks for catching it.

Thanks for the quick fix!

FYI the next Xen osstest run didn't suffer from this issue, thanks.

(in case you go looking at the results, it did fail for other Xen related reasons, nothing to do with seabios, but this issue is definitely gone.)

Quoted 23 lines
Quoted 7 lines
(quoted diff) +0 -1
-Kevin

src/romlayout.S entry_pnp_real: · line 292

Quoted 8 lines
src/romlayout.S +1 -1
@@ -286,7 +286,7 @@ entry_pnp_real:
         movw %cx, %ds
         leal BREGS_size-6+12(%esp), %eax  // %eax points to start of u16 args
         calll handle_pnp
-        movw %ax, 12(%esp)      // Modify %eax to return %ax
+        movw %ax, BREGS_eax(%esp)   // Modify %eax to return %ax
         POPBREGS
         popfl
         popl %esp

_______________________________________________
SeaBIOS mailing list
[email protected]
http://www.seabios.org/mailman/listinfo/seabios