mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
qemu: Fix rtc parameter is not set to qemu
[ port from runtime commit 379f19f7ccd71ebe938d9d6fe3cfe5f05f4f02bf ] Add default value for Clock, otherwise rtc parameter will be dropped by Valid function. "host" is the default value in qemu for rtc clock. Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com> Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
51a6d60ab4
commit
bdd386ba14
@ -537,8 +537,9 @@ func (q *qemu) createSandbox(ctx context.Context, id string, networkNS NetworkNa
|
||||
}
|
||||
|
||||
rtc := govmmQemu.RTC{
|
||||
Base: "utc",
|
||||
DriftFix: "slew",
|
||||
Base: govmmQemu.UTC,
|
||||
Clock: govmmQemu.Host,
|
||||
DriftFix: govmmQemu.Slew,
|
||||
}
|
||||
|
||||
if q.state.UUID == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user