Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtio-device: Detaching endpoint from old domain in virtio-iommu #6298

Merged

Conversation

acarp-crusoe
Copy link
Contributor

Properly detach a device from a domain if that device is already attached to another domain on an attach request (following section 5.13.6.3.2 of the virtio-iommu spec) - resolves nested virtualization reboot

@acarp-crusoe acarp-crusoe requested a review from a team as a code owner March 14, 2024 23:24
Copy link
Member

@rbradford rbradford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acarp-crusoe There's a lot of whitespace changes in this commit - perhaps you could drop those - or explain why they're there (lots of additions and removals...)

@acarp-crusoe acarp-crusoe force-pushed the nested-virtualization-reboot branch 2 times, most recently from 8c3d7d4 to 57459ab Compare March 19, 2024 15:38
@acarp-crusoe
Copy link
Contributor Author

@acarp-crusoe There's a lot of whitespace changes in this commit - perhaps you could drop those - or explain why they're there (lots of additions and removals...)

Apologies I didn't notice those whitespace changes, they should all be removed

@acarp-crusoe acarp-crusoe force-pushed the nested-virtualization-reboot branch 4 times, most recently from 6b96d58 to 8aa9aca Compare March 19, 2024 17:34
@acarp-crusoe acarp-crusoe force-pushed the nested-virtualization-reboot branch 5 times, most recently from d5b79cb to 9c7506c Compare March 21, 2024 23:30
Ensures that any endpoints already attached to the domain are properly
mapped to a new endpoint on said endpoint's attach request. This is done
by search for all previous mappings in the domain and then issuing map
requests for the newly attached endpoint.

Signed-off-by: Andrew Carp <acarp@crusoeenergy.com>
Properly detach a device from a domain if that device is already
attached to another domain on an attach request (following section
5.13.6.3.2 of the virtio-iommu spec). Resolves nested virtualization
reboot.

Signed-off-by: Andrew Carp <acarp@crusoeenergy.com>
@acarp-crusoe
Copy link
Contributor Author

@thomasbarrett - when you get back next week can you take a look and give an approval if this looks good?

@thomasbarrett
Copy link
Contributor

This looks good to me :)

@rbradford
Copy link
Member

This looks good to me :)

You should be able to use the GitHub UI to give reviews - even though the checkmark may be grey rather than green,

@rbradford rbradford added this pull request to the merge queue Apr 1, 2024
Merged via the queue into cloud-hypervisor:main with commit 3fa02b3 Apr 1, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

None yet

3 participants