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

hypervisor: x86: Emulator is only needed on mshv, not kvm #5561

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

cblichmann
Copy link
Contributor

On x86-64, when the underlying hypervisor platform is KVM, no instruction emulator is necessary. KVM handles instruction boundaries internally.

This change allows to skip the iced-x86 dependency on KVM, improving build times, prunes the dependency graph and reduces network traffic during the initial build.

For Hyper-V, the emulator is still necessary on x86-64, so nothing changes there.

This PR is my second attempt addressing the changes requested in the (now closed) #5554.

On x86-64, when the underlying hypervisor platform is KVM, no
instruction emulator is necessary. KVM handles instruction boundaries
internally.

This change allows to skip the iced-x86 dependency on KVM, improving
build times, prunes the dependency graph and reduces network traffic
during the initial build.

For Hyper-V, the emulator is still necessary on x86-64, so nothing
changes there.

Signed-off-by: Christian Blichmann <cblichmann@google.com>
@cblichmann cblichmann requested a review from a team as a code owner July 3, 2023 15:01
@rbradford rbradford merged commit b6d0098 into cloud-hypervisor:main Jul 4, 2023
19 of 22 checks passed
@rbradford
Copy link
Member

Thank you!

@rbradford rbradford added the bug-fix Bug fix to include in release notes label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Bug fix to include in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants