virtio-pci-modern: introduce vp_modern_generation()
stable inclusion from stable-v5.12 commit ed2a73db category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5WXCZ CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ed2a73dbab138b1af8501d48b4f57fa9be68f43c ---------------------------------------------------------------------- This patch introduces vp_modern_generation() to get device generation. Signed-off-by: NJason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20210104065503.199631-9-jasowang@redhat.comSigned-off-by: NMichael S. Tsirkin <mst@redhat.com> Signed-off-by: NPengyuan Zhao <zhaopengyuan@hisilicon.com>
Showing
想要评论请 注册 或 登录