On Fri, Sep 26, 2025 at 07:57:07AM +0000, Tian, Kevin wrote:
> > From: Jason Gunthorpe <[email protected]>
> > Sent: Thursday, September 4, 2025 1:47 AM
> >
> > +#define PT_FMT x86_64
> > +#define PT_SUPPORTED_FEATURES                                  \
> > +   (BIT(PT_FEAT_SIGN_EXTEND) | BIT(PT_FEAT_FLUSH_RANGE) | \
> > +    BIT(PT_FEAT_FLUSH_RANGE_NO_GAPS) |                    \
> > +    BIT(PT_FEAT_X86_64_AMD_ENCRYPT_TABLES))
> > +
> 
> iirc we discussed that FLUSH_RANGE and FLUSH_RANGE_NO_GAPS are
> mutually exclusive. so it's a typo to set both of them here?

They cannot be enabled together, but this is SUPPORTED_FEATURES, so
the built .ko can support using both. In the case of VTD the instance
cap drives which of FLUSH_RANGE / NO_GAPS is selected for the entire
instance.

Jason

Reply via email to