Re: [RFC v1 22/26] x86/tdx: Exclude Shared bit from __PHYSICAL_MASK

2021-04-06 Thread Dave Hansen
On 4/6/21 8:54 AM, Kirill A. Shutemov wrote: > On Thu, Apr 01, 2021 at 01:13:16PM -0700, Dave Hansen wrote: >>> @@ -56,6 +61,9 @@ static void tdx_get_info(void) >>> >>> td_info.gpa_width = rcx & GENMASK(5, 0); >>> td_info.attributes = rdx; >>> + >>> + /* Exclude Shared bit from the

Re: [RFC v1 22/26] x86/tdx: Exclude Shared bit from __PHYSICAL_MASK

2021-04-06 Thread Kirill A. Shutemov
On Thu, Apr 01, 2021 at 01:13:16PM -0700, Dave Hansen wrote: > > @@ -56,6 +61,9 @@ static void tdx_get_info(void) > > > > td_info.gpa_width = rcx & GENMASK(5, 0); > > td_info.attributes = rdx; > > + > > + /* Exclude Shared bit from the __PHYSICAL_MASK */ > > + physical_mask &=

Re: [RFC v1 22/26] x86/tdx: Exclude Shared bit from __PHYSICAL_MASK

2021-04-01 Thread Dave Hansen
On 2/5/21 3:38 PM, Kuppuswamy Sathyanarayanan wrote: > From: "Kirill A. Shutemov" > > tdx_shared_mask() returns the mask that has to be set in page table > entry to make page shared with VMM. Needs to be either: has to be set in a page table entry or has to be set in page table