From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D667A0A02; Thu, 14 Jan 2021 20:08:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D4645140EA6; Thu, 14 Jan 2021 20:08:20 +0100 (CET) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by mails.dpdk.org (Postfix) with ESMTP id 569F2140EA5 for ; Thu, 14 Jan 2021 20:08:19 +0100 (CET) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 10EJ1vH7029420 for ; Thu, 14 Jan 2021 14:08:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=GICB9KioxYo11a+pfa4l4ZQ3DKCT/joTyjdpoqpdxkU=; b=VYA/EnIPD84exph7Lkn0WSLn0Qmv8XxQrBAuWCx31I6YqO6y8DU6VZSnv1BfQTd2r6si WrUYkoy2tfZzAo9wiWeQH6G0042Gs8ge9aUcFG6t4ML5spF/f95e/cRcf3Mx8doO2Yhh 6R4npG6FUpm+4kCOiGvKf1yFDbhxNFk8X5pioDOsGadC770hhkTHV5m5m5NtuSkE9vtT 3Vn+4/H1JrU1UCI327s1qTccHp8iCpg76xDspS9ayjBQSfXMvde18Oug05EFW1eTiaxz UyBR8UTCmnd3O86qHqfwk5gY4bNWPFEXM/450Iq40mj24MDM0xYqfd9ZT0990DIefTRS DA== Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0b-001b2d01.pphosted.com with ESMTP id 362upg8884-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Jan 2021 14:08:18 -0500 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 10EImEG4017393 for ; Thu, 14 Jan 2021 19:03:18 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma03dal.us.ibm.com with ESMTP id 35y449s2r0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Jan 2021 19:03:17 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 10EJ3GHU34603466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 14 Jan 2021 19:03:16 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BFB8C6A04F for ; Thu, 14 Jan 2021 19:03:16 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A6B496A058 for ; Thu, 14 Jan 2021 19:03:16 +0000 (GMT) Received: from Davids-MBP.randomparity.org (unknown [9.163.92.50]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP for ; Thu, 14 Jan 2021 19:03:16 +0000 (GMT) To: dev@dpdk.org References: <20201218073851.93609-1-chenbo.xia@intel.com> <20210114061411.39166-1-chenbo.xia@intel.com> <20210114061411.39166-9-chenbo.xia@intel.com> From: David Christensen Message-ID: <92abbbbb-b6bf-3981-a198-97ad50f1a040@linux.vnet.ibm.com> Date: Thu, 14 Jan 2021 11:03:16 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210114061411.39166-9-chenbo.xia@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-14_07:2021-01-14, 2021-01-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 clxscore=1015 suspectscore=0 spamscore=0 impostorscore=0 adultscore=0 mlxscore=0 malwarescore=0 mlxlogscore=692 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101140107 Subject: Re: [dpdk-dev] [PATCH v2 8/9] test/vfio_user: introduce functional test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/13/21 10:14 PM, Chenbo Xia wrote: > This patch introduces functional test for vfio_user client and > server. Note that the test can only be run with server and client > both started and server should be started first. Receiving a build warning on RHEL 8.3 (gcc 8.3.1) for POWER with this patch: ../app/test/test_vfio_user.c: In function ‘test_dev_cfg_rw’: ../app/test/test_vfio_user.c:60:3: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration] memcpy(buf, loc, count); ^~~~~~ ../app/test/test_vfio_user.c:60:3: warning: incompatible implicit declaration of built-in function ‘memcpy’ ../app/test/test_vfio_user.c:60:3: note: include ‘’ or provide a declaration of ‘memcpy’ ../app/test/test_vfio_user.c:18:1: +#include ../app/test/test_vfio_user.c:60:3: memcpy(buf, loc, count); ^~~~~~ ../app/test/test_vfio_user.c:64:2: warning: incompatible implicit declaration of built-in function ‘memcpy’ memcpy(loc, buf, count); ^~~~~~ ../app/test/test_vfio_user.c:64:2: note: include ‘’ or provide a declaration of ‘memcpy’ ../app/test/test_vfio_user.c: In function ‘test_get_mem’: ../app/test/test_vfio_user.c:192:2: warning: incompatible implicit declaration of built-in function ‘memcpy’ memcpy(server_mem->entry, mem->entry, entry_sz); ^~~~~~ ../app/test/test_vfio_user.c:192:2: note: include ‘’ or provide a declaration of ‘memcpy’ ../app/test/test_vfio_user.c: In function ‘test_create_device’: ../app/test/test_vfio_user.c:226:6: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] if (strcmp(sock, test_sock)) { ^~~~~~ Also, when running vfio_user_autotest_server, I'm unable to exit the application with CTRL-C directly. If a run a second test with vfio_user_autotest_client then the server test runs to completion without an error and I'm able to exit the test app normally. Any way to get out of the server test without running the matching client test? Dave