Merge pull request #144 from rust-vmm/dependabot/cargo/vm-memory-0.8.0

build(deps): bump vm-memory from 0.7.0 to 0.8.0
This commit is contained in:
Viresh Kumar 2022-07-11 13:48:33 +05:30 committed by GitHub
commit a16d6211df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 29 deletions

12
Cargo.lock generated
View File

@ -492,9 +492,9 @@ dependencies = [
[[package]]
name = "vhost-user-backend"
version = "0.3.0"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1490f2028d4f119b2292efe218b5f8cfc6471f039b53b6a6eb5d9513e964facc"
checksum = "3eeb6723bbee20dbc2db95c575941922fb96e77eb41786ecd1c8c03348709c4c"
dependencies = [
"libc",
"log",
@ -513,9 +513,9 @@ checksum = "3ff512178285488516ed85f15b5d0113a7cdb89e9e8a760b269ae4f02b84bd6b"
[[package]]
name = "virtio-queue"
version = "0.2.0"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3785325315e6496fa88673842ee6cd198b9658e88e8b0e1ad48a5dc818b221dc"
checksum = "519c0a333c871650269cba303bc108075d52a0c0d64f9b91fae61829b53725af"
dependencies = [
"log",
"vm-memory",
@ -524,9 +524,9 @@ dependencies = [
[[package]]
name = "vm-memory"
version = "0.7.0"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "339d4349c126fdcd87e034631d7274370cf19eb0e87b33166bcd956589fc72c5"
checksum = "767ed8aaebbff902e02e6d3749dc2baef55e46565f8a6414a065e5baee4b4a81"
dependencies = [
"arc-swap",
"libc",

View File

@ -18,15 +18,15 @@ libc = ">=0.2.95"
log = ">=0.4.6"
thiserror = "1.0"
vhost = { version = "0.4", features = ["vhost-user-slave"] }
vhost-user-backend = "0.3"
vhost-user-backend = "0.5"
virtio-bindings = ">=0.1"
virtio-queue = "0.2"
vm-memory = ">=0.7"
virtio-queue = "0.4"
vm-memory = ">=0.8"
vmm-sys-util = "=0.9.0"
[target.'cfg(target_env = "gnu")'.dependencies]
libgpiod = { git = "https://github.com/vireshk/libgpiod" }
[dev-dependencies]
virtio-queue = { version = "0.2", features = ["test-utils"] }
vm-memory = { version = ">=0.7.0", features = ["backend-mmap", "backend-atomic"] }
virtio-queue = { version = "0.4", features = ["test-utils"] }
vm-memory = { version = ">=0.8.0", features = ["backend-mmap", "backend-atomic"] }

View File

@ -518,13 +518,13 @@ mod tests {
);
mem.write_obj::<R>(out_hdr, desc_out.addr()).unwrap();
vq.desc_table().store(index, desc_out);
vq.desc_table().store(index, desc_out).unwrap();
next_addr += desc_out.len() as u64;
index += 1;
// In response descriptor
let desc_in = Descriptor::new(next_addr, response_len, VIRTQ_DESC_F_WRITE, 0);
vq.desc_table().store(index, desc_in);
vq.desc_table().store(index, desc_in).unwrap();
// Put the descriptor index 0 in the first available ring position.
mem.write_obj(0u16, vq.avail_addr().unchecked_add(4))
@ -597,7 +597,7 @@ mod tests {
};
let desc = Descriptor::new(offset, len[i], f, (i + 1) as u16);
vq.desc_table().store(i as u16, desc);
vq.desc_table().store(i as u16, desc).unwrap();
}
// Put the descriptor index 0 in the first available ring position.

View File

@ -18,12 +18,12 @@ libc = ">=0.2.95"
log = ">=0.4.6"
thiserror = "1.0"
vhost = { version = "0.4", features = ["vhost-user-slave"] }
vhost-user-backend = "0.3"
vhost-user-backend = "0.5"
virtio-bindings = ">=0.1"
virtio-queue = "0.2"
vm-memory = ">=0.7"
virtio-queue = "0.4"
vm-memory = ">=0.8"
vmm-sys-util = "=0.9.0"
[dev-dependencies]
virtio-queue = { version = "0.2", features = ["test-utils"] }
vm-memory = { version = ">=0.7.0", features = ["backend-mmap", "backend-atomic"] }
virtio-queue = { version = "0.4", features = ["test-utils"] }
vm-memory = { version = ">=0.8.0", features = ["backend-mmap", "backend-atomic"] }

View File

@ -391,7 +391,7 @@ mod tests {
mem.write_obj::<VirtioI2cOutHdr>(out_hdr, desc_out.addr())
.unwrap();
vq.desc_table().store(index, desc_out);
vq.desc_table().store(index, desc_out).unwrap();
next_addr += desc_out.len() as u64;
index += 1;
@ -412,14 +412,14 @@ mod tests {
index + 1,
);
mem.write(buf, desc_buf.addr()).unwrap();
vq.desc_table().store(index, desc_buf);
vq.desc_table().store(index, desc_buf).unwrap();
next_addr += desc_buf.len() as u64;
index += 1;
}
// In response descriptor
let desc_in = Descriptor::new(next_addr, size_of::<u8>() as u32, VIRTQ_DESC_F_WRITE, 0);
vq.desc_table().store(index, desc_in);
vq.desc_table().store(index, desc_in).unwrap();
// Put the descriptor index 0 in the first available ring position.
mem.write_obj(0u16, vq.avail_addr().unchecked_add(4))
@ -492,7 +492,7 @@ mod tests {
};
let desc = Descriptor::new(offset, len[i], f, (i + 1) as u16);
vq.desc_table().store(i as u16, desc);
vq.desc_table().store(i as u16, desc).unwrap();
}
// Put the descriptor index 0 in the first available ring position.

View File

@ -19,12 +19,12 @@ rand = ">=0.8.5"
tempfile = "3.2.0"
thiserror = "1.0"
vhost = { version = "0.4", features = ["vhost-user-slave"] }
vhost-user-backend = "0.3"
vhost-user-backend = "0.5"
virtio-bindings = ">=0.1"
virtio-queue = "0.2"
vm-memory = ">=0.7"
virtio-queue = "0.4"
vm-memory = ">=0.8"
vmm-sys-util = ">=0.9.0"
[dev-dependencies]
virtio-queue = { version = "0.2", features = ["test-utils"] }
vm-memory = { version = ">=0.7.0", features = ["backend-mmap", "backend-atomic"] }
virtio-queue = { version = "0.4", features = ["test-utils"] }
vm-memory = { version = ">=0.8.0", features = ["backend-mmap", "backend-atomic"] }

View File

@ -349,7 +349,7 @@ mod tests {
};
let desc = Descriptor::new((0x100 * (i + 1)) as u64, 0x200, desc_flags, i + 1);
vq.desc_table().store(i, desc);
vq.desc_table().store(i, desc).unwrap();
}
// Put the descriptor index 0 in the first available ring position.