Skip to contentSkip to conversation

33399: regressions - FAIL

xen-unstable test xen.org 3 participants 9 messages Jan 14, 2015 – Jan 15, 2015

lore
Share & tools
lore

xen.org

author
#0 lore raw

flight 33399 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/33399/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-freebsd10-amd64 8 guest-start fail REGR. vs. 33112
test-amd64-i386-xl-qemuu-ovmf-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemut-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemuu-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112

 test-amd64-i386-xl-qemuu-win7-amd64  7 windows-install    fail REGR. vs. 33112
 test-amd64-i386-xl-win7-amd64  7 windows-install          fail REGR. vs. 33112
 test-amd64-i386-xl-qemut-win7-amd64  7 windows-install    fail REGR. vs. 33112

Regressions which are regarded as allowable (not blocking):
test-amd64-i386-pair 17 guest-migrate/src_host/dst_host fail like 33112

Tests which did not succeed, but are not blocking:

 test-armhf-armhf-xl          10 migrate-support-check        fail   never pass
 test-amd64-amd64-libvirt      9 guest-start                  fail   never pass
 test-amd64-i386-libvirt       9 guest-start                  fail   never pass
 test-amd64-amd64-xl-pvh-intel  9 guest-start                  fail  never pass
 test-amd64-amd64-xl-pvh-amd   9 guest-start                  fail   never pass
 test-armhf-armhf-libvirt      9 guest-start                  fail   never pass
 test-amd64-amd64-xl-pcipt-intel  9 guest-start                 fail never pass
 test-amd64-i386-xl-qemut-winxpsp3 14 guest-stop                fail never pass
 test-amd64-i386-xl-qemuu-winxpsp3 14 guest-stop                fail never pass
 test-amd64-i386-xl-qemut-winxpsp3-vcpus1 14 guest-stop         fail never pass
 test-amd64-amd64-xl-qemut-win7-amd64 14 guest-stop             fail never pass
 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 14 guest-stop         fail never pass
 test-amd64-amd64-xl-winxpsp3 14 guest-stop                   fail   never pass
 test-amd64-amd64-xl-qemuu-win7-amd64 14 guest-stop             fail never pass
 test-amd64-amd64-xl-win7-amd64 14 guest-stop                   fail never pass
 test-amd64-i386-xl-winxpsp3-vcpus1 14 guest-stop               fail never pass
 test-amd64-amd64-xl-qemut-winxpsp3 14 guest-stop               fail never pass

test-amd64-i386-xl-winxpsp3 14 guest-stop fail never pass
test-amd64-amd64-xl-qemuu-winxpsp3 14 guest-stop fail never pass

version targeted for testing:
xen 762c08496e9732822f172801d5576cd24fff784a
baseline version:
xen 36174af3fbeb1b662c0eadbfa193e77f68cc955b

------------------------------------------------------------
People who touched revisions under test:
Alexandra Sandulescu <[email protected]> Andrew Cooper <[email protected]> Boris Ostrovsky <[email protected]> Chao Peng <[email protected]> Christoph Egger <[email protected]>
Ed Swierk <[email protected]>
Euan Harris <[email protected]>
Ian Campbell <[email protected]>
Ian Campbell <[email protected]>
Ian Jackson <[email protected]>
Ian Jackson <[email protected]> Jan Beulich <[email protected]>
Juergen Gross <[email protected]>
Julien Grall <[email protected]>
Karim Allah Ahmed <[email protected]> Keir Fraser <[email protected]>
Kevin Tian <[email protected]>
Konrad Rzeszutek Wilk <[email protected]> Liang Li <[email protected]>
Liu Jinsong <[email protected]> Mihai Donțu <[email protected]>
Olaf Hering <[email protected]>
Paul Durrant <[email protected]>
Robert Hu <[email protected]>
Roger Pau Monné <[email protected]>
Răzvan Cojocaru <[email protected]> Stefano Stabellini <[email protected]> Thomas Leonard <[email protected]>
Tim Deegan <[email protected]>
Uma Sharma <[email protected]>
Vijaya Kumar K <[email protected]> Wei Liu <[email protected]>
Wei Ye <[email protected]>
Yang Hongyang <[email protected]>
Yang Zhang <[email protected]>
Yu Zhang <[email protected]>
------------------------------------------------------------

