mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 23:41:15 +00:00
aarch64: Add OneReg to the list required extensions for KVM
Without that capability save / restore for aarch64 won't work. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
30e1162d7c
commit
9ad14e6b3a
@ -127,6 +127,9 @@ pub fn check_required_kvm_extensions(kvm: &Kvm) -> KvmResult<()> {
|
|||||||
if !kvm.check_extension(Cap::SignalMsi) {
|
if !kvm.check_extension(Cap::SignalMsi) {
|
||||||
return Err(KvmError::CapabilityMissing(Cap::SignalMsi));
|
return Err(KvmError::CapabilityMissing(Cap::SignalMsi));
|
||||||
}
|
}
|
||||||
|
if !kvm.check_extension(Cap::OneReg) {
|
||||||
|
return Err(KvmError::CapabilityMissing(Cap::OneReg));
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user