Received: from eggs.gnu.org ([2001:4830:134:3::10]:48879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBItu-0002nZ-Qd for qemu-devel@nongnu.org; Tue, 22 Dec 2015 04:06:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBItq-00029x-Rw for qemu-devel@nongnu.org; Tue, 22 Dec 2015 04:06:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBItq-00029r-Mh for qemu-devel@nongnu.org; Tue, 22 Dec 2015 04:06:30 -0500 Date: Tue, 22 Dec 2015 14:36:22 +0530 (IST) From: P J P In-Reply-To: Message-ID: References: <1450696004-47043-1-git-send-email-yanmiaobest@gmail.com> <1450696004-47043-2-git-send-email-yanmiaobest@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 1/3] net/vmxnet3: return 1 on device activation failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Miao Yan Cc: Dmitry Fleytman , Jason Wang , QEMU +-- On Tue, 22 Dec 2015, Miao Yan wrote --+ | > If '1' indicates the error, the 'default:' case in the same switch needs to be | > updated too. | | '1' indicates an error on device activation. Not sure about the 'unknown | command' case. Ideally it should be same, inconsistent return codes wouldn't be helpful. | Linux driver uses VXMNET3_READ_BAR1_REG() which calls readl(). | That should be an indication that the driver expects 32bit values. Right. | But the prototype in MemoryRegionOps requires uint64_t. That is odd. It does not seem right to use uint64_t for 32bit values, and then return a negative(-1) value. @Dmitry...? -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F