11574: tolerable FAIL
flight 11574 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/11574/
Failures :-/ but no regressions.
Tests which are failing intermittently (not blocking):
test-amd64-i386-win 7 windows-install fail pass in 11561 test-i386-i386-win 7 windows-install fail pass in 11561 test-amd64-i386-xend-winxpsp3 7 windows-install fail in 11561 pass in 11574 test-amd64-amd64-xl-win 7 windows-install fail in 11561 pass in 11574 test-amd64-amd64-win 7 windows-install fail in 11561 pass in 11574
Regressions which are regarded as allowable (not blocking):
test-amd64-i386-win-vcpus1 7 windows-install fail like 11561
Tests which did not succeed, but are not blocking:
test-amd64-amd64-xl-pcipt-intel 9 guest-start fail never pass
test-amd64-i386-rhel6hvm-intel 9 guest-start.2 fail never pass
test-amd64-i386-rhel6hvm-amd 9 guest-start.2 fail never pass
test-amd64-amd64-xl-win7-amd64 13 guest-stop fail never pass
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never pass test-amd64-amd64-xl-win 13 guest-stop fail never pass test-i386-i386-xl-win 13 guest-stop fail never pass test-amd64-i386-xl-win-vcpus1 13 guest-stop fail never pass test-amd64-i386-xl-win7-amd64 13 guest-stop fail never pass test-i386-i386-xl-winxpsp3 13 guest-stop fail never pass test-amd64-amd64-win 16 leak-check/check fail never pass test-amd64-amd64-xl-winxpsp3 13 guest-stop fail never pass test-amd64-i386-xl-winxpsp3-vcpus1 13 guest-stop fail never pass test-amd64-i386-win 16 leak-check/check fail in 11561 never pass test-i386-i386-win 16 leak-check/check fail in 11561 never pass
version targeted for testing:
xen 370924e204dc
baseline version:
xen 370924e204dc
jobs:
build-amd64 pass build-i386 pass build-amd64-oldkern pass build-i386-oldkern pass build-amd64-pvops pass build-i386-pvops pass test-amd64-amd64-xl pass test-amd64-i386-xl pass test-i386-i386-xl pass test-amd64-i386-rhel6hvm-amd fail test-amd64-amd64-xl-win7-amd64 fail test-amd64-i386-xl-win7-amd64 fail test-amd64-i386-xl-credit2 pass test-amd64-amd64-xl-pcipt-intel fail test-amd64-i386-rhel6hvm-intel fail test-amd64-i386-xl-multivcpu pass test-amd64-amd64-pair pass test-amd64-i386-pair pass test-i386-i386-pair pass test-amd64-amd64-xl-sedf-pin pass test-amd64-amd64-pv pass test-amd64-i386-pv pass test-i386-i386-pv pass test-amd64-amd64-xl-sedf pass test-amd64-i386-win-vcpus1 fail test-amd64-i386-xl-win-vcpus1 fail test-amd64-i386-xl-winxpsp3-vcpus1 fail test-amd64-amd64-win fail test-amd64-i386-win fail test-i386-i386-win fail test-amd64-amd64-xl-win fail test-i386-i386-xl-win fail test-amd64-i386-xend-winxpsp3 fail test-amd64-amd64-xl-winxpsp3 fail test-i386-i386-xl-winxpsp3 fail
------------------------------------------------------------
sg-report-flight on woking.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
Published tested tree is already up to date.
xen.org writes ("[xen-unstable test] 11574: tolerable FAIL"):
Quoted 2 lines
Tests which are failing intermittently (not blocking):
test-amd64-i386-win 7 windows-install fail pass in 11561
This is a host-specific, but deterministic, failure. My bisector has been working on it (the basis pass was in November so there has been a lot of ground to cover and I had to make some new arrangements to be able to run an ad-hoc bisection of this problem) and the results so far are fingering changesets between 24367:537ceb11d51e (bad) and 24362:d35bedf334f2 (good).
Extract from hg log -v is below.
I have looked at the logs of one of these failures and there is nothing of note. The screenshot shows the Windows screensaver, so I guess neither the guest itself nor qemu have crashed. The likely situation is either that the guest has somehow locked up and ceased to make progress, or that the networking is nonfunctional.
I'm expecting the bisector to finger a specific changeset and will let you know when it does, but this will take some more hours and maybe only finish overnight or tomorrow.
Ian.
changeset: 24367:537ceb11d51e user: Andres Lagar-Cavilla <[email protected]> date: Tue Dec 06 20:31:49 2011 +0000 files: xen/arch/x86/hvm/hvm.c
description:
Improve handling of nested page faults
Add checks for access type. Be less reliant on implicit semantics.
changeset: 24366:534b2a15e669 user: Andres Lagar-Cavilla <[email protected]> date: Tue Dec 06 20:10:32 2011 +0000 files: xen/arch/x86/mm/mem_sharing.c xen/arch/x86/mm/p2m.c xen/include/public/mem_event.h
description:
x86/mm: Allow dummy responses on the mem_event ring.
Ring semantics require that for every request, a response be put. This allows consumer to place a dummy response if need be.
changeset: 24365:c65d1a9769b4 user: Andres Lagar-Cavilla <[email protected]> date: Tue Dec 06 20:10:32 2011 +0000 files: xen/arch/x86/mm/mem_event.c xen/arch/x86/mm/mem_sharing.c xen/arch/x86/mm/p2m.c xen/include/asm-x86/mem_event.h
description:
x86/mm: Consume multiple mem event responses off the ring
changeset: 24364:0964341efd65 user: Andres Lagar-Cavilla <[email protected]> date: Tue Dec 06 20:10:32 2011 +0000 files: xen/arch/x86/mm/mem_event.c
description:
x86/mm: Allow memevent responses to be signaled via the event channel
Don't require a separate domctl to notify the memevent interface that an event has occured. This domctl can be taxing, particularly when you are scaling events and paging to many domains across a single system. Instead, we use the existing event channel to signal when we place something in the ring (as per normal ring operation).
changeset: 24363:1620291f0c4a user: Andres Lagar-Cavilla <[email protected]> date: Tue Dec 06 20:10:32 2011 +0000 files: xen/arch/ia64/vmx/vmx_init.c xen/arch/x86/hvm/hvm.c xen/arch/x86/mm/mem_event.c xen/common/event_channel.c xen/include/xen/event.h xen/include/xen/sched.h
description:
Create a generic callback mechanism for Xen-bound event channels
For event channels for which Xen is the consumer, there currently is a single action. With this patch, we allow event channel creators to specify a generic callback (or no callback). Because the expectation is that there will be few callbacks, they are stored in a small table.
Ian Jackson writes ("Re: [xen-unstable test] 11574: tolerable FAIL"):
Quoted 6 lines
This is a host-specific, but deterministic, failure. My bisector has been working on it (the basis pass was in November so there has been a lot of ground to cover and I had to make some new arrangements to be able to run an ad-hoc bisection of this problem) and the results so far are fingering changesets between 24367:537ceb11d51e (bad) and 24362:d35bedf334f2 (good).
The bisector is now minded to blame this changeset:
changeset: 24367:537ceb11d51e user: Andres Lagar-Cavilla <[email protected]> date: Tue Dec 06 20:31:49 2011 +0000 files: xen/arch/x86/hvm/hvm.c
description:
Improve handling of nested page faults
Add checks for access type. Be less reliant on implicit semantics.
It's doing a couple more before-and-after repros to be sure, but this looks like a plausible candidate. Full diff below.
I'm not an expert on this area. Perhaps someone could speculate what Windows is doing that is triggering one of these new checks ?
Ian.
# HG changeset patch
# User Andres Lagar-Cavilla <[email protected]> # Date 1323203509 0
# Node ID 537ceb11d51ef60cd4abffd2f54de0ae0ca50008 # Parent 534b2a15e6695dfd8866c0ff626b002cbf57991a Improve handling of nested page faults
Add checks for access type. Be less reliant on implicit semantics.
xen/arch/x86/hvm/hvm.c +9 -5
@@ -1288,7 +1288,8 @@ int hvm_hap_nested_page_fault(unsigned l* If this GFN is emulated MMIO or marked as read-only, pass the fault * to the mmio handler. */ -if ( (p2mt == p2m_mmio_dm) || (p2mt == p2m_ram_ro) ) +if ( (p2mt == p2m_mmio_dm) || + (access_w && (p2mt == p2m_ram_ro)) ) {if ( !handle_mmio () )hvm_inject_exception (TRAP_gp_fault,0 ,0 );
@@ -1302,7 +1303,7 @@ int hvm_hap_nested_page_fault(unsigned lp2m_mem_paging_populate (v->domain, gfn);/* Mem sharing: unshare the page and try again */ -if ( p2mt == p2m_ram_shared ) +if ( access_w && (p2mt == p2m_ram_shared) ) {ASSERT (!p2m_is_nestedp2m (p2m));mem_sharing_unshare_page (p2m->domain, gfn,0 );
@@ -1319,14 +1320,17 @@ int hvm_hap_nested_page_fault(unsigned l* a large page, we do not change other pages type within that large * page. */ -paging_mark_dirty (v->domain,mfn_x (mfn)); -p2m_change_type (v->domain, gfn, p2m_ram_logdirty, p2m_ram_rw); +if ( access_w ) + { +paging_mark_dirty (v->domain,mfn_x (mfn)); +p2m_change_type (v->domain, gfn, p2m_ram_logdirty, p2m_ram_rw); + } rc =1 ; goto out_put_gfn; }/* Shouldn't happen: Maybe the guest was writing to a r/o grant mapping? */ -if ( p2mt == p2m_grant_map_ro ) +if ( access_w && (p2mt == p2m_grant_map_ro) ) {gdprintk (XENLOG_WARNING ,"trying to write to read-only grant mapping\n" );
Quoted 17 lines
Ian Jackson writes ("Re: [xen-unstable test] 11574: tolerable FAIL"):
Quoted 6 lines
This is a host-specific, but deterministic, failure. My bisector has been working on it (the basis pass was in November so there has been a lot of ground to cover and I had to make some new arrangements to be able to run an ad-hoc bisection of this problem) and the results so far are fingering changesets between 24367:537ceb11d51e (bad) and 24362:d35bedf334f2 (good).
The bisector is now minded to blame this changeset:
changeset: 24367:537ceb11d51e user: Andres Lagar-Cavilla <[email protected]> date: Tue Dec 06 20:31:49 2011 +0000 files: xen/arch/x86/hvm/hvm.cdescription:
Improve handling of nested page faults
Quoted 8 lines
Add checks for access type. Be less reliant on implicit semantics.
Signed-off-by Andres Lagar-Cavilla <[email protected]>Acked-by Tim Deegan <[email protected]>Committed-by Tim Deegan <[email protected]>It's doing a couple more before-and-after repros to be sure, but this looks like a plausible candidate. Full diff below.
Thanks Ian,
just to be sure, none of the following conditions apply on your test:
- hvm uses memory sharing
- hvm runs a backend pv driver
- hvm uses populate-on-demand.
If all the above apply, I can quickly put together a micro-patch to assert that the deal-breaker is
xen/arch/x86/hvm/hvm.c int hvm_hap_nested_page_fault(unsigned l · line 1292
Quoted 4 lines
xen/arch/x86/hvm/hvm.c +2
-1-if ( (p2mt == p2m_mmio_dm) || (p2mt == p2m_ram_ro) ) +if ( (p2mt == p2m_mmio_dm) || + (access_w && (p2mt == p2m_ram_ro)) )
Would you be able to test that?
Thanks again
Andres
Quoted 66 lines
I'm not an expert on this area. Perhaps someone could speculate what Windows is doing that is triggering one of these new checks ?
Ian.
# HG changeset patch
# User Andres Lagar-Cavilla <[email protected]> # Date 1323203509 0
# Node ID537ceb11d51ef60cd4abffd2f54de0ae0ca50008# Parent534b2a15e6695dfd8866c0ff626b002cbf57991aImprove handling of nested page faultsAdd checks for access type. Be less reliant on implicit semantics.
Signed-off-by Andres Lagar-Cavilla <[email protected]>Acked-by Tim Deegan <[email protected]>Committed-by Tim Deegan <[email protected]>diff -r
534b2a15e669-r537ceb11d51exen/arch/x86/hvm/hvm.cxen/arch/x86/hvm/hvm.c +0
-0@@ -1288,7 +1288,8 @@ int hvm_hap_nested_page_fault(unsigned l* If this GFN is emulated MMIO or marked as read-only, pass the fault
* to the mmio handler.
*/xen/arch/x86/hvm/hvm.c +3
-2-if ( (p2mt == p2m_mmio_dm) || (p2mt == p2m_ram_ro) ) +if ( (p2mt == p2m_mmio_dm) || + (access_w && (p2mt == p2m_ram_ro)) ) {if ( !handle_mmio () )hvm_inject_exception (TRAP_gp_fault,0 ,0 );@@ -1302,7 +1303,7 @@ int hvm_hap_nested_page_fault(unsigned lp2m_mem_paging_populate (v->domain, gfn);/* Mem sharing: unshare the page and try again */ -if ( p2mt == p2m_ram_shared ) +if ( access_w && (p2mt == p2m_ram_shared) ) {ASSERT (!p2m_is_nestedp2m (p2m));mem_sharing_unshare_page (p2m->domain, gfn,0 );@@ -1319,14 +1320,17 @@ int hvm_hap_nested_page_fault(unsigned l* a large page, we do not change other pages type within that large
* page.
*/xen/arch/x86/hvm/hvm.c +4
-2-paging_mark_dirty (v->domain,mfn_x (mfn)); -p2m_change_type (v->domain, gfn, p2m_ram_logdirty, p2m_ram_rw); +if ( access_w ) + { +paging_mark_dirty (v->domain,mfn_x (mfn)); + p2m_change_type(v->domain, gfn, p2m_ram_logdirty,
p2m_ram_rw);
+ }rc = 1; goto out_put_gfn; } /* Shouldn't happen: Maybe the guest was writing to a r/o grantmapping? */
xen/arch/x86/hvm/hvm.c +1
-1-if ( p2mt == p2m_grant_map_ro ) +if ( access_w && (p2mt == p2m_grant_map_ro) ) {gdprintk (XENLOG_WARNING ,"trying to write to read-only grant mapping\n" );
Hi,
Quoted 10 lines · Ian Jackson
Ian Jackson writes ("Re: [xen-unstable test] 11574: tolerable FAIL"):
Quoted 1 line
This is a host-specific, but deterministic, failure.
Improve handling of nested page faults
Add checks for access type. Be less reliant on implicit semantics.
Signed-off-by Andres Lagar-Cavilla <[email protected]>Acked-by Tim Deegan <[email protected]>Committed-by Tim Deegan <[email protected]>
Hmm, Didn't have to pull on that thread too hard to find it's not tied to anything. The access_* arguments to hvm_hap_nested_page_fault() aren't plumbed in on AMD:
ret = hvm_hap_nested_page_fault(gpa, 0, ~0ul, 0, 0, 0, 0);
so gating behaviour on them is not going to work so well. Sorry about that - I should definitely have caught this. (But Andres, did you test this, or any of your mm work, on AMD?)
The attached patch ought to fix it. Smoke-tested but I won't have good enough access to my test machines to check Windows installs before Thursday.
Cheers,
Tim.
# HG changeset patch
# User Tim Deegan <[email protected]>
SVM: Plumb NPT error-code bits into nested-fault access_X arguments.
xen/arch/x86/hvm/hvm.c +1 -2
@@ -1185,7 +1185,6 @@ void hvm_inject_exception(unsigned int tint hvm_hap_nested_page_fault (unsigned long gpa,bool_t gla_valid,unsigned long gla, -bool_t access_valid,bool_t access_r,bool_t access_w,bool_t access_x)
@@ -1234,7 +1233,7 @@ int hvm_hap_nested_page_fault(unsigned l mfn =get_gfn_type_access (p2m, gfn, &p2mt, &p2ma, p2m_guest,NULL );/* Check access permissions first, then handle faults */ -if ( access_valid && (mfn_x (mfn) !=INVALID_MFN ) ) +if (mfn_x (mfn) !=INVALID_MFN ) {int violation =0 ;/* If the access is against the permissions, then send to mem_event */
xen/arch/x86/hvm/svm/svm.c +7 -5
@@ -1143,7 +1143,7 @@ struct hvm_function_table * __init start }static void svm_do_nested_pgfault (struct vcpu *v, -struct cpu_user_regs *regs,paddr_t gpa) +struct cpu_user_regs *regs,uint32_t npfec,paddr_t gpa) {int ret;unsigned long gfn = gpa >>PAGE_SHIFT ;
@@ -1152,7 +1152,10 @@ static void svm_do_nested_pgfault(structp2m_access_t p2ma;struct p2m_domain *p2m =NULL ; - ret =hvm_hap_nested_page_fault (gpa,0 , ~0ul ,0 ,0 ,0 ,0 ); + ret =hvm_hap_nested_page_fault (gpa,0 , ~0ul , +1 ,/* All NPFs count as reads */ + npfec & PFEC_write_access, + npfec & PFEC_insn_fetch);if ( tb_init_done ) {
@@ -1181,7 +1184,7 @@ static void svm_do_nested_pgfault(structcase -1 :ASSERT (nestedhvm_enabled (v->domain) &&nestedhvm_vcpu_in_guestmode (v));/* inject #VMEXIT(NPF) into guest. */ -nestedsvm_vmexit_defer (v,VMEXIT_NPF , regs->error_code, gpa); +nestedsvm_vmexit_defer (v,VMEXIT_NPF , npfec, gpa);return ; }
@@ -2198,10 +2201,9 @@ void svm_vmexit_handler(struct cpu_user_case VMEXIT_NPF :perfc_incra (svmexits,VMEXIT_NPF_PERFC ); - regs->error_code = vmcb->exitinfo1;if ( cpu_has_svm_decode ) v->arch.hvm_svm.cached_insn_len = vmcb->guest_ins_len &0xf ; -svm_do_nested_pgfault (v, regs, vmcb->exitinfo2); +svm_do_nested_pgfault (v, regs, vmcb->exitinfo1, vmcb->exitinfo2); v->arch.hvm_svm.cached_insn_len =0 ;break ;
xen/arch/x86/hvm/vmx/vmx.c +0 -1
@@ -2106,7 +2106,6 @@ static void ept_handle_violation(unsigne qualification &EPT_GLA_VALID ?1 :0 , qualification &EPT_GLA_VALID ?__vmread (GUEST_LINEAR_ADDRESS ) : ~0ull , -1 ,/* access types are as follows */ qualification &EPT_READ_VIOLATION ?1 :0 , qualification &EPT_WRITE_VIOLATION ?1 :0 , qualification & EPT_EXEC_VIOLATION ? 1 : 0) )
xen/include/asm-x86/hvm/hvm.h +0 -1
@@ -409,7 +409,6 @@ int hvm_debug_op(struct vcpu *v, int32_tint hvm_hap_nested_page_fault (unsigned long gpa,bool_t gla_valid,unsigned long gla, -bool_t access_valid,bool_t access_r,bool_t access_w,bool_t access_x);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Andres Lagar-Cavilla
Acked-byQuoted 18 lines
Hi,
Quoted 10 lines · Ian Jackson
Ian Jackson writes ("Re: [xen-unstable test] 11574: tolerable FAIL"):
Quoted 1 line
This is a host-specific, but deterministic, failure.
Improve handling of nested page faults
Add checks for access type. Be less reliant on implicit semantics.
Signed-off-by Andres Lagar-Cavilla <[email protected]>Acked-by Tim Deegan <[email protected]>Committed-by Tim Deegan <[email protected]>Hmm, Didn't have to pull on that thread too hard to find it's not tied to anything. The access_* arguments to
hvm_hap_nested_page_fault()aren't plumbed in on AMD:
Quoted 5 lines
ret = hvm_hap_nested_page_fault(gpa, 0, ~0ul, 0, 0, 0, 0);so gating behaviour on them is not going to work so well. Sorry about that - I should definitely have caught this. (But Andres, did you test this, or any of your mm work, on AMD?)
Phew, thanks Tim. FWIW:
And, no, we haven't tested on AMD, because we depend critically on the support that has been built into EPT for paging/mem_access.
Andres
Quoted 9 lines
The attached patch ought to fix it. Smoke-tested but I won't have good enough access to my test machines to check Windows installs before Thursday.
Cheers,
Tim.
Tim Deegan writes ("Re: [Xen-devel] [xen-unstable test] 11574: tolerable FAIL"):
Quoted 10 lines
At 16:00 +0000 on 24 Jan (1327420844), Ian Jackson wrote:
Hmm, Didn't have to pull on that thread too hard to find it's not tied to anything. The access_* arguments tohvm_hap_nested_page_fault()aren't plumbed in on AMD:ret = hvm_hap_nested_page_fault(gpa, 0, ~0ul, 0, 0, 0, 0);so gating behaviour on them is not going to work so well. Sorry about that - I should definitely have caught this. (But Andres, did you test this, or any of your mm work, on AMD?)
In general it's probably unrealistic to ask every submitter to test every patch on two different systems...
Quoted 3 lines
The attached patch ought to fix it. Smoke-tested but I won't have good enough access to my test machines to check Windows installs before Thursday.
I'd be quite happy if this patch went into -unstable right away. We should be able to tell from the automatic tests whether it is awful :-) and the current situation is rather poor.
Also when we have got rid of this host-specific failure I can push my new test machinery branch which is intended to (mostly) prevent host-specific failures being regarded as heisenbugs.
Thanks,
Ian.
Quoted 6 lines · Ian Jackson
Tim Deegan writes ("Re: [Xen-devel] [xen-unstable test] 11574: tolerable FAIL"):
Quoted 5 lines
At 16:00 +0000 on 24 Jan (1327420844), Ian Jackson wrote:
Hmm, Didn't have to pull on that thread too hard to find it's not tied to anything. The access_* arguments tohvm_hap_nested_page_fault()aren't plumbed in on AMD:
Quoted 8 lines
Quoted 5 lines
ret = hvm_hap_nested_page_fault(gpa, 0, ~0ul, 0, 0, 0, 0);so gating behaviour on them is not going to work so well. Sorry about that - I should definitely have caught this. (But Andres, did you test this, or any of your mm work, on AMD?)
In general it's probably unrealistic to ask every submitter to test every patch on two different systems...
True.
Quoted 7 lines
Quoted 3 lines
The attached patch ought to fix it. Smoke-tested but I won't have good enough access to my test machines to check Windows installs before Thursday.
I'd be quite happy if this patch went into -unstable right away. We should be able to tell from the automatic tests whether it is awful :-) and the current situation is rather poor.
Done.
Cheers,
Tim.