Re: [EXTERNAL] [PATCH v10 00/28] KVM: Enable FRED support with KVM VMX
From: Sohil Mehta
Date: Fri Dec 04 2026 - 00:42:55 EST
On 11/30/2026 10:16 PM, Sohil Mehta wrote:
> 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.
>
I posted the patches at
https://lore.kernel.org/lkml/20261202080224.4165883-1-sohil.mehta@xxxxxxxxx/
David, whenever you get a chance can you please take a look at the
series. Is the event type plumbing through the exception queue in line
with your expectation?
Shivansh, you asked for a generic solution for the INT1 event type issue
in the v3 SVM series [1]. Would the first patch work in that regard?
[1]:
https://lore.kernel.org/all/20260925114017.2208531-1-shivansh.dhiman@xxxxxxx/
>
> 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.