Skip to contentSkip to conversation

173492: regressions - FAIL

xen-unstable-smoke test osstest service owner 5 participants 8 messages Oct 11, 2022 – Oct 12, 2022

lore
Share & tools
lore
#0 lore raw

flight 173492 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/173492/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:

 test-arm64-arm64-xl-xsm      14 guest-start              fail REGR. vs. 173457
 test-armhf-armhf-xl          14 guest-start              fail REGR. vs. 173457

Tests which did not succeed, but are not blocking:
test-amd64-amd64-libvirt 15 migrate-support-check fail never pass

version targeted for testing:
xen 87a20c98d9f0f422727fe9b4b9e22c2c43a5cd9c
baseline version:
xen 9029bc265cdf2bd63376dde9fdd91db4ce9c0586

Last test of basis   173457  2022-10-07 14:03:14 Z    4 days
Testing same since   173492  2022-10-11 13:01:50 Z    0 days    1 attempts

------------------------------------------------------------
People who touched revisions under test:
Henry Wang <[email protected]>
Jan Beulich <[email protected]>
Julien Grall <[email protected]>
Roger Pau Monné <[email protected]>
Tim Deegan <[email protected]>

jobs:

 build-arm64-xsm                                              pass    
 build-amd64                                                  pass    
 build-armhf                                                  pass    
 build-amd64-libvirt                                          pass    
 test-armhf-armhf-xl                                          fail    
 test-arm64-arm64-xl-xsm                                      fail    
 test-amd64-amd64-xl-qemuu-debianhvm-amd64                    pass    
 test-amd64-amd64-libvirt                                     pass    

------------------------------------------------------------
sg-report-flight on osstest.test-lab.xenproject.org
logs: /home/logs/logs
images: /home/logs/images

Logs, config files, etc. are available at
http://logs.test-lab.xenproject.org/osstest/logs

Explanation of these reports, and of osstest in general, is at
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README.email;hb=master
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README;hb=master

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

Not pushing.

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

#1 lore raw
Quoted 8 lines · osstest service owner

flight 173492 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/173492/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-arm64-arm64-xl-xsm 14 guest-start fail REGR. vs. 173457

Parsing config from /etc/xen/debian.guest.osstest.cfg
libxl: debug: libxl_create.c:2079:do_domain_create: ao 0xaaaacaccf680: create: how=(nil) callback=(nil) poller=0xaaaacaccefd0
libxl: detail: libxl_create.c:661:libxl__domain_make: passthrough: disabled
libxl: debug: libxl_arm.c:148:libxl__arch_domain_prepare_config: Configure the domain
libxl: debug: libxl_arm.c:151:libxl__arch_domain_prepare_config: - Allocate 0 SPIs
libxl: error: libxl_create.c:709:libxl__domain_make: domain creation fail: No such file or directory
libxl: error: libxl_create.c:1294:initiate_domain_create: cannot make domain: -3

Later flights don't fail here anymore, though.

Quoted 1 line

test-armhf-armhf-xl 14 guest-start fail REGR. vs. 173457

Similar log contents here, but later flights continue to fail the same way.

I'm afraid I can't draw conclusions from this; I haven't been able to spot anything helpful in the hypervisor logs. My best guess right now is the use of some uninitialized memory, which just happened to go fine in the later flights for 64-bit.

Jan

#2 lore raw

Hi Jan,

Quoted 28 lines

-----Original Message-----
Subject: Re: [xen-unstable-smoke test] 173492: regressions - FAIL

Quoted 8 lines · osstest service owner

flight 173492 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/173492/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-arm64-arm64-xl-xsm 14 guest-start fail REGR. vs. 173457

