Skip to contentSkip to conversation

vhost-user:is miss command VHOST_NET_SET_BACKEND?

Qemu-devel Linhaifeng 2 participants 3 messages Sep 17, 2014

lore
Share & tools
lore

Linhaifeng

author
#0 lore raw

Hi,

The VHOST_NET_SET_BACKEND could tell the user when the backend is created or destroyed.is usefull for the user but this command is lost in the protocol

author
#1 lore raw

sorry it is not need to add VHOST_NET_SET_BACKEND.I found i can reset in VHOST_GET_VRING_BASE because before the backend cleanup it will send VHOST_GET_VRING_BASE.

Quoted 7 lines · Linhaifeng

Hi,

The VHOST_NET_SET_BACKEND could tell the user when the backend is created or destroyed.is usefull for the user but this command is lost in the protocol

#2 lore raw

I guess it's a workaround, but I think it's an ugly one. Let's add this command properly.

What's the best way to do this?
A feature bit? Or just add a new command and assume remote ignores what it can't handle?

Nikolay, docs/specs/vhost-user.txt seems silent on this aspect. Can you send a patch documenting it please?

Quoted 10 lines · Linhaifeng

sorry it is not need to add VHOST_NET_SET_BACKEND.I found i can reset in VHOST_GET_VRING_BASE because before the backend cleanup it will send VHOST_GET_VRING_BASE.

Quoted 7 lines · Linhaifeng

Hi,

The VHOST_NET_SET_BACKEND could tell the user when the backend is created or destroyed.is usefull for the user but this command is lost in the protocol