Re: [PATCH 18/22] KVM: SVM: add GMET bit definitions

From: Paolo Bonzini

Date: Sat Mar 21 2026 - 09:53:08 EST


On Sat, Mar 21, 2026 at 12:58 PM Borislav Petkov <bp@xxxxxxxxx> wrote:
> > @@ -382,6 +382,7 @@
> > #define X86_FEATURE_AVIC (15*32+13) /* "avic" Virtual Interrupt Controller */
> > #define X86_FEATURE_V_VMSAVE_VMLOAD (15*32+15) /* "v_vmsave_vmload" Virtual VMSAVE VMLOAD */
> > #define X86_FEATURE_VGIF (15*32+16) /* "vgif" Virtual GIF */
> > +#define X86_FEATURE_GMET (15*32+17) /* "gmet" Guest Mode Execution Trap */
> ^^^^^^
>
> Why do you need to show it in /proc/cpuinfo?

I prefer to be consistent with all the other ones in word 15.

Paolo

> > #define X86_FEATURE_X2AVIC (15*32+18) /* "x2avic" Virtual x2apic */
> > #define X86_FEATURE_V_SPEC_CTRL (15*32+20) /* "v_spec_ctrl" Virtual SPEC_CTRL */
> > #define X86_FEATURE_VNMI (15*32+25) /* "vnmi" Virtual NMI */