From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [dpdk-stable] [PATCH v6 1/6] vhost: fix windows vm hang Date: Thu, 13 Oct 2016 14:18:51 +0800 Message-ID: <20161013061851.GZ10323@yliu-dev.sh.intel.com> References: <1471319402-112998-1-git-send-email-zhihong.wang@intel.com> <1474336817-22683-1-git-send-email-zhihong.wang@intel.com> <1474336817-22683-2-git-send-email-zhihong.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, maxime.coquelin@redhat.com, thomas.monjalon@6wind.com, stable@dpdk.org To: Zhihong Wang Return-path: Content-Disposition: inline In-Reply-To: <1474336817-22683-2-git-send-email-zhihong.wang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Sep 19, 2016 at 10:00:12PM -0400, Zhihong Wang wrote: > This patch fixes a Windows VM compatibility issue in DPDK 16.07 vhost code > which causes the guest to hang once any packets are enqueued when mrg_rxbuf > is turned on by setting the right id and len in the used ring. > > As defined in virtio spec 0.95 and 1.0, in each used ring element, id means > index of start of used descriptor chain, and len means total length of the > descriptor chain which was written to. While in 16.07 code, index of the > last descriptor is assigned to id, and the length of the last descriptor is > assigned to len. > > How to test? > > 1. Start testpmd in the host with a vhost port. > > 2. Start a Windows VM image with qemu and connect to the vhost port. > > 3. Start io forwarding with tx_first in host testpmd. > > For 16.07 code, the Windows VM will hang once any packets are enqueued. > > Cc: > Signed-off-by: Zhihong Wang Applied to dpdk-next-virtio (this patch only). Thanks. --yliu