Re: [RFC v2-fix 1/1] x86/tdx: Handle in-kernel MMIO

From: Andi Kleen
Date: Tue May 18 2021 - 13:05:39 EST



Or, do we expect the first folks who expose a movdir64b-using driver to
TDX to go and update this code?

That's what we want to do.



Also, the sev_key_active() stuff in there makes me nervous. Does this
scheme work with these:

static inline void outs##bwl(int port, const void *addr, unsigned long count) \
static inline void ins##bwl(int port, void *addr, unsigned long count) \
?


This is not MMIO, but port IO. We do similar changes as AMD for TDX.


-Andi