Skip to content

KVM: nVMX: Do not expose APICv to L1 if disabled on L0

Arbel Moshe kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 8 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: nVMX: Refresh APICv secondary exec controls by re-calculating all of themarch/x86/kvm/vmx.c+6 -83 replies
2/3KVM: nVMX: Update nested MSRs in case APICv refreshingarch/x86/kvm/vmx.c+2 -02 replies
3/3KVM: nVMX: Fix nested APICv Secondary CPU Controls when apicv disabledarch/x86/kvm/vmx.c+6 -23 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLiran AlonKrish Sadhukhan
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] KVM: nVMX: Do not expose APICv to L1 if disabled on L0

Hi,

This series aims to fix issue of exposing APICv features to L1 when enable_apicv==false in L0.

The first patch is just a refactoring of existing code. It replaces updating of VMX APICv related secondary exec controls, in generic secondary exec control re-computation. This is done to avoid code-duplication which is error-prone.

The second patch makes sure that if APICv is disabled dynamically when Hyper-V SynIC is enabled, then also make sure to not expose APICv features to L1 in VMX MSRs.

The third patch fix a bug of exposing some APICv related features to L1 even though APICv is disabled in L0.

Regards,
-Arbel Moshe