Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
arm64, x86: Update bindings to v5.13
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Boeuf <[email protected]>
  • Loading branch information
Sebastien Boeuf committed Jul 9, 2021
1 parent 77d2c55 commit e680485
Show file tree
Hide file tree
Showing 8 changed files with 7,997 additions and 11,946 deletions.
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

### Bindgen
The bindings are currently generated using
[bindgen](https://crates.io/crates/bindgen) version 0.46.0:
[bindgen](https://crates.io/crates/bindgen) version 0.58.1:
```bash
cargo install bindgen --vers 0.46.0
cargo install bindgen --vers 0.58.1
```

### Linux Kernel
Expand All @@ -21,7 +21,7 @@ git clone https://github.com/torvalds/linux.git
When adding a new architecture, the bindings must be generated for all existing
versions for consistency reasons.

### Example for arm64 and version 4.20
### Example for arm64 and version 5.13

For this example we assume that you have both linux and kvm-bindings
repositories in your root.
Expand All @@ -35,22 +35,22 @@ cd ~
# linux is the repository that you cloned at the previous step.
cd linux
# Step 2: Checkout the version you want to generate the bindings for.
git checkout v4.20
git checkout v5.13

# Step 3: Generate the bindings.
# This will generate the headers for the targeted architecture and place them
# in the user specified directory. In this case, we generate them in the
# arm64_v4_20_headers directory.
make headers_install ARCH=arm64 INSTALL_HDR_PATH=arm64_v4_20_headers
cd arm64_v4_20_headers
bindgen include/linux/kvm.h -o bindings_v4_20_0.rs \
# arm64_v5_13_headers directory.
make headers_install ARCH=arm64 INSTALL_HDR_PATH=arm64_v5_13_headers
cd arm64_v5_13_headers
bindgen include/linux/kvm.h -o bindings_v5_13_0.rs \
--with-derive-default
--with-derive-partialeq
-- -Iinclude
cd ~

# Step 4: Copy the generated file to the arm64 module.
cp linux/arm64_v4_20_headers/bindings_v4_20_0.rs
cp linux/arm64_v5_13_headers/bindings_v5_13_0.rs
```

Steps 2, 3 and 4 must be repeated for each of the existing KVM versions. Don't
Expand Down
2 changes: 1 addition & 1 deletion coverage_config_x86_64.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"coverage_score": 68.3,
"coverage_score": 69.0,
"exclude_path": "",
"crate_features": "fam-wrappers"
}
Loading

0 comments on commit e680485

Please sign in to comment.