49b4fba2 | 29-Jun-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
hypervisor: Retrieve list of supported MSRs
Add a new function to the hypervisor trait so that the caller can retrieve the list of MSRs supported by this hypervisor.
Signed-off-by: Sebastien Boeuf
hypervisor: Retrieve list of supported MSRs
Add a new function to the hypervisor trait so that the caller can retrieve the list of MSRs supported by this hypervisor.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|
e2b5c78d | 24-Jun-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
hypervisor: Re-order vCPU state for storing and restoring
Some vCPU states such as MP_STATE can be modified while retrieving other states. For this reason, it's important to follow a specific order
hypervisor: Re-order vCPU state for storing and restoring
Some vCPU states such as MP_STATE can be modified while retrieving other states. For this reason, it's important to follow a specific order that will ensure a state won't be modified after it has been saved. Comments about ordering requirements have been copied over from Firecracker commit 57f4c7ca14a31c5536f188cacb669d2cad32b9ca.
This patch also set the previously saved VCPU_EVENTS, as this was missing from the restore codepath.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|
24c051c6 | 28-Jun-2020 |
Wei Liu <liuwe@microsoft.com> |
vmm: hypervisor: drop duplicate comment
Signed-off-by: Wei Liu <liuwe@microsoft.com> |
2518b9e3 | 28-Jun-2020 |
Wei Liu <liuwe@microsoft.com> |
vmm: hypervisor: fix white space issues
Signed-off-by: Wei Liu <liuwe@microsoft.com> |
72ae1577 | 26-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor: Update license to Apache-2.0 OR BSD-3-Clause
Initially the licensing was just Apache-2.0. This patch changes the licensing to dual license Apache-2.0 OR BSD-3-Clause
Signed-off-by: Mumi
hypervisor: Update license to Apache-2.0 OR BSD-3-Clause
Initially the licensing was just Apache-2.0. This patch changes the licensing to dual license Apache-2.0 OR BSD-3-Clause
Signed-off-by: Muminul Islam <muislam@microsoft.com>
show more ...
|
1741af74 | 24-Jun-2020 |
Wei Liu <liuwe@microsoft.com> |
hypervisor: add safety statement in set_user_memory_region
When set_user_memory_region was moved to hypervisor crate, it was turned into a safe function that wrapped around an unsafe call. All but o
hypervisor: add safety statement in set_user_memory_region
When set_user_memory_region was moved to hypervisor crate, it was turned into a safe function that wrapped around an unsafe call. All but one call site had the safety statements removed. But safety statement was not moved inside the wrapper function.
Add the safety statement back to help reasoning in the future. Also remove that one last instance where the safety statement is not needed .
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
show more ...
|
b27439b6 | 24-Jun-2020 |
Wei Liu <liuwe@microsoft.com> |
arch, hypervisor, vmm: KvmHyperVisor -> KvmHypervisor
"Hypervisor" is one word. The "v" shouldn't be capitalised.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com> |
309924ec | 23-Jun-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
hypervisor: Add guest pause notification
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
68ec0eb7 | 23-Jun-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
hypervisor: Add get/set clock API
Add the hypervisor wrappers to expose KVM_GET_CLOCK and KVM_SET_CLOCK from the KVM API.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
cca59bc5 | 22-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor, arch: Fix warnings introduced in hypervisor crate
This commit fixes some warnings introduced in the previous hyperviosr crate PR.Removed some unused variables from arch/aarch64 module.
hypervisor, arch: Fix warnings introduced in hypervisor crate
This commit fixes some warnings introduced in the previous hyperviosr crate PR.Removed some unused variables from arch/aarch64 module.
Signed-off-by: Muminul Islam <muislam@microsoft.com>
show more ...
|
c48d0c1a | 02-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor: kvm: Implement vCPU state method
Implement the vCPU state getter and setter separately from the initial KVM Hypervisor trait implementation, mostly for readability purposes.
Signed-off-
hypervisor: kvm: Implement vCPU state method
Implement the vCPU state getter and setter separately from the initial KVM Hypervisor trait implementation, mostly for readability purposes.
Signed-off-by: Muminul Islam <muislam@microsoft.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
show more ...
|
72e39a34 | 03-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor: Add KVM implementation
For each of the traits we are defining kvm related structures and add the trait implementation to the structs. For more information please see the kvm-ioctls and k
hypervisor: Add KVM implementation
For each of the traits we are defining kvm related structures and add the trait implementation to the structs. For more information please see the kvm-ioctls and kvm-bindings crate.
This is a standalone implementation that does not include the switch of the Cloud-Hypervisor vmm and arch crates to it.
Signed-off-by: Muminul Islam <muislam@microsoft.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
show more ...
|
683210d6 | 03-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor: Add Hypervisor trait
As the only hypervisor that Cloud-Hypervisor supports is KVM, the Hypervisor trait accomodates for the upcoming KVM implementation.
This trait will be instanciated
hypervisor: Add Hypervisor trait
As the only hypervisor that Cloud-Hypervisor supports is KVM, the Hypervisor trait accomodates for the upcoming KVM implementation.
This trait will be instanciated at build time through hypervisor specific features, i.e. it's not aiming at run-time selection of hypervisors for Cloud-Hypervisor.
Signed-off-by: Muminul Islam <muislam@microsoft.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
show more ...
|
f5afc288 | 03-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor: Add Vm trait
This VM trait should be implemented by each underlying hypervisor.
Previously created hypervisor object should create the VM based on already selected hypervisor. This is j
hypervisor: Add Vm trait
This VM trait should be implemented by each underlying hypervisor.
Previously created hypervisor object should create the VM based on already selected hypervisor. This is just the trait definition. For each of supported hypervisor we need to implement the trait. Later we will implement this trait for KVM and then Microsoft Hyper-V.
Signed-off-by: Muminul Islam <muislam@microsoft.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
show more ...
|
f9b51a41 | 03-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor: Add Vcpu trait
This Vcpu trait should be implemented by each underlying hypervisor.
Previously created hypervisor object should create the VM based on already selected hypervisor and Vm
hypervisor: Add Vcpu trait
This Vcpu trait should be implemented by each underlying hypervisor.
Previously created hypervisor object should create the VM based on already selected hypervisor and Vm object should create this vcpu object based on same hyperviosr. Each of this object should be referenced by trait object i.e <dyn Vcpu>.
Signed-off-by: Muminul Islam <muislam@microsoft.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
show more ...
|
56a16385 | 08-Jun-2020 |
Muminul Islam <muislam@microsoft.com> |
hypervisor: Introduce hypervisor crate
The purpose of this trait is to add support for other hypervisors than KVM, like e.g. Microsoft Hyper-V.
Further commits will define additional hypervisor rel
hypervisor: Introduce hypervisor crate
The purpose of this trait is to add support for other hypervisors than KVM, like e.g. Microsoft Hyper-V.
Further commits will define additional hypervisor related traits like Vcpu and Vm. Each of the supported hypervisor will need to implement all traits defined from the hypervisor crate.
Signed-off-by: Muminul Islam <muislam@microsoft.com>
show more ...
|