jobs:

 build-amd64                                                  pass
 build-armhf                                                  pass
 build-i386                                                   pass
 build-amd64-libvirt                                          pass
 build-armhf-libvirt                                          pass
 build-i386-libvirt                                           pass
 build-amd64-oldkern                                          pass
 build-i386-oldkern                                           pass
 build-amd64-pvops                                            pass
 build-armhf-pvops                                            pass
 build-i386-pvops                                             pass
 build-amd64-rumpuserxen                                      pass
 build-i386-rumpuserxen                                       pass
 test-amd64-amd64-xl                                          pass
 test-armhf-armhf-xl                                          pass
 test-amd64-i386-xl                                           pass
 test-amd64-amd64-xl-pvh-amd                                  fail
 test-amd64-i386-rhel6hvm-amd                                 pass
 test-amd64-i386-qemut-rhel6hvm-amd                           pass
 test-amd64-i386-qemuu-rhel6hvm-amd                           pass
 test-amd64-amd64-xl-qemut-debianhvm-amd64                    pass
 test-amd64-i386-xl-qemut-debianhvm-amd64                     fail
 test-amd64-amd64-xl-qemuu-debianhvm-amd64                    pass
 test-amd64-i386-xl-qemuu-debianhvm-amd64                     fail
 test-amd64-i386-freebsd10-amd64                              fail
 test-amd64-amd64-xl-qemuu-ovmf-amd64                         pass
 test-amd64-i386-xl-qemuu-ovmf-amd64                          fail
 test-amd64-amd64-rumpuserxen-amd64                           pass
 test-amd64-amd64-xl-qemut-win7-amd64                         fail
 test-amd64-i386-xl-qemut-win7-amd64                          fail
 test-amd64-amd64-xl-qemuu-win7-amd64                         fail
 test-amd64-i386-xl-qemuu-win7-amd64                          fail
 test-amd64-amd64-xl-win7-amd64                               fail
 test-amd64-i386-xl-win7-amd64                                fail
 test-amd64-i386-xl-credit2                                   pass
 test-amd64-i386-freebsd10-i386                               pass
 test-amd64-i386-rumpuserxen-i386                             pass
 test-amd64-amd64-xl-pcipt-intel                              fail
 test-amd64-amd64-xl-pvh-intel                                fail
 test-amd64-i386-rhel6hvm-intel                               pass
 test-amd64-i386-qemut-rhel6hvm-intel                         pass
 test-amd64-i386-qemuu-rhel6hvm-intel                         pass
 test-amd64-amd64-libvirt                                     fail
 test-armhf-armhf-libvirt                                     fail
 test-amd64-i386-libvirt                                      fail
 test-amd64-i386-xl-multivcpu                                 pass
 test-amd64-amd64-pair                                        pass
 test-amd64-i386-pair                                         fail
 test-amd64-amd64-xl-sedf-pin                                 pass
 test-amd64-amd64-xl-sedf                                     pass
 test-amd64-i386-xl-qemut-winxpsp3-vcpus1                     fail
 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1                     fail
 test-amd64-i386-xl-winxpsp3-vcpus1                           fail
 test-amd64-amd64-xl-qemut-winxpsp3                           fail
 test-amd64-i386-xl-qemut-winxpsp3                            fail
 test-amd64-amd64-xl-qemuu-winxpsp3                           fail
 test-amd64-i386-xl-qemuu-winxpsp3                            fail
 test-amd64-amd64-xl-winxpsp3                                 fail
 test-amd64-i386-xl-winxpsp3                                  fail

------------------------------------------------------------
sg-report-flight on osstest.cam.xci-test.com
logs: /home/xc_osstest/logs
images: /home/xc_osstest/images

Logs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logs

Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary

Not pushing.

(No revision log; it would be 1445 lines long.)

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

#1 lore raw
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 14.01.15 at 11:33, <[email protected]> wrote:

