Re: [PATCH 04/21] KVM: VMX: Split out guts of EPT violation to common/exposed function

From: Paolo Bonzini
Date: Mon Sep 09 2024 - 10:00:32 EST


On 9/4/24 05:07, Rick Edgecombe wrote:
From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>

The difference of TDX EPT violation is how to retrieve information, GPA,
and exit qualification. To share the code to handle EPT violation, split
out the guts of EPT violation handler so that VMX/TDX exit handler can call
it after retrieving GPA and exit qualification.

Already has my RB but, for what it's worth, I'm not sure it's necessary to put this in a header as opposed to main.c. Otherwise no comments, as there isn't much going on here.

Paolo