Re: [PATCH v7 26/26] KVM: selftest: Add a selftest for VMRUN/#VMEXIT with unmappable vmcb12

From: Jim Mattson

Date: Fri Mar 06 2026 - 17:15:30 EST


On Fri, Mar 6, 2026 at 9:54 AM Yosry Ahmed <yosry@xxxxxxxxxx> wrote:
> Actually, not quite. check_svme_pa() should keep injecting #GP, but
> based on checking rax against kvm_host.maxphyaddr instead of the
> hardcoded 0xffff000000000000ULL value.

Shouldn't it check against the guest's maxphyaddr, in case
allow_smaller_maxphyaddr is in use?