openamp/virtio.h: update vdev->features

set vdev->features in virtio_negotiate_features

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
This commit is contained in:
Yongrong Wang
2024-10-08 10:32:40 +08:00
committed by Arnaud Pouliquen
parent c31e4fd626
commit 4df7975ab1

View File

@@ -475,6 +475,7 @@ static inline int virtio_negotiate_features(struct virtio_device *vdev,
return -ENXIO;
*final_features = vdev->func->negotiate_features(vdev, features);
vdev->features = *final_features;
return 0;
}