qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v3 8/8] vhost-vdpa: introduce vhost-vdpa net client


From: Jason Wang
Subject: Re: [RFC v3 8/8] vhost-vdpa: introduce vhost-vdpa net client
Date: Wed, 3 Jun 2020 16:43:08 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0


On 2020/6/3 下午4:19, Cindy Lu wrote:
+static void vhost_vdpa_cleanup(NetClientState *nc)
+{
+    VhostVDPAState *s = DO_UPCAST(VhostVDPAState, nc, nc);
+
+    if (s->vhost_net) {
+        vhost_net_cleanup(s->vhost_net);
+        g_free(s->vhost_net);
+        s->vhost_net = NULL;
+    }
+
+    qemu_purge_queued_packets(nc);
Why this is needed?

Thanks

This is to clean the packet in the queue while the vdpa remove,  I
will double check this part


Note we don't have a software backup driver for qemu currently (we probably need one in the future).

So we can't fallback into userspace which means the packet can not be queued by qemu.

Thanks




reply via email to

[Prev in Thread] Current Thread [Next in Thread]