From patchwork Thu Dec 26 04:36:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuri Benditovich X-Patchwork-Id: 11310339 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D95C14E3 for ; Thu, 26 Dec 2019 04:37:38 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EE1782075E for ; Thu, 26 Dec 2019 04:37:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=daynix-com.20150623.gappssmtp.com header.i=@daynix-com.20150623.gappssmtp.com header.b="gB67Jbqw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE1782075E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=daynix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:51114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikKu0-00010h-MS for patchwork-qemu-devel@patchwork.kernel.org; Wed, 25 Dec 2019 23:37:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54000) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikKtO-0000AJ-V6 for qemu-devel@nongnu.org; Wed, 25 Dec 2019 23:37:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ikKtO-0002sn-1S for qemu-devel@nongnu.org; Wed, 25 Dec 2019 23:36:58 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:45311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ikKtN-0002rM-KQ for qemu-devel@nongnu.org; Wed, 25 Dec 2019 23:36:57 -0500 Received: by mail-wr1-x441.google.com with SMTP id j42so22753592wrj.12 for ; Wed, 25 Dec 2019 20:36:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=viF/XLB0Y6COYGFBVmDNTIBzWXJQ18Ao4lNa3AG2v7s=; b=gB67JbqwD38wZkCs514b9VRZu+cMQJ/yfKCDMHetkFtbDeUQ3LdV+NMXva/+t2PlFh G5drnsMUQVZ2uCq2NvD0/tXiiBfsFBBSVSkUgiPUcxcwzvlGNciVPwZyOdR+zrwVVPpi ZFH+JyS0VNrkhyyX/Vrmd/T/sHX6ZfYCG5iiirfnHc0bxqSVppyOD61+0CPwlqYKiay8 Hl3PLVQfwVtXnxQzm0PUN85Mepm1EBu23vKFbqqyuOBRoY7H+DqBg5/TkZAVZIU/XHfU iQhjbIPnHXl9CJj+vRldgwRxISdFIwtNqIn2HDB9gzP40hqlEFydcJUMLpZi0srU59bG mcWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=viF/XLB0Y6COYGFBVmDNTIBzWXJQ18Ao4lNa3AG2v7s=; b=ajWCvgJ99vqif4Nyuh3SpZuqy++dWH3rruoPw1xh8o1YPDt0TtYCV4Nap65EmToj2/ hWLQU+ECdtz/CS0xaejuyHi83llHsi+2P5ZKmqN+nGDQ9VC0xmjumfmoi2xDaoYzu2sg qBNPAnaJYx+wHjj8dQFXAG2ZpNXT43TBWN9flJ6RE78CFiAh1TRJsJu7mdNuWOwrRbCm 1bIKDkDF/8SnhFiBG9+mADY5hEB6RHi8kjD4Itp/lMGVUepyJmFC0Xm4+nqQGMArt6vY rUPaNZD5f7cibu3ZgMt7BU0AGIYdraP3C7YRpHwTUMLtVv+cagLJ3Hv0lsBxnI3z2+gs JRiw== X-Gm-Message-State: APjAAAVhuDrExN8anCjcT3/rbealIn/sVddvNbldqGt/c3rvRH0KgQHc nwlffZro6tOcJUtcR2zEbrDzXQ== X-Google-Smtp-Source: APXvYqwdvuOks45B4jCXzN/8U+F7tKZZXUH0lzBAZlp1ivKuTPjjBZgtRpdW63pN2BmA7+bUuvxA6A== X-Received: by 2002:adf:eb51:: with SMTP id u17mr43103987wrn.29.1577335016226; Wed, 25 Dec 2019 20:36:56 -0800 (PST) Received: from f2.redhat.com (bzq-79-182-106-171.red.bezeqint.net. [79.182.106.171]) by smtp.gmail.com with ESMTPSA id a1sm29428800wrr.80.2019.12.25.20.36.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Dec 2019 20:36:55 -0800 (PST) From: Yuri Benditovich To: mst@redhat.com, jasowang@redhat.com, qemu-devel@nongnu.org Subject: [PATCH 0/2] Solve problem of hot removal of virtio-net-pci Date: Thu, 26 Dec 2019 06:36:47 +0200 Message-Id: <20191226043649.14481-1-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yan@daynix.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" There is regression of hotplug removal of virtio-net-pci on q35 introduced long time ago in 3.0.0 with commit: 48564041a73adbbff52834f9edbe3806fceefab7 exec: reintroduce MemoryRegion caching virtio-net does not destroy some of caching resources upon hot unplug and on further hot plug the device with the same name can not be added. These 2 patches solve the problem. Yuri Benditovich (2): virtio: reset region cache when on queue deletion virtio-net: delete also control queue when TX/RX deleted hw/net/virtio-net.c | 3 ++- hw/virtio/virtio.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)