virtio: clarify feature negotiation failure
Change-Id: Ifb1566033569af0b3cf4a9dfbc8094a9883c7622 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/420980 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
eeb1650c06
commit
c9e5777ede
@ -266,6 +266,9 @@ virtio_negotiate_features(struct virtio_dev *dev, uint64_t req_features)
|
||||
virtio_dev_set_status(dev, VIRTIO_CONFIG_S_FEATURES_OK);
|
||||
if (!(virtio_dev_get_status(dev) & VIRTIO_CONFIG_S_FEATURES_OK)) {
|
||||
SPDK_ERRLOG("failed to set FEATURES_OK status!\n");
|
||||
/* either the device failed, or we offered some features that
|
||||
* depend on other, not offered features.
|
||||
*/
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user