[Devel] [PATCH hci-8.1 06/14] ms/KVM: SVM: Triple fault L1 on unintercepted EFER.SVME clear by L2

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:38:15 MSK 2026


> From: Yosry Ahmed <yosry.ahmed at linux.dev>
> 
> KVM tracks when EFER.SVME is set and cleared to initialize and tear down
> nested state. However, it doesn't differentiate if EFER.SVME is getting
> toggled in L1 or L2+. If L2 clears EFER.SVME, and L1 does not intercept
> the EFER write, KVM exits guest mode and tears down nested state while
> L2 is running, executing L1 without injecting a proper #VMEXIT.
> 
> According to the APM:
> 
>     The effect of turning off EFER.SVME while a guest is running is
>     undefined; therefore, the VMM should always prevent guests from
>     writing EFER.
> 
> Since the behavior is architecturally undefined, KVM gets to choose what
> to do. Inject a triple fault into L1 as a more graceful option that
> running L1 with corrupted state.
> 
> Co-developed-by: Sean Christopherson <seanjc at google.com>
> Signed-off-by: Yosry Ahmed <yosry.ahmed at linux.dev>
> base-commit: 95deaec3557dced322e2540bfa426e60e5373d46
> Link: https://patch.msgid.link/20260209195142.2554532-2-yosry.ahmed@linux.dev
> Signed-off-by: Sean Christopherson <seanjc at google.com>
> (cherry picked from commit cdc69269b18a19cb76eaf7bf4fa47fe270dcaf11)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-157389
> Feature: fix ms/kvm
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261126-khorenko-vstor-157133-klp-and-kvm-fixes-v1-0-0ec8eaadf1bc@virtuozzo.com?part=6




More information about the Devel mailing list