vm-virtio: Add the ability to serialize a Queue

This commit relies on serde to serialize and deserialize the content of
a Queue structure. This will be useful information to store when
implementing snapshot/restore feature for virtio devices.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2020-04-08 09:53:12 +08:00
committed by Sebastien Boeuf
parent b7faf4fdc1
commit fd45e94510
4 changed files with 22 additions and 2 deletions

View File

@@ -16,6 +16,10 @@ extern crate epoll;
extern crate log;
#[cfg(feature = "pci_support")]
extern crate pci;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate vhost_rs;
extern crate virtio_bindings;
extern crate vm_device;