Skip to content

Commit

Permalink
KVM: nVMX: Make nested control MSRs per-cpu
Browse files Browse the repository at this point in the history
To enable nested apicv support, we need per-cpu vmx
control MSRs:
  1. If in-kernel irqchip is enabled, we can enable nested
     posted interrupt, we should set posted intr bit in
     the nested_vmx_pinbased_ctls_high.
  2. If in-kernel irqchip is disabled, we can not enable
     nested posted interrupt, the posted intr bit
     in the nested_vmx_pinbased_ctls_high will be cleared.

Since there would be different settings about in-kernel
irqchip between VMs, different nested control MSRs
are needed.

Signed-off-by: Wincy Van <fanwenyi0529@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Wincy Van authored and Paolo Bonzini committed Feb 3, 2015
1 parent f2b9328 commit b9c237b
Showing 1 changed file with 129 additions and 86 deletions.
Loading

0 comments on commit b9c237b

Please sign in to comment.