mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 06:44:23 +01:00
arm64: enable acpi for qemu/virt.
acpi is enabled for kata 1.x, port and rebase code for 2.x including: runtime: enable pflash; agent: add acpi support for pci bus path; packaging: enable CONFIG_RTC_DRV_EFI; Fixes: #1317 Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
@@ -119,6 +119,12 @@ type qemuArch interface {
|
||||
// addBridge adds a new Bridge to the list of Bridges
|
||||
addBridge(types.Bridge)
|
||||
|
||||
// getPFlash() get pflash from configuration
|
||||
getPFlash() ([]string, error)
|
||||
|
||||
// setPFlash() grants access to pflash
|
||||
setPFlash([]string)
|
||||
|
||||
// handleImagePath handles the Hypervisor Config image path
|
||||
handleImagePath(config HypervisorConfig)
|
||||
|
||||
@@ -151,6 +157,7 @@ type qemuArchBase struct {
|
||||
kernelParamsDebug []Param
|
||||
kernelParams []Param
|
||||
Bridges []types.Bridge
|
||||
PFlash []string
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -798,3 +805,11 @@ func (q *qemuArchBase) appendPVPanicDevice(devices []govmmQemu.Device) ([]govmmQ
|
||||
devices = append(devices, govmmQemu.PVPanicDevice{NoShutdown: true})
|
||||
return devices, nil
|
||||
}
|
||||
|
||||
func (q *qemuArchBase) getPFlash() ([]string, error) {
|
||||
return q.PFlash, nil
|
||||
}
|
||||
|
||||
func (q *qemuArchBase) setPFlash(p []string) {
|
||||
q.PFlash = p
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user