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

Commit 441a9a8

Browse files
Sebastien Boeufalexandruag
authored andcommitted
arm64, x86: Update bindings to v5.13
Replace the v4.20 bindings with the up to date v5.13 ones. The `arm` architecture is now covered with the `arm64` bindings the same way both `x86` and `x86_64` are covered by the bindings from `x86_64`. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
1 parent 5604769 commit 441a9a8

File tree

9 files changed

+8491
-12066
lines changed

9 files changed

+8491
-12066
lines changed

.buildkite/pipeline.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ steps:
1313
os: linux
1414
plugins:
1515
- docker#v3.0.1:
16-
image: "rustvmm/dev:v4"
16+
image: "rustvmm/dev:v12"
1717
always-pull: true
1818

1919
- label: "build-arm"
@@ -27,7 +27,7 @@ steps:
2727
os: linux
2828
plugins:
2929
- docker#v3.0.1:
30-
image: "rustvmm/dev:v4"
30+
image: "rustvmm/dev:v12"
3131
always-pull: true
3232

3333
- label: "check-warnings-x86"
@@ -41,7 +41,7 @@ steps:
4141
plugins:
4242
- docker#v3.0.1:
4343
privileged: true
44-
image: "rustvmm/dev:v4"
44+
image: "rustvmm/dev:v12"
4545
always-pull: true
4646

4747
- label: "check-warnings-arm"
@@ -55,5 +55,5 @@ steps:
5555
plugins:
5656
- docker#v3.0.1:
5757
privileged: true
58-
image: "rustvmm/dev:v4"
59-
always-pull: true
58+
image: "rustvmm/dev:v12"
59+
always-pull: true

CONTRIBUTING.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Bindgen
66
The bindings are currently generated using
7-
[bindgen](https://crates.io/crates/bindgen) version 0.46.0:
7+
[bindgen](https://crates.io/crates/bindgen) version 0.59.1:
88
```bash
9-
cargo install bindgen --vers 0.46.0
9+
cargo install bindgen --vers 0.59.1
1010
```
1111

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

24-
### Example for arm64 and version 4.20
24+
### Example for arm64 and version 5.13
2525

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

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

5252
# Step 4: Copy the generated file to the arm64 module.
53-
cp linux/arm64_v4_20_headers/bindings_v4_20_0.rs
53+
cp linux/arm64_v5_13_headers/bindings_v5_13_0.rs
5454
```
5555

5656
Steps 2, 3 and 4 must be repeated for each of the existing KVM versions. Don't

coverage_config_x86_64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"coverage_score": 68.3,
2+
"coverage_score": 66.3,
33
"exclude_path": "",
44
"crate_features": "fam-wrappers"
55
}

0 commit comments

Comments
 (0)