Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6717770ybh; Thu, 8 Aug 2019 04:37:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQUTfljaVLUvUspL3UVCAdku9q6CMsdw3oQAJTe2GXnd8FbIHiwHO/ScRS8DlI4kesA4tM X-Received: by 2002:a65:62c4:: with SMTP id m4mr12088140pgv.243.1565264272508; Thu, 08 Aug 2019 04:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565264272; cv=none; d=google.com; s=arc-20160816; b=oxMn9uKNM9UY+vUaeLQDQsACyAmKaqb1HUmJ81kQMFSDTWKkmu3qZ2vA4Evx8G14gs RZ9iGldX9i6YGHTpra7xChvUJlXKCtDS5CYvOhzP4HgUXlzutkQ1xgbxsxm2/kyaxUqi edynEFMMyK6rmShqALe2f3RU24ABKRu6awHbm6tvQ1cE6ejIA+aj/NyqUv1vABeM+3oQ sYCjG3SlYokQjk4vGiJfijhF6sZsc1CbDUsmxTHqq/3Hvk1XiACd1kPiUY0c2qUjGxTu i6nlKJgqZeRrYgf1wPQgm53JdickN9uoOYNVhO/YweAk5Ag4jmBlQSuzgn3MJ/U2ifkK /zBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XHhiSZNxovYit00Cq49PIroRC/U6S3cKhfzXUBPoXjc=; b=kA+OZPendKzgb5sNWeD/uKXhwpXFCoYFy0fKiJ/6WbtMCfIHbnryqejNGkpO/Tg5BX +3aCo/UI7fkNVCvauZibI0BhHe0VBeFgQflHF293+V4Z+S7zebV+cvEEbhUkQL2inly5 NvMWmg8i9Q3IYmPqWVYEc3VUzO231UWfWyy2ZIn25rjSb+NeTRfAnDIGrH4gWsORWD3W oKaRPx3iY2jcZ30ffHeNS7mOtx47++SDb30SzbKCodLqPOLSycsH1J99ncFa9PwOHYhe 8PhDF9sYcwr20EhawCf2NpigDTG6CrVmtZlZib8AJx70Y1y36W4y+zZqDpu11cMdm6p5 tdOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cx7si1751236pjb.51.2019.08.08.04.37.37; Thu, 08 Aug 2019 04:37:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729912AbfHHLgN (ORCPT + 99 others); Thu, 8 Aug 2019 07:36:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40670 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728693AbfHHLgN (ORCPT ); Thu, 8 Aug 2019 07:36:13 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1E92130EA191; Thu, 8 Aug 2019 11:36:13 +0000 (UTC) Received: from dhcp201-121.englab.pnq.redhat.com (unknown [10.65.16.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 625835DA5B; Thu, 8 Aug 2019 11:36:08 +0000 (UTC) From: Pankaj Gupta To: amit@kernel.org, mst@redhat.com Cc: arnd@arndb.de, gregkh@linuxfoundation.org, virtualization@lists.linux-foundation.org, jasowang@redhat.com, linux-kernel@vger.kernel.org, pagupta@redhat.com Subject: [PATCH v2 0/2] virtio_console: fix replug of virtio console port Date: Thu, 8 Aug 2019 17:06:04 +0530 Message-Id: <20190808113606.19504-1-pagupta@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 08 Aug 2019 11:36:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series fixes the issue with unplug/replug of a port in virtio console device, which fails with an error "Error allocating inbufs\n". Patch 2 makes virtio packed ring code compatible with virtio split ring. Tested the packed ring code with the qemu virtio 1.1 device code posted here [1]. Changes from v1[2] ----- Make virtio packed ring code compatible with split ring - [Michael] [1] https://marc.info/?l=qemu-devel&m=156471883703948&w=2 [2] https://lkml.org/lkml/2019/3/4/517 Pankaj Gupta (2): virtio_console: free unused buffers with port delete virtio_ring: packed ring: fix virtqueue_detach_unused_buf drivers/char/virtio_console.c | 14 +++++++++++--- drivers/virtio/virtio_ring.c | 5 +++++ 2 files changed, 16 insertions(+), 3 deletions(-) -- 2.21.0