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

From: Yosry Ahmed

Date: Fri Mar 06 2026 - 17:36:08 EST


On Fri, Mar 6, 2026 at 2:15 PM Jim Mattson <jmattson@xxxxxxxxxx> wrote:
>
> 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?

Will respond to the other thread.