grant table map error in __gnttab_map_grant_ref
A message that is not in the archive (sent off-list or not yet received): [email protected]
Andres Lagar-Cavilla
Acked-byQuoted 13 lines
Date: Sat, 04 Feb 2012 02:43:05 +0000
From: Liuyongan <[email protected]>
To: "[email protected]" <[email protected]>
Cc: Wang Liang <[email protected]>, Zhanghaoyu
<[email protected]>, Qianhuibin <[email protected]>, hanweidong <[email protected]>
Subject: [Xen-devel] [PATCH] grant table map error in
__gnttab_map_grant_ref
Message-ID:<E4ABEE53CC34664FA3F0BD8AEAF50A191CEFCDA6@szxeml534-mbx.china.huawei.com>Content-Type: text/plain; charset="utf-8"
Quoted 8 lines
In file
grant_table.cfunction__gnttab_map_grant_ref, if__get_paged_framefailed, the effect of_set_statuspreviously called should be rollback, so the flagGTF_readingand_GTF_writingwill be recovered.Signed-off-by Haoyu Zhang<[email protected]>; LiangWang<[email protected]>
Hi,
great fix! Would you mind submitting the same fix to the unstable tree?
Quoted 284 lines
diff -r
cbed91e1c878xen-4.1.2/xen/common/grant_table.cxen-4.1.2/xen/common/grant_table.c +1
-1@@ -566,7 +566,7 @@ gfn = sha1 ? sha1->frame : sha2->full_page.frame; rc =__get_paged_frame (gfn, &frame, !!(op->flags & GNTMAP_readonly), rd);if ( rc != GNTST_okay ) - goto unlock_out; + goto unlock_out_clear; act->gfn = gfn; act->domid = ld->domain_id;act->frame = frame;xen-4.1.2/xen/common/grant_table.c +2
-2@@ -721,7 +721,8 @@if ( op->flags & GNTMAP_host_map ) act->pin -= (op->flags & GNTMAP_readonly) ? GNTPIN_hstr_inc : GNTPIN_hstw_inc; - + + unlock_out_clear:if ( !(op->flags & GNTMAP_readonly) && !(act->pin & (GNTPIN_hstw_mask|GNTPIN_devw_mask)) )gnttab_clear_flag (_GTF_writing, status); -------------- next part --------------A non-text attachment was scrubbed...
Name: grant_table.diff
Type: application/octet-stream
Size: 926 bytes
Desc: grant_table.diff
URL:
<http://lists.xensource.com/archives/html/xen-devel/attachments/20120204/686972ee/attachment.obj>------------------------------
Message: 3
Date: Fri, 3 Feb 2012 21:57:03 -0500
From: "Michael A. Collins" <[email protected]>
To: <[email protected]>
Subject: [Xen-devel] xen-unstable stubdom build errorversion(3432abcf9380)Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"parent: 24691:3432abcf9380 tip
Fixx86_32build
branch: default
commit: 4 modified, 1439 unknown
update: (current)
/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c: In function ?qemu_aio_wait?:/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c:147:20: error: macro "remove_waiter" requires 2 arguments, but only 1 given/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c:147:5: error: ?remove_waiter? undeclared (first use in this function)/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c:147:5: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [block-vbd.o] Error 1So I checked some simple stuff out and found this:
extras/mini-os/fbfront.c:572:remove_waiter(w, fbfront_queue);extras/mini-os/lib/sys.c:237:remove_waiter(w, console_queue);extras/mini-os/lib/sys.c:817: remove_waiter(netfront_w,netfront_queue);extras/mini-os/lib/sys.c:818:remove_waiter(event_w, event_queue);extras/mini-os/lib/sys.c:819: remove_waiter(blkfront_w,blkfront_queue);extras/mini-os/lib/sys.c:820: remove_waiter(xenbus_watch_w,xenbus_watch_queue);extras/mini-os/lib/sys.c:821: remove_waiter(kbdfront_w,kbdfront_queue);extras/mini-os/lib/sys.c:822:remove_waiter(console_w, console_queue);extras/mini-os/blkfront.c:326:remove_waiter(w, blkfront_queue);extras/mini-os/blkfront.c:417:remove_waiter(w, blkfront_queue);extras/mini-os/blkfront.c:473:remove_waiter(w, blkfront_queue);extras/mini-os/xenbus/xenbus.c:88: remove_waiter(w,xenbus_watch_queue);extras/mini-os/xenbus/xenbus.c:444: remove_waiter(w,
req_info[id].waitq); extras/mini-os/include/wait.h:60:#defineremove_waiter(w, wq)do { \stubdom/ioemu/block-vbd.c:147:remove_waiter(w);tools/qemu-xen-traditional-dir-remote/block-vbd.c:147:remove_waiter(w);tools/ioemu-remote/block-vbd.c:147:remove_waiter(w);tools/qemu-xen-traditional-dir/block-vbd.c:147:remove_waiter(w);tools/ioemu-dir/block-vbd.c:147:remove_waiter(w);It appears to me that possibly I need to either add a queue like the above
sys.ccalls, or define a new macro that does not need a queue? Mike------------------------------
Message: 4
Date: Fri, 3 Feb 2012 22:29:25 -0500
From: "Michael A. Collins" <[email protected]>
To: <[email protected]>
Subject: Re: [Xen-devel] xen-unstable stubdom build errorversion(3432abcf9380)Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"Quoted 14 lines
-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Michael A. Collins
Sent: Friday, February 03, 2012 9:57 PM
To: [email protected]
Subject: [Xen-devel] xen-unstable stubdom build error version(3432abcf9380)parent: 24691:3432abcf9380 tip
Fixx86_32build
branch: default
commit: 4 modified, 1439 unknown
update: (current)Quoted 10 lines
/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c: In function ?qemu_aio_wait?:/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c:147:20: error: macro "remove_waiter" requires 2 arguments, but only 1 given/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c:147:5: error:
?remove_waiter? undeclared (first use in this function)/usr/src/xen-4.2/stubdom/ioemu/block-vbd.c:147:5: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [block-vbd.o] Error 1I went ahead and cloned into a new directory and all is right with the world again.
Mike------------------------------
Message: 5
Date: Sat, 4 Feb 2012 03:52:40 +0000
From: xen.org <[email protected]>
To: <[email protected]>
Cc: [email protected]
Subject: [Xen-devel] [xen-unstable test] 11868: tolerable FAIL
Message-ID: <[email protected]>
Content-Type: text/plainflight 11868 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/11868/Failures :-/ but no regressions.
Tests which are failing intermittently (not blocking):
test-amd64-amd64-xl-sedf-pin 14 guest-localmigrate/x10 fail pass in
11864Regressions which are regarded as allowable (not blocking):
test-i386-i386-win 14 guest-start.2 fail like
11864Tests which did not succeed, but are not blocking:
test-i386-i386-xl-qemuu-winxpsp3 7 windows-install fail never
pass
test-amd64-amd64-xl-qemuu-winxpsp3 7 windows-install fail never
pass
test-amd64-amd64-xl-qemuu-win7-amd64 7 windows-install fail never
pass
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail never
pass
test-amd64-amd64-xl-pcipt-intel 9 guest-start fail never
pass
test-amd64-i386-qemuu-rhel6hvm-amd 7 redhat-install fail never
pass
test-amd64-i386-rhel6hvm-intel 11 leak-check/check fail never
pass
test-amd64-i386-rhel6hvm-amd 11 leak-check/check fail never
pass
test-amd64-amd64-xl-win7-amd64 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 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-win-vcpus1 16 leak-check/check fail never
pass
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never
pass
test-amd64-i386-xl-win7-amd64 13 guest-stop fail never
pass
test-amd64-i386-xl-win-vcpus1 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
passversion targeted for testing:
xen3432abcf9380
baseline version:
xen3432abcf9380jobs:
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-i386-qemuu-rhel6hvm-amd fail test-amd64-amd64-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-amd64-xl-pcipt-intel fail test-amd64-i386-rhel6hvm-intel fail test-amd64-i386-qemuu-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 fail 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-amd64-xl-qemuu-winxpsp3 fail test-i386-i386-xl-qemuu-winxpsp3 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/imagesLogs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logsTest harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summaryPublished tested tree is already up to date.
------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develEnd of Xen-devel Digest, Vol 84, Issue 82
*****************************************