rust-vsock / vsock-rs

Virtio socket support for Rust
https://crates.io/crates/vsock
Apache License 2.0
25 stars 19 forks source link

Missing support for `svm_flags` #29

Open james-callahan opened 1 year ago

james-callahan commented 1 year ago

See https://lkml.org/lkml/2020/12/11/249

james-callahan commented 1 year ago

We are having issues using AWS nitro enclaves with newer kernels, I've tracked it down to newer kernels requiring that svm_flags is set to VMADDR_FLAG_TO_HOST (i.e. 0x01) to talk to an enclave.

qwandor commented 9 months ago

It looks like sockaddr_vm comes from libc, so you'll need to get svm_flags added there first, then feel free to send a PR.

james-callahan commented 8 months ago

It looks like sockaddr_vm comes from libc, so you'll need to get svm_flags added there first,

Was added via https://github.com/rust-lang/libc/pull/3478

emostov commented 2 months ago

@qwandor any updates here?

qwandor commented 2 months ago

Not that I'm aware of, you're welcome to send a PR.