lkml.org 
[lkml]   [2024]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v5 1/2] KVM: VMX: Cleanup VMX basic information defines and usages
Date
> > I see your point here.  But "#define VMX_EPTP_MT_WB	0x6ull" seems to
> define
> > its own memory type 0x6. I think what we want is:
> >
> > /* in a pat/mtrr header */
> > #define MEM_TYPE_WB 0x6
> >
> > /* vmx.h */
> > #define VMX_EPTP_MT_WB MEM_TYPE_WB
> >
> > if it's not regarded as another layer of indirect.
>
> Heh, yep, I already had this:
>
> /* The EPTP memtype is encoded in bits 2:0, i.e. doesn't need to be shifted. */
> #define VMX_EPTP_MT_MASK 0x7ull
> #define VMX_EPTP_MT_WB X86_MEMTYPE_WB
> #define VMX_EPTP_MT_UC X86_MEMTYPE_UC

Perfect!

\
 
 \ /
  Last update: 2024-05-27 15:02    [W:0.076 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site