Commit 0e0348a
vduse: Tie vduse mgmtdev and its device
vduse devices are not backed by any real devices such as PCI. Hence it
doesn't have any parent device linked to it.
Kernel driver model in [1] suggests to avoid an empty device
release callback.
Hence tie the mgmtdevice object's life cycle to an allocate dummy struct
device instead of static one.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/kobject.rst?h=v5.18-rc7#n284
Signed-off-by: Parav Pandit <parav@nvidia.com>
Message-Id: <20220613195223.473966-1-parav@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>1 parent ace9252 commit 0e0348a
1 file changed
Lines changed: 37 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1486 | 1482 | | |
1487 | 1483 | | |
1488 | | - | |
| 1484 | + | |
1489 | 1485 | | |
1490 | 1486 | | |
1491 | 1487 | | |
| |||
1510 | 1506 | | |
1511 | 1507 | | |
1512 | 1508 | | |
1513 | | - | |
| 1509 | + | |
1514 | 1510 | | |
1515 | 1511 | | |
1516 | 1512 | | |
| |||
1556 | 1552 | | |
1557 | 1553 | | |
1558 | 1554 | | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1564 | 1562 | | |
1565 | 1563 | | |
1566 | 1564 | | |
1567 | 1565 | | |
1568 | 1566 | | |
1569 | | - | |
1570 | | - | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
1571 | 1574 | | |
| 1575 | + | |
1572 | 1576 | | |
1573 | | - | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1574 | 1580 | | |
1575 | | - | |
| 1581 | + | |
1576 | 1582 | | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
1580 | 1594 | | |
1581 | 1595 | | |
1582 | 1596 | | |
1583 | 1597 | | |
1584 | 1598 | | |
1585 | | - | |
1586 | | - | |
| 1599 | + | |
| 1600 | + | |
1587 | 1601 | | |
1588 | 1602 | | |
1589 | 1603 | | |
| |||
0 commit comments