Skip to content

Commit 853abfa

Browse files
author
Manish Ranjan Mahanta
committed
Enabling Kernel Direct support for ARM64
Signed-off-by: Manish Ranjan Mahanta <mmahanta@microsoft.com>
1 parent 827417e commit 853abfa

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

internal/uvm/create.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"fmt"
99
"os"
1010
"path/filepath"
11+
"runtime"
1112

1213
"github.com/Microsoft/go-winio/pkg/guid"
1314
"github.com/sirupsen/logrus"
@@ -194,9 +195,6 @@ func VerifyOptions(_ context.Context, options interface{}) error {
194195
if opts.VPMemDeviceCount > 0 {
195196
return errors.New("VPMem devices are not supported on ARM64")
196197
}
197-
if opts.KernelDirect {
198-
return errors.New("KernelDirectBoot is not supported on ARM64")
199-
}
200198
}
201199
case *OptionsWCOW:
202200
if opts.EnableDeferredCommit && !opts.AllowOvercommit {

internal/uvm/create_lcow.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ func NewDefaultOptionsLCOW(id, owner string) *OptionsLCOW {
116116
kernelDirectSupported := osversion.Build() >= 18286
117117
var vPmemCount uint32 = vmutils.DefaultVPMEMCount
118118
if runtime.GOARCH == "arm64" {
119+
// Todo: Add a conditional check for osversion once KernelDirect
120+
// becomes available on ARM64, and enable it for supported versions.
121+
// This is used by create-scratch and cannot be overriden by annotations
119122
kernelDirectSupported = false
120123
vPmemCount = 0
121124
}

0 commit comments

Comments
 (0)