vmm: cpu: Get and set KVM vCPU state

These two new helpers will be useful to capture a vCPU state and being
able to restore it at a later time.

Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Cathy Zhang
2020-02-16 21:42:42 +01:00
committed by Sebastien Boeuf
parent 13756490b5
commit 722f9b6628
3 changed files with 134 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -466,6 +466,8 @@ name = "kvm-bindings"
version = "0.2.0"
source = "git+https://github.com/cloud-hypervisor/kvm-bindings?branch=ch#3a6780089e0e2d69aaf77666524e81801c814bdd"
dependencies = [
"serde",
"serde_derive",
"vmm-sys-util",
]