lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 13 Jul 2022 22:41:33 +1200
From:   Kai Huang <kai.huang@...el.com>
To:     Isaku Yamahata <isaku.yamahata@...il.com>
Cc:     isaku.yamahata@...el.com, kvm@...r.kernel.org,
        linux-kernel@...r.kernel.org, Paolo Bonzini <pbonzini@...hat.com>,
        Rick Edgecombe <rick.p.edgecombe@...el.com>
Subject: Re: [PATCH v7 033/102] KVM: x86/mmu: Add address conversion
 functions for TDX shared bits


> > 
> > And by applying this patch, nothing will prevent you to turn on INTEL_TDX_HOST
> > and KVM_INTEL, which also turns on KVM_MMU_PRIVATE.
> > 
> > So 'kvm_arch::gfn_shared_mask' is guaranteed to be 0?  If not, can legal
> > (shared) GFN for normal VM be potentially treated as private?
> > 
> > If yes, perhaps explicitly call out in changelog so people don't need to worry
> > about?
> 
> struct kvm that includes struct kvm_arch is guaranteed to be zero.
> 
> Here is the updated commit message.
> 
> Author: Isaku Yamahata <isaku.yamahata@...el.com>
> Date:   Tue Jul 12 00:10:13 2022 -0700
> 
>     KVM: x86/mmu: Add address conversion functions for TDX shared bit of GPA
>     
>     TDX repurposes one GPA bit (51 bit or 47 bit based on configuration) to
>     indicate the GPA is private(if cleared) or shared (if set) with VMM.  If
>     GPA.shared is set, GPA is converted existing conventional EPT pointed by
>     EPTP.  If GPA.shared bit is cleared, GPA is converted by TDX module.
>     VMM has to issue SEAMCALLs to operate.

Sorry what does "GPA is converted ..." mean?


-- 
Thanks,
-Kai


Powered by blists - more mailing lists