Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3242509ybk; Mon, 18 May 2020 22:54:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEpl1eZ6KYTha5hXyecRYC1WOc4SO/ylFkT22XaHMy3zf87g14bARpaiO2OosRuhz6taRI X-Received: by 2002:aa7:cb94:: with SMTP id r20mr16977181edt.215.1589867675373; Mon, 18 May 2020 22:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589867675; cv=none; d=google.com; s=arc-20160816; b=sjUR7frVkc2njYLaVEPnfUC7+gx1GGzJtEUd1agDIuu6kZR7hKFjz3KwUvERqPWWci zEOe86MX4oEddndxubvIrL00uSqXAD73VhUt+Rsic/jxnm8rS+Dwv4ico6DXYflwhkWH bSpqPZt9y6I0/wcZ78pMXKCcNVM9At2jVR57lmf2/NVva87btxLTkCWOMN3jNY05SyPE vaKubg3xAe8cxiZNB7L6HZh594+M7wkD/E0ayiy4LXzaeQ1vHXuu/qcPvTkf5x4cHkUe IhdtCTm5yNrE17Lvkixo4XNHSqd3yhHIFT+dNu89x+uibnnUZIWj7bpBP0SoM0MxEGIV /4yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=F8sf/V9iwhvJqIQR3nLkO+0EgUVeCfEhuWkJ9NRPG2w=; b=C5v0xJzQkNV82qrnCfjxEpy/Rg1hAyfczq+6kVEAWjZwJG/O843dnRYgVae2rCK0J6 GiMsbpRVmzRm8BEirEqA6E9L3uGjO6k7d0CPEA4+PeolHPP490IwUcV+vcZFDy4exdrQ 9qZ2uqr3uR7j2VijJA4MV4NNXpOutRqxmOncIoNPlKSPlk8pCu4nR7+OqbJqT9sw5kWZ UacvRY6HNEsKtyNQaXoXVZhuIOBESfK31FxW1hfAqx9ATx40O9r9/93hLabg3kCgjsDW N8t+iRSM77YVOMTTyWm7SWS0rJTA2oeDjtKkuXgkiQDN/XxM0IpdsMAg3VcLaV3eE4vM qjJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bwEorBm9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si3073225eds.17.2020.05.18.22.54.13; Mon, 18 May 2020 22:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bwEorBm9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726892AbgESFwz (ORCPT + 99 others); Tue, 19 May 2020 01:52:55 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:45275 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726859AbgESFwy (ORCPT ); Tue, 19 May 2020 01:52:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589867573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F8sf/V9iwhvJqIQR3nLkO+0EgUVeCfEhuWkJ9NRPG2w=; b=bwEorBm9EQw79eMp4qBihqEGeUvvnUi3QvH9qmcAs/TH/a+clVR0CzusFxs/EP93EHhd9M sn3AHkwVJ1lGKYRlZR9/i5p6oMge5iaHzmRvJmAhDz2w4I/wXu3CWmobEzS+9qSGD8xWsh hFAoAcsSZgcJP/h8A2k1iWJ3/2Ifylk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-390-nxLGNieMMVafcALNrIp15Q-1; Tue, 19 May 2020 01:52:51 -0400 X-MC-Unique: nxLGNieMMVafcALNrIp15Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 083CB1005510; Tue, 19 May 2020 05:52:45 +0000 (UTC) Received: from [10.72.13.247] (ovpn-13-247.pek2.redhat.com [10.72.13.247]) by smtp.corp.redhat.com (Postfix) with ESMTP id 804DD2BFCC; Tue, 19 May 2020 05:52:39 +0000 (UTC) Subject: Re: [PATCH V2] ifcvf: move IRQ request/free to status change handlers To: Cindy Lu Cc: "Zhu, Lingshan" , Michael Tsirkin , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, dan.daly@intel.com, "Liang, Cunming" References: <1589270444-3669-1-git-send-email-lingshan.zhu@intel.com> <8aca85c3-3bf6-a1ec-7009-cd9a635647d7@redhat.com> <5bbe0c21-8638-45e4-04e8-02ad0df44b38@intel.com> <572ed6af-7a04-730e-c803-a41868091e88@redhat.com> From: Jason Wang Message-ID: Date: Tue, 19 May 2020 13:52:34 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/19 上午9:51, Cindy Lu wrote: > Hi ,Jason > It works ok in the latest version of qemu vdpa code , So I think the > patch is ok. > Thanks > Cindy Thanks for the testing, (btw, we'd better not do top posting when discuss in the community). So, Acked-by: Jason Wang > On Wed, May 13, 2020 at 3:18 PM Jason Wang wrote: >> >> On 2020/5/13 下午12:42, Zhu, Lingshan wrote: >>> >>> On 5/13/2020 12:12 PM, Jason Wang wrote: >>>> On 2020/5/12 下午4:00, Zhu Lingshan wrote: >>>>> This commit move IRQ request and free operations from probe() >>>>> to VIRTIO status change handler to comply with VIRTIO spec. >>>>> >>>>> VIRTIO spec 1.1, section 2.1.2 Device Requirements: Device Status Field >>>>> The device MUST NOT consume buffers or send any used buffer >>>>> notifications to the driver before DRIVER_OK. >>>> >>>> This comment needs to be checked as I said previously. It's only >>>> needed if we're sure ifcvf can generate interrupt before DRIVER_OK. >>>> >>>> >>>>> Signed-off-by: Zhu Lingshan >>>>> --- >>>>> changes from V1: >>>>> remove ifcvf_stop_datapath() in status == 0 handler, we don't need >>>>> to do this >>>>> twice; handle status == 0 after DRIVER_OK -> !DRIVER_OK handler >>>>> (Jason Wang) >>>> >>>> Patch looks good to me, but with this patch ping cannot work on my >>>> machine. (It works without this patch). >>>> >>>> Thanks >>> This is strange, it works on my machines, let's have a check offline. >>> >>> Thanks, >>> BR >>> Zhu Lingshan >> >> I give it a try with virito-vpda and a tiny userspace. Either works. >> >> So it could be an issue of qemu codes. >> >> Let's wait for Cindy to test if it really works. >> >> Thanks >> >>