mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
vfio: correctly set container on group
This commit is contained in:
parent
b6ff452e53
commit
80386d1085
2 changed files with 4 additions and 2 deletions
|
@ -91,7 +91,7 @@ public:
|
|||
~VfioGroup();
|
||||
|
||||
static std::unique_ptr<VfioGroup>
|
||||
attach(const VfioContainer& container, int groupIndex);
|
||||
attach(VfioContainer& container, int groupIndex);
|
||||
|
||||
private:
|
||||
/// VFIO group file descriptor
|
||||
|
|
|
@ -743,10 +743,12 @@ VfioGroup::~VfioGroup()
|
|||
|
||||
|
||||
std::unique_ptr<VfioGroup>
|
||||
VfioGroup::attach(const VfioContainer& container, int groupIndex)
|
||||
VfioGroup::attach(VfioContainer& container, int groupIndex)
|
||||
{
|
||||
std::unique_ptr<VfioGroup> group { new VfioGroup(groupIndex) };
|
||||
|
||||
group->container = &container;
|
||||
|
||||
/* Open group fd */
|
||||
std::stringstream groupPath;
|
||||
groupPath << VFIO_PATH
|
||||
|
|
Loading…
Add table
Reference in a new issue