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

protocol: Remove hardcoded page size #15

Merged
merged 1 commit into from
Jun 28, 2023
Merged

protocol: Remove hardcoded page size #15

merged 1 commit into from
Jun 28, 2023

Conversation

peng6662001
Copy link
Contributor

@peng6662001 peng6662001 commented Jun 12, 2023

Summary of the PR

The hardcode of 4096 only works well on kernel with CONFIG_ARM64_4K_PAGES=y,when the kernel's config is CONFIG_ARM64_64K_PAGES=y,vfio-user works fail.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

src/lib.rs Outdated Show resolved Hide resolved
@peng6662001 peng6662001 changed the title Adaptation of different pages size for kernel configuration Remove hardcoded page size Jun 13, 2023
@peng6662001 peng6662001 changed the title Remove hardcoded page size protocol:Remove hardcoded page size Jun 13, 2023
@peng6662001
Copy link
Contributor Author

@sameo Please review this patch.
Thank you.

@peng6662001 peng6662001 changed the title protocol:Remove hardcoded page size protocol: Remove hardcoded page size Jun 28, 2023
@rbradford
Copy link
Collaborator

Please fix the quality checks and update your commit.

@peng6662001
Copy link
Contributor Author

Please fix the quality checks and update your commit.

@rbradford Fixed

@rbradford rbradford merged commit 08a42bf into rust-vmm:main Jun 28, 2023
6 checks passed
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.

3 participants