mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
runtime: constify splitIrqChipMachineOptions
A simple cleanup. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
2b0587db95
commit
f508c2909a
@ -38,6 +38,8 @@ const (
|
|||||||
|
|
||||||
defaultQemuMachineOptions = "accel=kvm,kernel_irqchip=on"
|
defaultQemuMachineOptions = "accel=kvm,kernel_irqchip=on"
|
||||||
|
|
||||||
|
splitIrqChipMachineOptions = "accel=kvm,kernel_irqchip=split"
|
||||||
|
|
||||||
qmpMigrationWaitTimeout = 5 * time.Second
|
qmpMigrationWaitTimeout = 5 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -96,7 +98,7 @@ func newQemuArch(config HypervisorConfig) (qemuArch, error) {
|
|||||||
// IOMMU and Guest Protection require a split IRQ controller for handling interrupts
|
// IOMMU and Guest Protection require a split IRQ controller for handling interrupts
|
||||||
// otherwise QEMU won't be able to create the kernel irqchip
|
// otherwise QEMU won't be able to create the kernel irqchip
|
||||||
if config.IOMMU || config.ConfidentialGuest {
|
if config.IOMMU || config.ConfidentialGuest {
|
||||||
mp.Options = "accel=kvm,kernel_irqchip=split"
|
mp.Options = splitIrqChipMachineOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.IOMMU {
|
if config.IOMMU {
|
||||||
|
Loading…
Reference in New Issue
Block a user