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

Uhyve Interface V2 #754

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Uhyve Interface V2 #754

wants to merge 3 commits into from

Conversation

jounathaen
Copy link
Member

The old uhyve interface is based on the outb instruction (on x86_64). This creates issues, when the physical memory of the guest is beyond the 32-Bit boundary, as the outb instruction only accepts 32-bit parameters.

I think the best approach is to move to MMIO based hypercalls instead (as also suggested in the KVM docu). Drawback: They are slower than IO based hypercalls.

Whilst on it, I redefined the hypercall interface and added the definition for possible future hypercalls.

Summary:

This is a non-breaking change, as the old hypercall interface can still be implemented in uhhve. However, Currently, the memory where the hypercalls are mapped is mapped as regular memory. However, this will be changed in #725
The old interface can be marked deprecated and be removed in future versions.

@jounathaen jounathaen force-pushed the uhyve_if_v2 branch 2 times, most recently from 5d872a4 to d6c1e7a Compare September 18, 2024 17:33
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 4.87805% with 39 lines in your changes missing coverage. Please review.

Project coverage is 67.57%. Comparing base (c0a8bac) to head (588a92d).

Files with missing lines Patch % Lines
uhyve-interface/src/v2/mod.rs 0.00% 22 Missing ⚠️
uhyve-interface/src/v1/mod.rs 5.55% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #754      +/-   ##
==========================================
- Coverage   67.79%   67.57%   -0.23%     
==========================================
  Files          19       20       +1     
  Lines        2453     2461       +8     
==========================================
  Hits         1663     1663              
- Misses        790      798       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@jounathaen jounathaen force-pushed the uhyve_if_v2 branch 3 times, most recently from a77400e to 10bf5b3 Compare September 19, 2024 08:19
@jounathaen jounathaen marked this pull request as draft September 19, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant