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] [day] [month] [year] [list]
Message-ID: <a2e9c0e6-0746-42aa-b936-2d72921a7e0d@intel.com>
Date: Wed, 30 Apr 2025 08:02:05 -0700
From: Dave Hansen <dave.hansen@...el.com>
To: Zhiquan Li <zhiquan1.li@...el.com>, Jun Miao <jun.miao@...el.com>,
 kirill.shutemov@...ux.intel.com, dave.hansen@...ux.intel.com
Cc: x86@...nel.org, linux-coco@...ts.linux.dev, linux-kernel@...r.kernel.org,
 tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
 "Du, Fan" <fan.du@...el.com>
Subject: Re: [V2 PATCH] x86/tdx: add VIRT_CPUID2 virtualization if REDUCE_VE
 was not successful

On 4/30/25 08:09, Zhiquan Li wrote:
> On 2025/4/30 21:44, Dave Hansen wrote:
>>> Currently the most customer's complaints come from the CPUID leaf 0x2
>>> not virtualization, and most of access come from user space.  Is it
>>> appropriate for such behavior directly cause a guest kernel panic?
>> If a VMM doesn't properly configure topology properly and allows
>> REDUCE_VE, then panic. They obviously got something wrong because that
>> configuration doesn't make any sense.
> OK, I agree with you.  Is it better to simplify the logic like this:
> 
>     static void reduce_unnecessary_ve(void)
>     {
>         u64 configured;
> 
>         /* Has the VMM provided a valid topology configuration? */
>         tdg_vm_rd(TDCS_TOPOLOGY_ENUM_CONFIGURED, &configured);
> 
>         if (!configured)
>             panic("VMM did not configure X2APIC_IDs properly\n");
> 
>         tdg_vm_wr(TDCS_TD_CTLS, TD_CTLS_REDUCE_VE, TD_CTLS_REDUCE_VE);
>     }
> 
> Since merely fall back to enable ENUM_TOPOLOGY isn't enough, the guest
> still suffering the CPUID leaf 0x2 not virtualization regression, like
> the glibc bug.  Full REDUCE_VE is really expected.

Either that or fix the TDX module in some way to untangle the mess.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