mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-29 00:41:19 +00:00
Merge branch 'main' into dependabot/cargo/clap-3.1.17
This commit is contained in:
commit
59025acc32
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -212,9 +212,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "log"
|
||||
version = "0.4.16"
|
||||
version = "0.4.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8"
|
||||
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
|
||||
@ -391,7 +391,9 @@ impl<D: 'static + GpioDevice + Sync + Send> VhostUserBackendMut<VringRwLock, ()>
|
||||
}
|
||||
|
||||
fn protocol_features(&self) -> VhostUserProtocolFeatures {
|
||||
VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::CONFIG
|
||||
VhostUserProtocolFeatures::MQ
|
||||
| VhostUserProtocolFeatures::CONFIG
|
||||
| VhostUserProtocolFeatures::REPLY_ACK
|
||||
}
|
||||
|
||||
fn get_config(&self, offset: u32, size: u32) -> Vec<u8> {
|
||||
@ -1098,7 +1100,9 @@ mod tests {
|
||||
assert_eq!(backend.features(), 0x171000001);
|
||||
assert_eq!(
|
||||
backend.protocol_features(),
|
||||
VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::CONFIG
|
||||
VhostUserProtocolFeatures::MQ
|
||||
| VhostUserProtocolFeatures::CONFIG
|
||||
| VhostUserProtocolFeatures::REPLY_ACK
|
||||
);
|
||||
|
||||
assert_eq!(backend.queues_per_thread(), vec![0xffff_ffff]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user