On 10/17/21 12:58 PM, Thomas Gleixner wrote:
On Tue, Oct 05 2021 at 13:41, Kuppuswamy Sathyanarayanan wrote:
\Instead of adding an extra check, can you please replace that
static inline void outs##bwl(int port, const void *addr, unsigned long count) \
{ \
- if (sev_key_active()) { \
+ if (sev_key_active() || \
+ cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \
sev_key_active() with cc_platform_has() completely?
Yes. sev_key_active() can be removed and replaced with
cc_platform_has().
Thomas Lendacky also proposed to introduce as common
static key which can be set by both AMD SEV and TDX code.
@Thomas Lendacky, any comments?