Parsing config from /etc/xen/debian.guest.osstest.cfg
libxl: debug: libxl_create.c:2079:do_domain_create: ao 0xaaaacaccf680:
create: how=(nil) callback=(nil) poller=0xaaaacaccefd0
libxl: detail: libxl_create.c:661:libxl__domain_make: passthrough: disabled
libxl: debug: libxl_arm.c:148:libxl__arch_domain_prepare_config: Configure the domain
libxl: debug: libxl_arm.c:151:libxl__arch_domain_prepare_config: - Allocate 0 SPIs
libxl: error: libxl_create.c:709:libxl__domain_make: domain creation fail: No such file or directory
libxl: error: libxl_create.c:1294:initiate_domain_create: cannot make domain:
-3

Later flights don't fail here anymore, though.

Quoted 8 lines
Quoted 1 line

test-armhf-armhf-xl 14 guest-start fail REGR. vs. 173457

Similar log contents here, but later flights continue to fail the same way.

I'm afraid I can't draw conclusions from this; I haven't been able to spot anything helpful in the hypervisor logs. My best guess right now is the use of some uninitialized memory, which just happened to go fine in the later flights for 64-bit.

I am also quite confused about this issue, as from my local test today on different Arm/Arm64 boards, this issue would be only triggered on some of them instead of all of them...

Kind regards,
Henry

Quoted 2 lines

Jan

#3 lore raw

(+ Bertrand & Stefano)

Hi Henry,

Quoted 13 lines · Henry Wang
Quoted 13 lines

-----Original Message-----
Subject: Re: [xen-unstable-smoke test] 173492: regressions - FAIL

Quoted 8 lines · osstest service owner

flight 173492 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/173492/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-arm64-arm64-xl-xsm 14 guest-start fail REGR. vs. 173457

Quoted 10 lines
Quoted 10 lines

Parsing config from /etc/xen/debian.guest.osstest.cfg
libxl: debug: libxl_create.c:2079:do_domain_create: ao 0xaaaacaccf680:
create: how=(nil) callback=(nil) poller=0xaaaacaccefd0
libxl: detail: libxl_create.c:661:libxl__domain_make: passthrough: disabled
libxl: debug: libxl_arm.c:148:libxl__arch_domain_prepare_config: Configure the domain
libxl: debug: libxl_arm.c:151:libxl__arch_domain_prepare_config: - Allocate 0 SPIs
libxl: error: libxl_create.c:709:libxl__domain_make: domain creation fail: No such file or directory

So this is -ENOENT which could be returned by the P2M is it can't allocate a page table (see p2m_set_entry()).

Quoted 5 lines
Quoted 5 lines

libxl: error: libxl_create.c:1294:initiate_domain_create: cannot make domain:
-3

Later flights don't fail here anymore, though.

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

test-armhf-armhf-xl 14 guest-start fail REGR. vs. 173457

Similar log contents here, but later flights continue to fail the same way.

I'm afraid I can't draw conclusions from this; I haven't been able to spot anything helpful in the hypervisor logs. My best guess right now is the use of some uninitialized memory, which just happened to go fine in the later flights for 64-bit.

It looks like the smoke flight failed on laxton0 but passed on rochester{0, 1}. The former is using GICv2 whilst the latter are using GICv3.

In the case of GICv2, we will create a P2M mapping when the domain is created. This is not necessary in the GICv3.

IIRC the P2M pool is only populated later on (we don't add a few pages like on x86). So I am guessing this is why we are seen failure.

If that's correct, then this is a complete oversight from me (I haven't done any GICv2 testing) while reviewing the series.

The easy way to solve it would be to add a few pages in the pool when the domain is created. I don't like it, but I think there other possible solutions would require more work as we would need to delay the mappings.

Quoted 4 lines

I am also quite confused about this issue, as from my local test today on different Arm/Arm64 boards, this issue would be only triggered on some of them instead of all of them...

Did this include any GICv2 HW?

Cheers,

Signature · 1 line
Julien Grall
#4 lore raw

Hi Julien,

Thank you very much for your reply.

Quoted 6 lines

-----Original Message-----
From: Julien Grall <[email protected]>
Subject: Re: [xen-unstable-smoke test] 173492: regressions - FAIL

