mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 02:56:18 +00:00
kata-check: do not require nested vt
We do not really require nested VT to run kata containers. Let's not depend on it being there. Fixes: #820 Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
parent
ea9ecd7386
commit
acbcde3fee
@ -67,7 +67,6 @@ func setCPUtype() {
|
||||
"kvm_intel": {
|
||||
desc: "Intel KVM",
|
||||
parameters: map[string]string{
|
||||
"nested": "Y",
|
||||
// "VMX Unrestricted mode support". This is used
|
||||
// as a heuristic to determine if the system is
|
||||
// "new enough" to run a Kata Container
|
||||
@ -97,9 +96,6 @@ func setCPUtype() {
|
||||
},
|
||||
"kvm_amd": {
|
||||
desc: "AMD KVM",
|
||||
parameters: map[string]string{
|
||||
"nested": "1",
|
||||
},
|
||||
},
|
||||
"vhost": {
|
||||
desc: msgKernelVirtio,
|
||||
|
@ -83,16 +83,13 @@ func TestCCCheckCLIFunction(t *testing.T) {
|
||||
|
||||
moduleData = []testModuleData{
|
||||
{filepath.Join(sysModuleDir, "kvm_intel/parameters/unrestricted_guest"), false, "Y"},
|
||||
{filepath.Join(sysModuleDir, "kvm_intel/parameters/nested"), false, "Y"},
|
||||
}
|
||||
} else if cpuType == cpuTypeAMD {
|
||||
cpuData = []testCPUData{
|
||||
{archAuthenticAMD, "lm svm sse4_1", false},
|
||||
}
|
||||
|
||||
moduleData = []testModuleData{
|
||||
{filepath.Join(sysModuleDir, "kvm_amd/parameters/nested"), false, "1"},
|
||||
}
|
||||
moduleData = []testModuleData{}
|
||||
}
|
||||
|
||||
devNull, err := os.OpenFile(os.DevNull, os.O_WRONLY, 0666)
|
||||
|
Loading…
Reference in New Issue
Block a user