Skip to content

Conversation

@frankiejol
Copy link
Member

No description provided.

It is not allowed from the frontend but it spits and error just
in case
@frankiejol frankiejol added this to the v2.4.3 milestone Jan 14, 2026
Copilot AI review requested due to automatic review settings January 14, 2026 09:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enforces the restriction that UEFI firmware is only supported for 64-bit virtual machines, preventing its use with 32-bit architectures.

Changes:

  • Test filtering to skip UEFI tests for non-q35 machine types
  • Architecture validation in UEFI configuration to restrict to x86_64 only
  • Addition of helper method to locate appropriate machine types

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
t/vm/d20_disks.t Adds test filter to skip UEFI+non-q35 machine combinations in CD-ROM tests
lib/Ravada/VM/KVM.pm Restricts UEFI to x86_64 architecture, auto-selects q35 machine type when needed, and adds _find_machine_type helper method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

$ovmf = '/usr/share/OVMF/OVMF_CODE_4M.fd';
} else {
die "Unsupported UEFI in this architecture ".$type->toString();
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The error message uses toString() on the XML type element, which will produce verbose XML output. Consider using getAttribute('arch') instead to provide a clearer, more concise error message that only shows the architecture name.

Suggested change
die "Unsupported UEFI in this architecture ".$type->toString();
die "Unsupported UEFI in this architecture ".$arch;

Copilot uses AI. Check for mistakes.
@frankiejol frankiejol merged commit 631a5a6 into main Jan 14, 2026
7 checks passed
@frankiejol frankiejol deleted the refactor/uefi32_v2 branch January 14, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants