Skip to content

vz: fail early when arch is invalid#1575

Merged
AkihiroSuda merged 1 commit intolima-vm:masterfrom
AkihiroSuda:vz-faily-early-invalid-arch
May 25, 2023
Merged

vz: fail early when arch is invalid#1575
AkihiroSuda merged 1 commit intolima-vm:masterfrom
AkihiroSuda:vz-faily-early-invalid-arch

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Member

No description provided.

@AkihiroSuda AkihiroSuda added this to the v0.16.0 milestone May 24, 2023
case QEMU:
// NOP
case VZ:
if !IsNativeArch(*y.Arch) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we can fully move this from here to individual driver level.

Whether the vmType is valid or not that should already be validated if am not wrong

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of this PR is to detect invalid arch as early as possible, i.e., limactl validate

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay got it.

Maybe in near future we could offload driver related validation to driver itself. I will create a follow up issue later to handle this

@AkihiroSuda AkihiroSuda force-pushed the vz-faily-early-invalid-arch branch from 4412466 to 9f102bc Compare May 24, 2023 15:03
balajiv113
balajiv113 previously approved these changes May 24, 2023
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda merged commit 5a4772a into lima-vm:master May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants