On Tue, Dec 05, 2017 at 02:27:18PM +0800, Changpeng Liu wrote: > @@ -798,6 +801,70 @@ vu_set_slave_req_fd(VuDev *dev, VhostUserMsg *vmsg) > } > > static bool > +vu_get_config(VuDev *dev, VhostUserMsg *vmsg) > +{ > + int ret = -1; > + > + if (dev->iface->get_config) { > + ret = dev->iface->get_config(dev, vmsg->payload.config.region, > + vmsg->payload.config.size); > + } > + > + if (ret) { > + /* resize to zero to indicate an error to master */ > + vmsg->size = 0; > + }
Please document this error case in vhost-user.txt. I don't remember reading about it.
signature.asc
Description: PGP signature