[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <062f04c9b59e7dcd496cb626437580e8884ce895.camel@intel.com>
Date: Fri, 3 Jan 2025 17:51:35 +0000
From: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
To: "kvm@...r.kernel.org" <kvm@...r.kernel.org>, "pbonzini@...hat.com"
<pbonzini@...hat.com>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
CC: "Zhao, Yan Y" <yan.y.zhao@...el.com>, "yuan.yao@...el.com"
<yuan.yao@...el.com>, "binbin.wu@...ux.intel.com"
<binbin.wu@...ux.intel.com>, "sean.j.christopherson@...el.com"
<sean.j.christopherson@...el.com>, "Huang, Kai" <kai.huang@...el.com>,
"dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>, "Yamahata,
Isaku" <isaku.yamahata@...el.com>
Subject: Re: [PATCH 02/13] x86/virt/tdx: Add SEAMCALL wrappers for TDX TD
creation
On Wed, 2025-01-01 at 02:49 -0500, Paolo Bonzini wrote:
> +/*
> + * The TDX module exposes a CLFLUSH_BEFORE_ALLOC bit to specify whether
> + * a CLFLUSH of pages is required before handing them to the TDX module.
> + * Be conservative and make the code simpler by doing the CLFLUSH
> + * unconditionally.
> + */
> +static void tdx_clflush_page(struct page *tdr)
tdr could be "page" here, as it later is used for non-tdr pages.
> +{
> + clflush_cache_range(page_to_virt(tdr), PAGE_SIZE);
> +}
> +
Powered by blists - more mailing lists