diff --git a/vhost-device-vsock/README.md b/vhost-device-vsock/README.md index a8abfab..1976a55 100644 --- a/vhost-device-vsock/README.md +++ b/vhost-device-vsock/README.md @@ -177,7 +177,7 @@ guest$ nc --vsock 2 1234 If you add multiple VMs with their devices configured with at least one common group name, they can communicate with each other. If you don't explicitly specify a group name, a default group will be assigned to the device with name `default`, and all such devices will be able to communicate with each other. Or you can choose a different list of -group names for each device, and only devices with the at least one group in commmon will be able to communicate with +group names for each device, and only devices with the at least one group in common will be able to communicate with each other. For example, if you have two VMs with CID 3 and 4, you can run the following commands to make them communicate: diff --git a/vhost-device-vsock/src/thread_backend.rs b/vhost-device-vsock/src/thread_backend.rs index 4429672..41dc110 100644 --- a/vhost-device-vsock/src/thread_backend.rs +++ b/vhost-device-vsock/src/thread_backend.rs @@ -210,7 +210,7 @@ pub(crate) struct VsockThreadBackend { tx_buffer_size: u32, /// Maps the guest CID to the corresponding backend. Used for sibling VM communication. pub cid_map: Arc>, - /// Queue of raw vsock packets recieved from sibling VMs to be sent to the guest. + /// Queue of raw vsock packets received from sibling VMs to be sent to the guest. pub raw_pkts_queue: Arc>, /// Set of groups assigned to the device which it is allowed to communicate with. groups_set: Arc>>, diff --git a/vhost-device-vsock/src/txbuf.rs b/vhost-device-vsock/src/txbuf.rs index 05a54cd..e247013 100644 --- a/vhost-device-vsock/src/txbuf.rs +++ b/vhost-device-vsock/src/txbuf.rs @@ -57,7 +57,7 @@ impl LocalTxBuf { let remain_txbuf = &mut self.buf[..(data_buf.len() - len)]; data_buf .read_slice(remain_txbuf, len) - .expect("shouldn't faile because remain_txbuf's len is data_buf.len() - len"); + .expect("shouldn't fail because remain_txbuf's len is data_buf.len() - len"); } // Increment tail by the amount of data that has been added to the buffer