Re: [PATCH v19 110/130] KVM: TDX: Handle TDX PV MMIO hypercall
From: Edgecombe, Rick P
Date: Tue Jun 25 2024 - 17:09:42 EST
On Tue, 2024-06-25 at 14:54 +0800, Binbin Wu wrote:
> > + gpa = vcpu->mmio_fragments[0].gpa;
> > + size = vcpu->mmio_fragments[0].len;
>
> Since MMIO cross page boundary is not allowed according to the input
> checks from TDVMCALL, these mmio_fragments[] is not needed.
> Just use vcpu->run->mmio.phys_addr and vcpu->run->mmio.len?
Can we add a comment or something to that check, on why KVM doesn't handle it?
Is it documented somewhere in the TDX ABI that it is not expected to be
supported?