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:
Jianyong Wu
2021-01-18 16:11:09 +08:00
parent 4bb23ed990
commit b7a1f752c0
10 changed files with 76 additions and 4 deletions

View File

@@ -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
}