(+ Bertrand & Stefano)

Quoted 7 lines

Hi Henry,

Quoted 3 lines

I am also quite confused about this issue, as from my local test today on different Arm/Arm64 boards, this issue would be only triggered on some of them instead of all of them...

Did this include any GICv2 HW?

Ohh I didn't think this way...Exactly, the failing boards are qemu-arm32, juno and raspberry-pi-4, other boards such as FVP, N1SDP are fine. I am sorry as back to the dev phase I think FVP is the only available board for me so this part of testing was missed, and our internal CI at that time also missing these GICv2 boards...

We will try to make a fix from our side and properly test it this time. Thank you very much for your input.

Kind regards,
Henry

Quoted 5 lines

Cheers,

--
Julien Grall

#5 lore raw
In reply to Julien Grall
Quoted 67 lines · Julien Grall

(+ Bertrand & Stefano)

Hi Henry,

Quoted 14 lines · Henry Wang
Quoted 14 lines

-----Original Message-----
Subject: Re: [xen-unstable-smoke test] 173492: regressions - FAIL

Quoted 9 lines · osstest service owner

flight 173492 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/173492/

Regressions :-(

Tests which did not succeed and are blocking, including tests which could not be run:
  test-arm64-arm64-xl-xsm      14 guest-start              fail REGR. vs. 173457

Quoted 14 lines
Quoted 6 lines

Parsing config from /etc/xen/debian.guest.osstest.cfg
libxl: debug: libxl_create.c:2079:do_domain_create: ao 0xaaaacaccf680:
create: how=(nil) callback=(nil) poller=0xaaaacaccefd0
libxl: detail: libxl_create.c:661:libxl__domain_make: passthrough:
disabled
libxl: debug: libxl_arm.c:148:libxl__arch_domain_prepare_config:

Quoted 8 lines

Configure
the domain
libxl: debug: libxl_arm.c:151:libxl__arch_domain_prepare_config:  - Allocate
0 SPIs
libxl: error: libxl_create.c:709:libxl__domain_make: domain creation
fail: No
such file or directory

So this is -ENOENT which could be returned by the P2M is it can't allocate a page table (see p2m_set_entry()).

Quoted 12 lines
Quoted 12 lines

libxl: error: libxl_create.c:1294:initiate_domain_create: cannot make domain:
-3

Later flights don't fail here anymore, though.

Quoted 2 lines

  test-armhf-armhf-xl          14 guest-start              fail REGR. vs. 173457

Similar log contents here, but later flights continue to fail the same way.

Quoted 7 lines
Quoted 7 lines

I'm afraid I can't draw conclusions from this; I haven't been able to spot
anything helpful in the hypervisor logs. My best guess right now is the use
of some uninitialized memory, which just happened to go fine in the later
flights for 64-bit.

It looks like the smoke flight failed on laxton0 but passed on rochester{0, 1}. The former is using GICv2 whilst the latter are using GICv3.

In the case of GICv2, we will create a P2M mapping when the domain is created. This is not necessary in the GICv3.

IIRC the P2M pool is only populated later on (we don't add a few pages like on x86). So I am guessing this is why we are seen failure.

Quoted 7 lines

If that's correct, then this is a complete oversight from me (I haven't done any GICv2 testing) while reviewing the series.

The easy way to solve it would be to add a few pages in the pool when the domain is created. I don't like it, but I think there other possible solutions would require more work as we would need to delay the mappings.

Honestly, I've considered doing this on x86 too.

There are several things which want allocating in domain_create(), but are deferred to max_vcpus() because they require the P2M having a non-zero allocation.  This in turn means we've got a load of checks in paths where we'd ideally not have them.

We already have a calculation of the absolutely minimum we will ever permit the p2m pool to be.  IMO we ought to allocate this minimum size in domain_create().

~Andrew

#6 lore raw

Hi Andrew,

Quoted 71 lines · Andrew Cooper
Quoted 70 lines · Julien Grall

(+ Bertrand & Stefano)

Hi Henry,

Quoted 14 lines · Henry Wang
Quoted 14 lines

-----Original Message-----
Subject: Re: [xen-unstable-smoke test] 173492: regressions - FAIL

Quoted 9 lines · osstest service owner

flight 173492 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/173492/

Regressions :-(

Tests which did not succeed and are blocking, including tests which could not be run:
  test-arm64-arm64-xl-xsm      14 guest-start              fail
REGR. vs. 173457

Quoted 14 lines
Quoted 6 lines

Parsing config from /etc/xen/debian.guest.osstest.cfg
libxl: debug: libxl_create.c:2079:do_domain_create: ao 0xaaaacaccf680:
create: how=(nil) callback=(nil) poller=0xaaaacaccefd0
libxl: detail: libxl_create.c:661:libxl__domain_make: passthrough:
disabled
libxl: debug: libxl_arm.c:148:libxl__arch_domain_prepare_config:

Quoted 8 lines

Configure
the domain
libxl: debug: libxl_arm.c:151:libxl__arch_domain_prepare_config:  - Allocate
0 SPIs
libxl: error: libxl_create.c:709:libxl__domain_make: domain creation
fail: No
such file or directory

So this is -ENOENT which could be returned by the P2M is it can't allocate a page table (see p2m_set_entry()).

Quoted 12 lines
Quoted 12 lines

libxl: error: libxl_create.c:1294:initiate_domain_create: cannot make domain:
-3

Later flights don't fail here anymore, though.

Quoted 2 lines

  test-armhf-armhf-xl          14 guest-start              fail
REGR. vs. 173457

Similar log contents here, but later flights continue to fail the same way.

Quoted 7 lines
Quoted 7 lines

I'm afraid I can't draw conclusions from this; I haven't been able to spot
anything helpful in the hypervisor logs. My best guess right now is the use
of some uninitialized memory, which just happened to go fine in the later
flights for 64-bit.

It looks like the smoke flight failed on laxton0 but passed on rochester{0, 1}. The former is using GICv2 whilst the latter are using GICv3.

In the case of GICv2, we will create a P2M mapping when the domain is created. This is not necessary in the GICv3.

IIRC the P2M pool is only populated later on (we don't add a few pages like on x86). So I am guessing this is why we are seen failure.

If that's correct, then this is a complete oversight from me (I haven't done any GICv2 testing) while reviewing the series.

Quoted 6 lines
Quoted 4 lines

The easy way to solve it would be to add a few pages in the pool when the domain is created. I don't like it, but I think there other possible solutions would require more work as we would need to delay the mappings.

Honestly, I've considered doing this on x86 too.

AFAICT, this is already the case for HAP (see call to hap_set_allocation() in hap_enable()). 256 pages will be pre-allocated.

Quoted 9 lines

There are several things which want allocating in domain_create(), but are deferred to max_vcpus() because they require the P2M having a non-zero allocation.  This in turn means we've got a load of checks in paths where we'd ideally not have them.

We already have a calculation of the absolutely minimum we will ever permit the p2m pool to be.  IMO we ought to allocate this minimum size in domain_create().

It depends on the number. At the moment domain_create() is not preemptible, so we don't want to allocate too many pages (I think even 256 pages could be risky on some Arm platform).

Maybe the solution is to have domain_create() preemptible. But it is not something that could be done in the 4.17 time frame.

Cheers,

Signature · 1 line
Julien Grall
#7 lore raw
Quoted 80 lines · Julien Grall

Hi Andrew,

Quoted 77 lines · Andrew Cooper
Quoted 75 lines · Julien Grall

(+ Bertrand & Stefano)

Hi Henry,

Quoted 14 lines · Henry Wang
Quoted 14 lines

-----Original Message-----
Subject: Re: [xen-unstable-smoke test] 173492: regressions - FAIL

Quoted 9 lines · osstest service owner

flight 173492 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/173492/

Regressions :-(

Tests which did not succeed and are blocking, including tests which could not be run:
   test-arm64-arm64-xl-xsm      14 guest-start              fail REGR. vs. 173457

Quoted 15 lines
Quoted 7 lines

Parsing config from /etc/xen/debian.guest.osstest.cfg
libxl: debug: libxl_create.c:2079:do_domain_create: ao 0xaaaacaccf680:
create: how=(nil) callback=(nil) poller=0xaaaacaccefd0
libxl: detail: libxl_create.c:661:libxl__domain_make: passthrough:
disabled
libxl: debug: libxl_arm.c:148:libxl__arch_domain_prepare_config:

Quoted 8 lines

Configure
the domain
libxl: debug: libxl_arm.c:151:libxl__arch_domain_prepare_config:  - Allocate
0 SPIs
libxl: error: libxl_create.c:709:libxl__domain_make: domain creation
fail: No
such file or directory

So this is -ENOENT which could be returned by the P2M is it can't allocate a page table (see p2m_set_entry()).

Quoted 12 lines
Quoted 12 lines

libxl: error: libxl_create.c:1294:initiate_domain_create: cannot make domain:
-3

Later flights don't fail here anymore, though.

Quoted 2 lines

   test-armhf-armhf-xl          14 guest-start              fail REGR. vs. 173457

Similar log contents here, but later flights continue to fail the same way.

Quoted 7 lines
Quoted 7 lines

I'm afraid I can't draw conclusions from this; I haven't been able to spot
anything helpful in the hypervisor logs. My best guess right now is the use
of some uninitialized memory, which just happened to go fine in the later
flights for 64-bit.

It looks like the smoke flight failed on laxton0 but passed on rochester{0, 1}. The former is using GICv2 whilst the latter are using GICv3.

In the case of GICv2, we will create a P2M mapping when the domain is created. This is not necessary in the GICv3.

IIRC the P2M pool is only populated later on (we don't add a few pages like on x86). So I am guessing this is why we are seen failure.

If that's correct, then this is a complete oversight from me (I haven't done any GICv2 testing) while reviewing the series.

The easy way to solve it would be to add a few pages in the pool when the domain is created. I don't like it, but I think there other possible solutions would require more work as we would need to delay the mappings.

Quoted 4 lines
Quoted 1 line

Honestly, I've considered doing this on x86 too.

AFAICT, this is already the case for HAP (see call to hap_set_allocation() in hap_enable()). 256 pages will be pre-allocated.

Right, but it's asymmetric with shadow.  This wants fixing and simplifying.

Quoted 11 lines
Quoted 10 lines

There are several things which want allocating in domain_create(), but are deferred to max_vcpus() because they require the P2M having a non-zero allocation.  This in turn means we've got a load of checks in paths where we'd ideally not have them.

We already have a calculation of the absolutely minimum we will ever permit the p2m pool to be.  IMO we ought to allocate this minimum size in domain_create().

Quoted 6 lines

It depends on the number. At the moment domain_create() is not preemptible, so we don't want to allocate too many pages (I think even 256 pages could be risky on some Arm platform).

Maybe the solution is to have domain_create() preemptible. But it is not something that could be done in the 4.17 time frame.

domain_create() can't be pre-emptible in its current form, because it depends on "atomically" taking the domid from not existing to existing. Specifically, until the hypercall completes, other hypercalls can't find a struct domain* for the domid.

This is necessary, because we guarantee that when you can look up a domain by domid, e.g. the predicates work on it, and d->max_vcpus is nonzero, etc.

In some future where the error paths have been made idempotent and we have a clean split between teardown and destroy, we probably can alter the existing creation path to do a more basic initial setup (which can be cleaned up by the destroy logic), then insert the domain into dom hashtable and automatically continue into a different subop and perform more long-running setup.

But yeah - absolutely definitely not 4.17 content.

~Andrew