Re: [EXTERNAL] [PATCH v10 00/28] KVM: Enable FRED support with KVM VMX

From: Sohil Mehta

Date: Tue Dec 01 2026 - 01:17:22 EST


Hi David,

>> Opens
>> -----
>> INT1 event type: David Woodhouse shared a selftest which shows [2] KVM
>> re-injects an intercepted ICEBP (INT1) #DB as a hardware exception, so a
>> FRED guest reads event type 3 instead of 5. IIUC, the issue is not FRED
>> specific but it becomes visible due to FRED. Is that understanding
>> correct? Also, I am unsure of where the fix should reside or if a
>> generic fix is already in the works. Any insights here would be helpful.
>
> That's my understanding too, yes. It doesn't *matter* what type it's
> re-injected as, until the guest has FRED support and can actually see
> the difference.
>
> So while the issue is pre-existing, it's only actually a *bug* in KVM
> once your series lands. So I think you need to plumb the event type
> through the KVM exception queue as an explicit field.

(Sorry for the delay in responding)

I brainstormed a bit with AI if the event type enabling can be tested
without FRED. It seems a plain guest that delivers the events through
IDT can't see the type but L1 can see the type in the IDT vectoring
information of a nested VM-exit. So, an INT1 that L1 injects into L2 can
get lost.

I am working on a couple of patches (and selftests) that track the event
type of a queued exception and use it to requeue and re-inject as an
ICEBP. I'll send it out in a day or two. If it looks sane, the FRED
patches can then build on top of those.