forked from kata-containers/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kata-containers#286 from nitkon/master
Enable Kata container on ppc64le arch
- Loading branch information
Showing
15 changed files
with
644 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) 2018 IBM | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# Power ppc64le settings | ||
|
||
MACHINETYPE := pseries | ||
KERNELPARAMS := | ||
MACHINEACCELERATORS := | ||
KERNELTYPE := uncompressed #This architecture must use an uncompressed kernel. | ||
QEMUCMD := qemu-system-ppc64le |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2018 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
package main | ||
|
||
// kvmIsUsable determines if it will be possible to create a full virtual machine | ||
// by creating a minimal VM and then deleting it. | ||
func kvmIsUsable() error { | ||
return genericKvmIsUsable() | ||
} | ||
|
||
func archHostCanCreateVMContainer() error { | ||
return kvmIsUsable() | ||
} | ||
|
||
// hostIsVMContainerCapable checks to see if the host is theoretically capable | ||
// of creating a VM container. | ||
func hostIsVMContainerCapable(details vmContainerCapableDetails) error { | ||
return genericHostIsVMContainerCapable(details) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
// Copyright (c) 2018 IBM | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
package main | ||
|
||
const testCPUInfoTemplate = ` | ||
processor : 0 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 8 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 16 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2360.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 24 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2061.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 32 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 40 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 48 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 56 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 64 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 72 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3059.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 80 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2693.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 88 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2061.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 96 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 104 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2061.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 112 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2061.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 120 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2061.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 128 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 3690.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 136 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2061.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 144 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2294.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
processor : 152 | ||
cpu : POWER8E (raw), altivec supported | ||
clock : 2560.000000MHz | ||
revision : 2.1 (pvr 004b 0201) | ||
timebase : 512000000 | ||
platform : PowerNV | ||
model : 8247-22L | ||
machine : PowerNV 8247-22L | ||
firmware : OPAL v3 | ||
` |
Oops, something went wrong.