Re: [PATCH v4 2/4] KVM: x86: implement emul_is_noncanonical_address using is_noncanonical_address
From: Sean Christopherson
Date: Wed Oct 30 2024 - 20:44:46 EST
On Fri, Sep 06, 2024, Maxim Levitsky wrote:
> Implement the emul_is_noncanonical_address() using
> is_noncanonical_address().
>
> This will allow to extend the is_noncanonical_address() to support
> different flavors of canonical checks.
>
> Also add X86EMUL_F_MSR and X86EMUL_F_DT_LOAD emulation flags which will be
> used to indicate an emulation of a msr or a segment base load, which
> will affect the required canonical check.
Adding the flags belongs in a separate patch, there's no reason to squeeze them
into this patch. Just an FYI, I'll split/fixup when applying.