Skip to content

Conversation

@jakecorrenti
Copy link
Member

@jakecorrenti jakecorrenti commented May 12, 2025

Updating the kernel from the -480.el9s SIG to 6.16 resulted in breakages. This PR updates the implementations for affected ioctls accordingly.

@jakecorrenti jakecorrenti marked this pull request as draft May 13, 2025 20:00
Update the MSRV from a nearly two year old version of rustc to the
latest, which is 1.86.

Signed-off-by: Jake Correnti <[email protected]>
@jakecorrenti jakecorrenti force-pushed the upstream-bindings branch 2 times, most recently from dcb4c63 to 412cc05 Compare May 13, 2025 21:16
@jakecorrenti jakecorrenti marked this pull request as ready for review May 13, 2025 21:17
@auto-assign auto-assign bot requested a review from tylerfanelli May 13, 2025 21:17
@jakecorrenti jakecorrenti marked this pull request as draft May 15, 2025 13:27
@jakecorrenti jakecorrenti marked this pull request as ready for review May 15, 2025 20:33
@jakecorrenti jakecorrenti changed the title Update to 6.15-rc5 Update to 6.16 Jun 9, 2025
Adds bindings that were generated from the 6.16 kernel. This only
uses the necessary structures generated:
- kvm_tdx_capabilities
- kvm_tdx_init_vm
- kvm_tdx_init_mem_region

Signed-off-by: Jake Correnti <[email protected]>
Add sized vec helper functions for use with `kvm_bindings::kvm_cpuid2`.

Don't set `KVM_MAX_VCPUS` for the guest.

Signed-off-by: Jake Correnti <[email protected]>
Now that we have the bindings generated from the header file, we don't
need to create the structures ourself.

Signed-off-by: Jake Correnti <[email protected]>
Updates the implementation of KVM_TDX_CAPABILITIES to work for the
latest upstream kernel.

Signed-off-by: Jake Correnti <[email protected]>
Updates the implementation of KVM_TDX_INIT_VM for the latest upstream
kernel.

Signed-off-by: Jake Correnti <[email protected]>
Update the structures in `init_mem_region` to use the ones generated by
bindgen.

Signed-off-by: Jake Correnti <[email protected]>
With the update to 6.16, KVM_TDX_INIT_MEM_REGION went from a VM
ioctl to a vCPU ioctl. Reflect that in the user API for the library.

Signed-off-by: Jake Correnti <[email protected]>
@jakecorrenti
Copy link
Member Author

@tylerfanelli Is this good to merge?

@tylerfanelli tylerfanelli merged commit cce9787 into virtee:main Jun 9, 2025
2 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.

2 participants