flight 33399 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/33399/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-freebsd10-amd64 8 guest-start fail REGR. vs. 33112
test-amd64-i386-xl-qemuu-ovmf-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemut-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemuu-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112

Quoted 3 lines
 test-amd64-i386-xl-qemuu-win7-amd64  7 windows-install    fail REGR. vs. 33112
 test-amd64-i386-xl-win7-amd64  7 windows-install          fail REGR. vs. 33112
 test-amd64-i386-xl-qemut-win7-amd64  7 windows-install    fail REGR. vs. 33112

Most if not all of these are falling over 07a6aa869b ("x86/HVM:
make hvm_efer_valid() honor guest features"), which I'm therefore going to revert as I don't have time right now to investigate (and I also don't immediately see why I wouldn't have seen this in my own testing).

Jan

#2 lore raw
Quoted 15 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 14.01.15 at 11:33, <[email protected]> wrote:

flight 33399 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/33399/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-freebsd10-amd64 8 guest-start fail REGR. vs. 33112
test-amd64-i386-xl-qemuu-ovmf-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemut-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemuu-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112

Quoted 3 lines
 test-amd64-i386-xl-qemuu-win7-amd64  7 windows-install    fail REGR. vs. 33112
 test-amd64-i386-xl-win7-amd64  7 windows-install          fail REGR. vs. 33112
 test-amd64-i386-xl-qemut-win7-amd64  7 windows-install    fail REGR. vs. 33112
Quoted 5 lines

Most if not all of these are falling over 07a6aa869b ("x86/HVM:
make hvm_efer_valid() honor guest features"), which I'm therefore going to revert as I don't have time right now to investigate (and I also don't immediately see why I wouldn't have seen this in my own testing).

I have several debug patches I have used in the past to identify the before, after and the bit(s) Xen objects to with these validation routines. I was looking to find some tuits to get them suitable for upstream, and perhaps this is a good enough reason.

~Andrew

#3 lore raw
Quoted 23 lines
Quoted 1 line
Quoted 1 line · On 14.01.15 at 12:22, <[email protected]> wrote:
Quoted 15 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 14.01.15 at 11:33, <[email protected]> wrote:

flight 33399 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/33399/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-freebsd10-amd64 8 guest-start fail REGR. vs. 33112
test-amd64-i386-xl-qemuu-ovmf-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemut-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemuu-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112

Quoted 3 lines
 test-amd64-i386-xl-qemuu-win7-amd64  7 windows-install    fail REGR. vs. 33112
 test-amd64-i386-xl-win7-amd64  7 windows-install          fail REGR. vs. 33112
 test-amd64-i386-xl-qemut-win7-amd64  7 windows-install    fail REGR. vs. 33112
Quoted 5 lines

Most if not all of these are falling over 07a6aa869b ("x86/HVM:
make hvm_efer_valid() honor guest features"), which I'm therefore going to revert as I don't have time right now to investigate (and I also don't immediately see why I wouldn't have seen this in my own testing).

Quoted 4 lines

I have several debug patches I have used in the past to identify the before, after and the bit(s) Xen objects to with these validation routines. I was looking to find some tuits to get them suitable for upstream, and perhaps this is a good enough reason.

Actually I think I see the problem (if my assumption is right that the naming above means all 32-bit guests, which admittedly I didn't specifically test):

+ if ( (value & (EFER_LME | EFER_LMA)) &&
+ !(ext1_edx & cpufeat_mask(X86_FEATURE_LM)) )
+ return 0;
+

I would assume that FEATURE_LM is clear for these guests (implied from there not being pae=1 in the guest configs), yet for whatever reason they try to set EFER_LME.

Jan

#4 lore raw
Quoted 35 lines · Jan Beulich
Quoted 22 lines
Quoted 1 line
Quoted 1 line · On 14.01.15 at 12:22, <[email protected]> wrote:
Quoted 15 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 14.01.15 at 11:33, <[email protected]> wrote:

flight 33399 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/33399/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-freebsd10-amd64 8 guest-start fail REGR. vs. 33112
test-amd64-i386-xl-qemuu-ovmf-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemut-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemuu-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112

Quoted 3 lines
 test-amd64-i386-xl-qemuu-win7-amd64  7 windows-install    fail REGR. vs. 33112
 test-amd64-i386-xl-win7-amd64  7 windows-install          fail REGR. vs. 33112
 test-amd64-i386-xl-qemut-win7-amd64  7 windows-install    fail REGR. vs. 33112
Quoted 5 lines

Most if not all of these are falling over 07a6aa869b ("x86/HVM:
make hvm_efer_valid() honor guest features"), which I'm therefore going to revert as I don't have time right now to investigate (and I also don't immediately see why I wouldn't have seen this in my own testing).

Quoted 4 lines

I have several debug patches I have used in the past to identify the before, after and the bit(s) Xen objects to with these validation routines. I was looking to find some tuits to get them suitable for upstream, and perhaps this is a good enough reason.

Actually I think I see the problem (if my assumption is right that the naming above means all 32-bit guests, which admittedly I didn't specifically test):

(quoted diff) +4 -0
+    if ( (value & (EFER_LME | EFER_LMA)) &&
+         !(ext1_edx & cpufeat_mask(X86_FEATURE_LM)) )
+        return 0;
+
Quoted 3 lines

I would assume that FEATURE_LM is clear for these guests (implied from there not being pae=1 in the guest configs), yet for whatever reason they try to set EFER_LME.

EFER.LME is reserved if !FEATURE_LM, so attempts to set really should fault.

It is entirely possible that the featureset is not being set up correctly, and making Xen stricter has caught the error.

~Andrew

#5 lore raw
In reply to Jan Beulich
Quoted 38 lines
Quoted 24 lines
Quoted 2 lines · On 14.01.15 at 12:37, <[email protected]> wrote:
Quoted 1 line · On 14.01.15 at 12:22, <[email protected]> wrote:
Quoted 15 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 14.01.15 at 11:33, <[email protected]> wrote:

flight 33399 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/33399/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-freebsd10-amd64 8 guest-start fail REGR. vs. 33112
test-amd64-i386-xl-qemuu-ovmf-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemut-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112 test-amd64-i386-xl-qemuu-debianhvm-amd64 7 debian-hvm-install fail REGR. vs. 33112

Quoted 3 lines
 test-amd64-i386-xl-qemuu-win7-amd64  7 windows-install    fail REGR. vs. 33112
 test-amd64-i386-xl-win7-amd64  7 windows-install          fail REGR. vs. 33112
 test-amd64-i386-xl-qemut-win7-amd64  7 windows-install    fail REGR. vs. 33112
Quoted 5 lines

Most if not all of these are falling over 07a6aa869b ("x86/HVM:
make hvm_efer_valid() honor guest features"), which I'm therefore going to revert as I don't have time right now to investigate (and I also don't immediately see why I wouldn't have seen this in my own testing).

Quoted 4 lines

I have several debug patches I have used in the past to identify the before, after and the bit(s) Xen objects to with these validation routines. I was looking to find some tuits to get them suitable for upstream, and perhaps this is a good enough reason.

Actually I think I see the problem (if my assumption is right that the naming above means all 32-bit guests, which admittedly I didn't specifically test):

(quoted diff) +4 -0
+    if ( (value & (EFER_LME | EFER_LMA)) &&
+         !(ext1_edx & cpufeat_mask(X86_FEATURE_LM)) )
+        return 0;
+
Quoted 3 lines

I would assume that FEATURE_LM is clear for these guests (implied from there not being pae=1 in the guest configs), yet for whatever reason they try to set EFER_LME.

That's not the issue; I misread libxl sources - pae is on by default. But what's worse, no matter whether I use pae=1 or pae=0, I can't reproduce the problem. And with

(XEN) hvm.c:2975:d1v0 Trying to set reserved bit in EFER: 0x901

all we talk about here are SCE, LME, and NX. The latter two get their respective feature bits cleared only when !pae (and the hvmloader messages confirm, via the shadow_gs_test, that long mode is available and can be entered).

But I think I made a wrong assumption above regarding the guest size: test-amd64-i386-xl-win7-amd64 produces a 64-bit guest with a 32-bit tool stack, so the crucial part of all the tests failing is not the guest's bitness, but tool stack's. So I'll next look into which of the three feature flags might be off when inspected from a 32-bit Dom0, as I now suspect that the guest simply doesn't get its CPUID bits correctly set up by a 32-bit Dom0 (i.e. the patch might just have uncovered a latent bug).

Jan

#6 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 15.01.15 at 15:14, <[email protected]> wrote:

But I think I made a wrong assumption above regarding the guest size: test-amd64-i386-xl-win7-amd64 produces a 64-bit guest with a 32-bit tool stack, so the crucial part of all the tests failing is not the guest's bitness, but tool stack's. So I'll next look into which of the three feature flags might be off when inspected from a 32-bit Dom0, as I now suspect that the guest simply doesn't get its CPUID bits correctly set up by a 32-bit Dom0 (i.e. the patch might just have uncovered a latent bug).

And there you go: The hypervisor deliberately clears the syscall feature flag for 32-bit PV guests on non-AMD CPUs, and hardware appears to do so too when CPUID gets executed from a non-64-bit CS (i.e. no matter whether you execute raw or "Xen-ified" CPUID there, you won't see that flag set). Yet 64-bit guests won't be bothered to check whether the flag is enabled, as x86-64 requires the feature to be there.

But I think even if this could be taken care of in the tool stack, it's better to have hvm_cpuid() mimic that behavior, i.e. force FEATURE_SYSCALL on when hvm_guest_x86_mode() == 8.

Jan

#7 lore raw
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 15.01.15 at 15:14, <[email protected]> wrote:

But I think I made a wrong assumption above regarding the guest size: test-amd64-i386-xl-win7-amd64 produces a 64-bit guest with a 32-bit tool stack, so the crucial part of all the tests failing is not the guest's bitness, but tool stack's. So I'll next look into which of the three feature flags might be off when inspected from a 32-bit Dom0, as I now suspect that the guest simply doesn't get its CPUID bits correctly set up by a 32-bit Dom0 (i.e. the patch might just have uncovered a latent bug).

Quoted 7 lines

And there you go: The hypervisor deliberately clears the syscall feature flag for 32-bit PV guests on non-AMD CPUs, and hardware appears to do so too when CPUID gets executed from a non-64-bit CS (i.e. no matter whether you execute raw or "Xen-ified" CPUID there, you won't see that flag set). Yet 64-bit guests won't be bothered to check whether the flag is enabled, as x86-64 requires the feature to be there.

As AMD had supported syscall in 32bit systems for a long time, I presume it is only Intel where the feature bit in cpuid changes depending on cs.L

Quoted 4 lines

But I think even if this could be taken care of in the tool stack, it's better to have hvm_cpuid() mimic that behavior, i.e. force FEATURE_SYSCALL on when hvm_guest_x86_mode() == 8.

This seems like the least bad of the available options, but this is going to be another level of complication for my domain cpuid changes.

~Andrew

#8 lore raw
Quoted 20 lines
Quoted 1 line
Quoted 1 line · On 15.01.15 at 16:06, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 15.01.15 at 15:14, <[email protected]> wrote:

But I think I made a wrong assumption above regarding the guest size: test-amd64-i386-xl-win7-amd64 produces a 64-bit guest with a 32-bit tool stack, so the crucial part of all the tests failing is not the guest's bitness, but tool stack's. So I'll next look into which of the three feature flags might be off when inspected from a 32-bit Dom0, as I now suspect that the guest simply doesn't get its CPUID bits correctly set up by a 32-bit Dom0 (i.e. the patch might just have uncovered a latent bug).

Quoted 7 lines

And there you go: The hypervisor deliberately clears the syscall feature flag for 32-bit PV guests on non-AMD CPUs, and hardware appears to do so too when CPUID gets executed from a non-64-bit CS (i.e. no matter whether you execute raw or "Xen-ified" CPUID there, you won't see that flag set). Yet 64-bit guests won't be bothered to check whether the flag is enabled, as x86-64 requires the feature to be there.

Quoted 2 lines

As AMD had supported syscall in 32bit systems for a long time, I presume it is only Intel where the feature bit in cpuid changes depending on cs.L

Sure.

Jan