Wire up vsock device to propolis-server#1075
Conversation
Created using jj-spr 0.1.0
| use propolis::vsock::proxy::VsockPortMapping; | ||
|
|
||
| // Port 8008 - VM Attestation RFD 605 | ||
| const ATTESTATION_PORT: u16 = 8008; |
There was a problem hiding this comment.
We need to decide on a port!
| // TODO (PullRequest): Update these values to what omicron will | ||
| // use. | ||
| guest_cid: 16, | ||
| pci_path: PciPath::new(0, 0x19, 0).unwrap(), |
There was a problem hiding this comment.
This will be passed by omicron, but we should make this match whatever we pick there.
| return Err(SpecBuilderError::VsockInUse); | ||
| } | ||
|
|
||
| // TODO validate guest_cid does not have reserved bits set |
There was a problem hiding this comment.
Decide if we should return a SpecBuilderError or a MachineInitError
|
Paired with @iximeow over a meet to discuss some of this PR. Key takeaways:
|
the other option is to take a |
This is the plumbing to allow virtio-socket devices to be usable in
propolis-server.Fixes: #1069