Commit 6e6d398
vdpa: conditionally read STATUS in config space
The spec says:
status only exists if VIRTIO_NET_F_STATUS is set
Similar to MAC and MTU, vdpa_dev_net_config_fill() should read
STATUS conditionally depending on the feature bits.
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Message-Id: <1675725124-7375-3-git-send-email-si-wei.liu@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>1 parent 275487b commit 6e6d398
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
851 | 863 | | |
852 | 864 | | |
853 | 865 | | |
854 | 866 | | |
855 | | - | |
856 | 867 | | |
857 | 868 | | |
858 | 869 | | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | 870 | | |
864 | 871 | | |
865 | 872 | | |
| |||
872 | 879 | | |
873 | 880 | | |
874 | 881 | | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
875 | 885 | | |
876 | 886 | | |
877 | 887 | | |
| |||
0 commit comments