From nobody Mon Feb 9 19:08:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1667669453; cv=none; d=zohomail.com; s=zohoarc; b=a1QqxXO7gZnfJxYSdfa0WwhrOnOpNy52QyO5OFmLWGlfxtQawhw5YZWe32+Ryj5Inn8E7GmtbcAE/tvAP+KfQuQ3ye27r8bW4GGyJK+SqvDgYBnFCBLwRyJg2U7jX2bZBnQto0bDJm97T2XxQ2iVU9kpAW4UeRVQLn4KnHP6PMc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667669453; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6uK+4zsl0JYm6l7lOzD9Nix6fgmHw0181ZM3BtJtePE=; b=Ay02WoredJb5yvmwkkzdGuKaErUU5ae/P/yxq2KelQ/pFc2/9otxU4MiwI6g9jhMHtHfs+R+HT9H+HXXXHU393Y40mrBLHrPn6TxgXF3DGbnxoQgBgDwvNOzlWuWL7jlpPgQTzzDpxTXI5I7iYo06gZ+bAuYOe1eh1wUAIbW3QI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 166766945305812.210881752999626; Sat, 5 Nov 2022 10:30:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orMqA-0000PR-Kd; Sat, 05 Nov 2022 13:20:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orMnQ-00073g-WC for qemu-devel@nongnu.org; Sat, 05 Nov 2022 13:17:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orMnK-0007Sm-Et for qemu-devel@nongnu.org; Sat, 05 Nov 2022 13:17:23 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-160-iuRQl0Q-PY-8jzf8ZYxdOA-1; Sat, 05 Nov 2022 13:17:20 -0400 Received: by mail-wm1-f71.google.com with SMTP id bi19-20020a05600c3d9300b003cf9d6c4016so1297775wmb.8 for ; Sat, 05 Nov 2022 10:17:20 -0700 (PDT) Received: from redhat.com ([2.52.152.137]) by smtp.gmail.com with ESMTPSA id o15-20020a056000010f00b0023691d62cffsm2612019wrx.70.2022.11.05.10.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Nov 2022 10:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667668641; 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: in-reply-to:in-reply-to:references:references; bh=6uK+4zsl0JYm6l7lOzD9Nix6fgmHw0181ZM3BtJtePE=; b=RvkvNBatyDLBB6emHVyXwuBQBNd7Z4XfkilAA6WgsJUh3puIU3YilnvIjmX/cbYJeQtUTw UA1pqvzo7j9jc9D0072d743REztAxMKQBE0wLdmJakMQ+exhvUN5/YiXNyKgGU3QeFVxoD bQnZnZtI8lXiwu2Y8tECRle3gZSzXhY= X-MC-Unique: iuRQl0Q-PY-8jzf8ZYxdOA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6uK+4zsl0JYm6l7lOzD9Nix6fgmHw0181ZM3BtJtePE=; b=ni4QK3jeTUqjWGxNCV8s+mOe9LylwJA56rMExShQryXBVPZrRgozG439quvMT5SVeX 0xEDwzWQG6G6Nfd35AqkPuvQTngorjUTIT8qjLmvQHX4zWjKIJxC0qyun2M6n+CY31C3 NvWzsLi//LT+tsOIJqa0M5CqhlyErvIHUoEF/crZwh3XjvMctUg+CpqUIEZGSeRxgH1R bdBQJbeHQ2kMWU4FNmSn48x5nKu5uMNkApEYdju0E6NRd5+Aan8SEiq+vjxhbD6aIsvt GFHX0iirFbZcN3i0peqqUJghXnuz0FvOrL18VH8jicSacJD4XiBlzNjVoegv6O71ZCWO vIHA== X-Gm-Message-State: ACrzQf15ziO47ix3k33ayrWHKZWtCZDywqhblMpQkrT4n/mc60APV6j7 41acgoUZFq9EEPb8/+0/pCr7aHwUuNA2Uznyg9s8wIjJQ+V3ImmgPEENBx+VhdUydd0QeSBWgKM KtkCGijWITWkpYJiCXFQZvqeJ2pN/dHytMTQQ2XEin0xrqAmL5GtvzhQkglvD X-Received: by 2002:a1c:f002:0:b0:3b4:dda4:b58f with SMTP id a2-20020a1cf002000000b003b4dda4b58fmr36840228wmb.184.1667668639146; Sat, 05 Nov 2022 10:17:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6WALWJr5IoJ49w80S9C5GazLgXRp6iL8RPiHyR5IBhfUUytaRIBmGhmku+kq+dsuovADcoKA== X-Received: by 2002:a1c:f002:0:b0:3b4:dda4:b58f with SMTP id a2-20020a1cf002000000b003b4dda4b58fmr36840216wmb.184.1667668638924; Sat, 05 Nov 2022 10:17:18 -0700 (PDT) Date: Sat, 5 Nov 2022 13:17:16 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Kangjie Xu , Xuan Zhuo , Jason Wang Subject: [PULL v3 37/81] virtio-pci: support queue enable Message-ID: <20221105171116.432921-38-mst@redhat.com> References: <20221105171116.432921-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221105171116.432921-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.045, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1667669454767100003 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Kangjie Xu PCI devices support device specific vq enable. Based on this function, the driver can re-enable the virtqueue after the virtqueue is reset. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id: <20221017092558.111082-7-xuanzhuo@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index d4f2ffe986..855718d586 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -1342,6 +1342,7 @@ static void virtio_pci_common_write(void *opaque, hwa= ddr addr, proxy->vqs[vdev->queue_sel].used[0]); proxy->vqs[vdev->queue_sel].enabled =3D 1; proxy->vqs[vdev->queue_sel].reset =3D 0; + virtio_queue_enable(vdev, vdev->queue_sel); } else { virtio_error(vdev, "wrong value for queue_enable %"PRIx64, val= ); } --=20 MST