Re: [PATCH v3] KVM: selftests: Add a test for gPAT handling in L2

From: Sean Christopherson

Date: Thu May 28 2026 - 14:05:34 EST


On Thu, May 28, 2026, Yosry Ahmed wrote:
> > If we're going to use macro shenanigans, let's actually use them! I've got this
> > working, I'll post a v4.
> >
> > #define gpat_test(test_name, guest_code, npt_input) \
> > do { \
> > npt_input; \
>
> Oh I like this very much. Passing in "npt = true" or "npt = false" is
> great. I wouldn't call it npt_input (maybe npt_setting or sth), but
> that doesn't matter much.

I like npt_setting.