Commit cef2586
vhost: add helper to parse userspace vring state/file
The next patches add new vhost worker ioctls which will need to get a
vhost_virtqueue from a userspace struct which specifies the vq's index.
This moves the vhost_vring_ioctl code to do this to a helper so it can
be shared.
Signed-off-by: Mike Christie <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>1 parent 27eca18 commit cef2586
1 file changed
+22
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
602 | 623 | | |
603 | 624 | | |
604 | 625 | | |
| |||
1618 | 1639 | | |
1619 | 1640 | | |
1620 | 1641 | | |
1621 | | - | |
1622 | 1642 | | |
1623 | 1643 | | |
1624 | 1644 | | |
1625 | 1645 | | |
1626 | 1646 | | |
1627 | 1647 | | |
1628 | | - | |
| 1648 | + | |
1629 | 1649 | | |
1630 | 1650 | | |
1631 | | - | |
1632 | | - | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
1636 | 1651 | | |
1637 | 1652 | | |
1638 | 1653 | | |
| |||
0 commit comments