lkml.org 
[lkml]   [2023]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v5 04/15] x86/mtrr: support setting MTRR state for software defined MTRRs
From
On 11.04.23 19:15, Borislav Petkov wrote:
> On Tue, Apr 11, 2023 at 05:57:07PM +0200, Juergen Gross wrote:
>> Short answer: You asked me to add it in V2 of the series.
>>
>> Longer answer: SEV_SNP guests and TDX guests would cause #VE when writing
>> MTRR MSRs.
>
> Ah, sorry. Let's extend the comment then and use your original check:
>
> /*
> * Only allowed for special virtualization cases:
> * - when running as Hyper-V, SEV-SNP guest using vTOM
> * - when running as Xen PV guest
> * - when running as SEV-SNP or TSX guest to avoid unnecessary
> * VMM communication/Virtualization exceptions (#VC, #VE)
> */
> if (!hv_is_isolation_supported() &&
> !cpu_feature_enabled(X86_FEATURE_XENPV) &&
> !cc_platform_has(CC_ATTR_GUEST_SEV_SNP) &&
> !cpu_feature_enabled(X86_FEATURE_TDX_GUEST))
> return;

Okay.


Juergen

[unhandled content-type:application/pgp-keys][unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2023-04-12 10:33    [W:0.080 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site